diff --git a/examples/go.mod b/examples/go.mod index ad15085d190..be9df7b2129 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -3,7 +3,7 @@ module github.com/pulumi/pulumi-aws/examples/v6 go 1.21 require ( - github.com/aws/aws-sdk-go v1.45.14 + github.com/aws/aws-sdk-go v1.45.18 github.com/pulumi/pulumi-aws/provider/v6 v6.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-terraform-bridge/pf v0.16.2-0.20230927165309-e3fd9503f2d3 github.com/pulumi/pulumi-terraform-bridge/testing v0.0.2-0.20230927165309-e3fd9503f2d3 @@ -64,13 +64,13 @@ require ( github.com/atotto/clipboard v0.1.4 // indirect github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect - github.com/aws/aws-sdk-go-v2/config v1.18.41 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.13.39 // indirect + github.com/aws/aws-sdk-go-v2/config v1.18.42 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.13.40 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85 // indirect + github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 // indirect + github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 // indirect github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 // indirect github.com/aws/aws-sdk-go-v2/service/accessanalyzer v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/service/account v1.11.5 // indirect @@ -87,8 +87,9 @@ require ( github.com/aws/aws-sdk-go-v2/service/computeoptimizer v1.27.0 // indirect github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5 // indirect github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0 // indirect - github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5 // indirect + github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0 // indirect + github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0 // indirect github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0 // indirect github.com/aws/aws-sdk-go-v2/service/fis v1.16.0 // indirect github.com/aws/aws-sdk-go-v2/service/glacier v1.16.0 // indirect @@ -122,19 +123,20 @@ require ( github.com/aws/aws-sdk-go-v2/service/rds v1.54.0 // indirect github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5 // indirect github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0 // indirect - github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5 // indirect + github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6 // indirect github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0 // indirect + github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 // indirect github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0 // indirect github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0 // indirect github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1 // indirect github.com/aws/aws-sdk-go-v2/service/signer v1.16.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5 // indirect + github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0 // indirect github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0 // indirect github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.14.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 // indirect github.com/aws/aws-sdk-go-v2/service/swf v1.17.3 // indirect github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.19.0 // indirect @@ -165,6 +167,8 @@ require ( github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.4.1 // indirect github.com/go-git/go-git/v5 v5.8.1 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt v3.2.1+incompatible // indirect @@ -184,8 +188,8 @@ require ( github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 // indirect github.com/hashicorp/aws-sdk-go-base v1.1.0 // indirect - github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 // indirect - github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 // indirect + github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 // indirect + github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 // indirect github.com/hashicorp/awspolicyequivalence v1.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect @@ -291,22 +295,24 @@ require ( github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/zclconf/go-cty v1.14.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/otel v1.16.0 // indirect - go.opentelemetry.io/otel/trace v1.16.0 // indirect + go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0 // indirect + go.opentelemetry.io/otel v1.18.0 // indirect + go.opentelemetry.io/otel/metric v1.18.0 // indirect + go.opentelemetry.io/otel/trace v1.18.0 // indirect go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect golang.org/x/crypto v0.13.0 // indirect - golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect + golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect + golang.org/x/net v0.15.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.12.0 // indirect golang.org/x/term v0.12.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect + golang.org/x/tools v0.13.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/examples/go.sum b/examples/go.sum index ddec9115931..186bd578837 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -828,8 +828,8 @@ github.com/aws/aws-sdk-go v1.43.11/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4 github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.45.14 h1:/IPMEh9oelbK7506fdMHkbV9mq4a6f5aeiy9OT0PRKw= -github.com/aws/aws-sdk-go v1.45.14/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.45.18 h1:uSOGg4LFtpQH/bq9FsumMKfZHNl7BdH7WURHOqKXHNU= +github.com/aws/aws-sdk-go v1.45.18/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw= github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc= @@ -838,17 +838,17 @@ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3/go.mod h1:gNsR5CaXK github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 h1:OPLEkmhXf6xFPiz0bLeDArZIDx1NNS4oJyG4nv3Gct0= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13/go.mod h1:gpAbvyDGQFozTEmlTFO8XcQKHzubdq0LzRyJpG6MiXM= github.com/aws/aws-sdk-go-v2/config v1.15.15/go.mod h1:A1Lzyy/o21I5/s2FbyX5AevQfSVXpvvIDCoVFD0BC4E= -github.com/aws/aws-sdk-go-v2/config v1.18.41 h1:Go7z97YDsBJVNAaL7pDPKB6LeHEsAkHmFe+CeK30fUQ= -github.com/aws/aws-sdk-go-v2/config v1.18.41/go.mod h1:+yR45+A0LIMKT8bWOKo90Hy9rSrovEmEKoPKLmmVec8= +github.com/aws/aws-sdk-go-v2/config v1.18.42 h1:28jHROB27xZwU0CB88giDSjz7M1Sba3olb5JBGwina8= +github.com/aws/aws-sdk-go-v2/config v1.18.42/go.mod h1:4AZM3nMMxwlG+eZlxvBKqwVbkDLlnN2a4UGTL6HjaZI= github.com/aws/aws-sdk-go-v2/credentials v1.12.10/go.mod h1:g5eIM5XRs/OzIIK81QMBl+dAuDyoLN0VYaLP+tBqEOk= -github.com/aws/aws-sdk-go-v2/credentials v1.13.39 h1:UnwBXDIHKDaejSXaRzKR57IdGCizk+z1DEhnsFpus7Q= -github.com/aws/aws-sdk-go-v2/credentials v1.13.39/go.mod h1:OJ9P239A90TnglJEF3qofKiNeEM6PCV/m+aNGV5WC24= +github.com/aws/aws-sdk-go-v2/credentials v1.13.40 h1:s8yOkDh+5b1jUDhMBtngF6zKWLDs84chUk2Vk0c38Og= +github.com/aws/aws-sdk-go-v2/credentials v1.13.40/go.mod h1:VtEHVAAqDWASwdOqj/1huyT6uHbs5s8FUHfDQdky/Rs= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9/go.mod h1:KDCCm4ONIdHtUloDcFvK2+vshZvx4Zmj7UMDfusuz5s= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 h1:uDZJF1hu0EVT/4bogChk8DyjSF6fof6uL/0Y26Ma7Fg= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11/go.mod h1:TEPP4tENqBGO99KwVpV9MlOX4NSrSLP8u3KRy2CDwA8= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21/go.mod h1:iIYPrQ2rYfZiB/iADYlhj9HHZ9TTi6PqKQPAqygohbE= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85 h1:PH1OSkrdY8X+ENBz8ZhgWhR/975S05gcFPM4PxpAFrI= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85/go.mod h1:4X3OaVfB/ZjZsB9eHpFLnNT00sw+ZE81kQ2E9FysTaU= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 h1:e20ZrsgDPUXqg8+rZVuPwNSp6yniUN2Yr2tzFZ+Yvl0= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87/go.mod h1:0i0TAT6W+5i48QTlDU2KmY6U2hBZeY/LCP0wktya2oc= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.15/go.mod h1:pWrr2OoHlT7M/Pd2y4HV3gJyPb3qj5qMmnPkKSNPYK4= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 h1:22dGT7PneFMx4+b3pz7lMTRyN8ZKH7M2cW4GP9yUS2g= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41/go.mod h1:CrObHAuPneJBlfEJ5T3szXOUkLEThaGfvnhTf33buas= @@ -856,8 +856,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.9/go.mod h1:08tUpeSGN33Q github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 h1:SijA0mgjV8E+8G45ltVHs0fvKpTj8xmZJ3VwhGKtUSI= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35/go.mod h1:SJC1nEVVva1g3pHAIdCp7QsRIkMmLAgoDquQ9Rr8kYw= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16/go.mod h1:CYmI+7x03jjJih8kBEEFKRQc40UjUokT0k7GbvrhhTc= -github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 h1:GPUcE/Yq7Ur8YSUk6lVkoIMWnJNO0HT18GUzCWCgCI0= -github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo= +github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 h1:g+qlObJH4Kn4n21g69DjspU0hKTjWtq7naZ9OLCv0ew= +github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6/go.mod h1:O7Oc4peGZDEKlddivslfYFvAbgzvl/GH3J8j3JIGBXc= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 h1:6lJvvkQ9HmbHZ4h/IEwclwv2mrTW8Uq1SOB/kXy0mfw= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4/go.mod h1:1PrKYwxTM+zjpw9Y41KFtoJCQrJ34Z47Y4VgVbfndjo= @@ -891,10 +891,12 @@ github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5 h1:prlnnmX0PYoho7c github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5/go.mod h1:/kl14i35MzBB4oaVlmFVmTvdzTX5LiphIuRLyOJfoRU= github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0 h1:c9Ifajg9VU0b86Xd7B6KGpEUtbXbwAJj/8FAQN6ZBeg= github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0/go.mod h1:XLn8/EbqX+qGri306t4IPUBi+VmphNcsR+OJRxPlGqg= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0 h1:oFrb1aQ07i+v63FOTywSG8xL/OYZbk+HmPE8FKSzkRk= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0/go.mod h1:0FhI2Rzcv5BNM3dNnbcCx2qa2naFZoAidJi11cQgzL0= -github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5 h1:hhQPiPD696RlbY56NsMYVnVsS9ySrZc6eYC9yafauPk= -github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5/go.mod h1:uRIY0k05TXMGGlHeRxDDhWT9oBqcGbbEBN3gqk9Njos= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5 h1:EeNQ3bDA6hlx3vifHf7LT/l9dh9w7D2XgCdaD11TRU4= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5/go.mod h1:X3ThW5RPV19hi7bnQ0RMAiBjZbzxj4rZlj+qdctbMWY= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0 h1:o2W9Pwiun0hr2EL63sTK2ozw8/gkoAXRgFmSwy3DE7I= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0/go.mod h1:0FhI2Rzcv5BNM3dNnbcCx2qa2naFZoAidJi11cQgzL0= +github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0 h1:bBoGKYUIf6sIFZh8SMuc8yMyYmgs5ofwgzqO02upSUY= +github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0/go.mod h1:uRIY0k05TXMGGlHeRxDDhWT9oBqcGbbEBN3gqk9Njos= github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0 h1:qFaAEplUoebyUb2m0I3IgPK9hEZYL2zSDIW9lGMdfe4= github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0/go.mod h1:+/mUh+9nZadnvEVL3h6wlIK96u3FCDy1X3wigdJhTYM= github.com/aws/aws-sdk-go-v2/service/fis v1.16.0 h1:whvtcGrg4PxHCg8pVBFvjuH+q7P3WNzwMM+IBN0eUKs= @@ -965,13 +967,13 @@ github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5 h1:iIRfLBX36lMn7vXdaVF github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5/go.mod h1:q++QEMyKK3FcyuHOuab73F3mtkmP/Xu25VkMSEgqpE0= github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0 h1:v5feSZ0CwkDw4gk6On3i2IwEbTzX7bOEPI7pyecOcSA= github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0/go.mod h1:cP3b7+o+kmgjIKp9hXs+arRFIoh6lnYphtD3JsGmMeQ= -github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5 h1:tfmJZFDrma1cgraLRuEgfp643Gdaas2cxHnJxT7VVqk= -github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5/go.mod h1:vXPkNV5GGPdMjRRNzO45nX3qsNTgB5lP19Tk4Go30xQ= +github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6 h1:2OKMYGgl8hi7BdtfgQlz5Or9nar+mAidpPjmgOZr3p4= +github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6/go.mod h1:vXPkNV5GGPdMjRRNzO45nX3qsNTgB5lP19Tk4Go30xQ= github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3 h1:aaHlZb06fyEQ3uqEVJiN3hLt8syCzX+tWZiz40S4c0Y= github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3/go.mod h1:SK+5R1cYgVgSfBGi9T/gPGNIuLInF3eIRYNruia62rg= github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2/go.mod h1:u+566cosFI+d+motIz3USXEh6sN8Nq4GrNXSg2RXVMo= -github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0 h1:VZ2WMkKLio5tVjYfThcy5+pb6YHGd6B6egq75FfM6hU= -github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM= +github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 h1:wl5dxN1NONhTDQD9uaEvNsDRX29cBmGED/nl0jkWlt4= +github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM= github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0 h1:f4qHghGTcns4L4F7u8AHH6pcVLwgtTMNkNZeRJZ5xlA= github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0/go.mod h1:YSdqo9knBVm5H3JVmWDhx9Wts9828nColUJzL3OKXDk= github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0 h1:uzCEL2ILopsOcWvbmeMmmy3Sc0ybVh+nHMg5knnA0Rg= @@ -979,24 +981,26 @@ github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0/go.mod h1:cdpHC7Nd4Yvtf/rh github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.15.14/go.mod h1:xakbH8KMsQQKqzX87uyyzTHshc/0/Df8bsTneTS5pFU= github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0 h1:Ou2rjk3siybv09bzpi5fs+9zOYZACxT1LT0KkcDAtIs= github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0/go.mod h1:/MCawoN8Xib5q04k2HsIQ+K2cNtC3CHamrfLZXd6KmA= -github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0 h1:BVjuGDN2ek2gjSB46aIODXIYq3Aw/o0F/ZwBPP883GU= -github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0/go.mod h1:qpAr/ear7teIUoBd1gaPbvavdICoo1XyAIHPVlyawQc= +github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1 h1:QxzS/Hr5kixvMyPIXTfspnRUiKgFJSTPrhnglAi2YLI= +github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1/go.mod h1:qpAr/ear7teIUoBd1gaPbvavdICoo1XyAIHPVlyawQc= github.com/aws/aws-sdk-go-v2/service/signer v1.16.5 h1:nqZqDR44/ao9zQXyuCJI8L/C3QQIo4wtZyLtgwJfpEY= github.com/aws/aws-sdk-go-v2/service/signer v1.16.5/go.mod h1:gHTmxtN3p6WKxFhcOSvWBFfEbxDRFtwfxjj1S7shS64= github.com/aws/aws-sdk-go-v2/service/sns v1.17.10/go.mod h1:uITsRNVMeCB3MkWpXxXw0eDz8pW4TYLzj+eyQtbhSxM= github.com/aws/aws-sdk-go-v2/service/sqs v1.19.1/go.mod h1:A94o564Gj+Yn+7QO1eLFeI7UVv3riy/YBFOfICVqFvU= +github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5 h1:RyDpTOMEJO6ycxw1vU/6s0KLFaH3M0z/z9gXHSndPTk= +github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5/go.mod h1:RZBu4jmYz3Nikzpu/VuVvRnTEJ5a+kf36WT2fcl5Q+Q= github.com/aws/aws-sdk-go-v2/service/ssm v1.27.6/go.mod h1:fiFzQgj4xNOg4/wqmAiPvzgDMXPD+cUEplX/CYn+0j0= -github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5 h1:s9QR0F1W5+11lq04OJ/mihpRpA2VDFIHmu+ktgAbNfg= -github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5/go.mod h1:JjBzoceyKkpQY3v1GPIdg6kHqUFHRJ7SDlwtwoH0Qh8= +github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0 h1:JON9MBvwUlM8HXylfB2caZuH3VXz9RxO4SMp2+TNc3Q= +github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0/go.mod h1:JjBzoceyKkpQY3v1GPIdg6kHqUFHRJ7SDlwtwoH0Qh8= github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0 h1:Edd9f7uEJkW6cWBqnXh93+s4tXUwojQrxiOZPnJ3/jg= github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0/go.mod h1:g6xJdpynIx7D1UW9te8ul36qWGyuzIL6ATrJF6E6ygI= github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0 h1:JkzoHb2bl5y7guwjKrsER0050u29XEgg1+IUtG+6Rsw= github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0/go.mod h1:11Z2L2mDhJbRZo5rwRs1NPz1Vi37U5N1EiaazEoBGag= github.com/aws/aws-sdk-go-v2/service/sso v1.11.13/go.mod h1:d7ptRksDDgvXaUvxyHZ9SYh+iMDymm94JbVcgvSYSzU= -github.com/aws/aws-sdk-go-v2/service/sso v1.14.0 h1:AR/hlTsCyk1CwlyKnPFvIMvnONydRjDDRT9OGb0i+/g= -github.com/aws/aws-sdk-go-v2/service/sso v1.14.0/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0 h1:UniOmlPJelksyP5dGjfRoFTmLDy4/o0HH1lK2Op7zC8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4= +github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 h1:YkNzx1RLS0F5qdf9v1Q8Cuv9NXCL2TkosOxhzlUPV64= +github.com/aws/aws-sdk-go-v2/service/sso v1.14.1/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 h1:8lKOidPkmSmfUtiTgtdXWgaKItCZ/g75/jEk6Ql6GsA= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4= github.com/aws/aws-sdk-go-v2/service/sts v1.16.10/go.mod h1:cftkHYN6tCDNfkSasAmclSfl4l7cySoay8vz7p/ce0E= github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 h1:s4bioTgjSFRwOoyEFzAVCmFmoowBgjTR8gkrF/sQ4wk= github.com/aws/aws-sdk-go-v2/service/sts v1.22.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU= @@ -1405,7 +1409,10 @@ github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbV github.com/go-logr/logr v1.2.1/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.0/go.mod h1:YkVgnZu1ZjjL7xTxrfm/LLZBfkhTqSR1ydtm6jTKKwI= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= @@ -1688,10 +1695,10 @@ github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 h1:IUypt/ github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0/go.mod h1:cdTE6F2pCKQobug+RqRaQp7Kz9hIEqiSvpPmb6E5G1w= github.com/hashicorp/aws-sdk-go-base v1.1.0 h1:27urM3JAp6v+Oj/Ea5ULZwuFPK9cO1RUdEpV+rNdSAc= github.com/hashicorp/aws-sdk-go-base v1.1.0/go.mod h1:2fRjWDv3jJBeN6mVWFHV6hFTNeFBx2gpDLQaZNxUVAY= -github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 h1:07rX0OEHNSmD4TXQzHcVnaZJGYXaSaJR4ZhN8/bBRY4= -github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35/go.mod h1:cR5oVK+h10mSG4T9eHaBAYfacxUlYI5vNfJuIRMGfMA= -github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 h1:xfEmtc8kXanlT5O9m1xqYXJRgsz5m1uBzeAFcq5wBh4= -github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36/go.mod h1:AQknW73NE5hbAZn/ruNomae0OJUNf5xzsAi6yDndWgs= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 h1:PeXF9Lm40Y54iEHlFoirPjwWGEJUocZgxFOAyeaeKg8= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36/go.mod h1:CMRjoqBNDv6ic4UMXjyrUVss92suk8ANVnJxErubAQE= +github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 h1:KniXhpwH0GC5v1YCSMrD2n1qW/aeSCJV6hzIQ03Jv9I= +github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37/go.mod h1:nmFy7OOHTVqTYyckN4oTzLRYRheTbar4+92MXonc5BA= github.com/hashicorp/awspolicyequivalence v1.6.0 h1:7aadmkalbc5ewStC6g3rljx1iNvP4QyAhg2KsHx8bU8= github.com/hashicorp/awspolicyequivalence v1.6.0/go.mod h1:9IOaIHx+a7C0NfUNk1A93M7kHd5rJ19aoUx37LZGC14= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= @@ -2603,6 +2610,8 @@ go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= +go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0 h1:u2wxpWcQ6px9ACaIUX27ttNDx7B2OtTGRaIzvZOBsCQ= +go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0/go.mod h1:BmbXHiVZH22QIi98PXQtfD8YEA3lmnaEotGBn1vJ/X4= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0/go.mod h1:vEhqr0m4eTc+DWxfsXoXue2GBgV2uUwVznkGIHW/e5w= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0/go.mod h1:2AboqHi0CiIZU0qwhtUfCYD1GeUzvvIXWNkhDt7ZMG4= @@ -2613,8 +2622,8 @@ go.opentelemetry.io/otel v1.3.0/go.mod h1:PWIKzi6JCp7sM0k9yZ43VX+T345uNbAkDKwHVj go.opentelemetry.io/otel v1.6.0/go.mod h1:bfJD2DZVw0LBxghOTlgnlI0CV3hLDu9XF/QKOUXMTQQ= go.opentelemetry.io/otel v1.6.1/go.mod h1:blzUabWHkX6LJewxvadmzafgh/wnvBSDBdOuwkAtrWQ= go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= -go.opentelemetry.io/otel v1.16.0 h1:Z7GVAX/UkAXPKsy94IU+i6thsQS4nb7LviLpnaNeW8s= -go.opentelemetry.io/otel v1.16.0/go.mod h1:vl0h9NUa1D5s1nv3A5vZOYWn8av4K8Ml6JDeHrT/bx4= +go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= +go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.3.0/go.mod h1:VpP4/RMn8bv8gNo9uK7/IMY4mtWLELsS+JIP0inH0h4= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.6.1/go.mod h1:NEu79Xo32iVb+0gVNV8PMd7GoWqnyDXRlj04yFjqz40= @@ -2631,6 +2640,8 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.7.0/go.mod h1 go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= go.opentelemetry.io/otel/metric v0.28.0/go.mod h1:TrzsfQAmQaB1PDcdhBauLMk7nyyg9hm+GoQq/ekE9Iw= go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= +go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= +go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= go.opentelemetry.io/otel/sdk v1.3.0/go.mod h1:rIo4suHNhQwBIPg9axF8V9CA72Wz2mKF1teNrup8yzs= @@ -2643,8 +2654,8 @@ go.opentelemetry.io/otel/trace v1.3.0/go.mod h1:c/VDhno8888bvQYmbYLqe41/Ldmr/KKu go.opentelemetry.io/otel/trace v1.6.0/go.mod h1:qs7BrU5cZ8dXQHBGxHMOxwME/27YH2qEp4/+tZLLwJE= go.opentelemetry.io/otel/trace v1.6.1/go.mod h1:RkFRM1m0puWIq10oxImnGEduNBzxiN7TXluRBtE+5j0= go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= -go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs= -go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0= +go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= +go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v0.11.0/go.mod h1:QpEjXPrNQzrFDZgoTo49dgHR9RYRSrg3NAKnUGl9YpQ= go.opentelemetry.io/proto/otlp v0.12.1/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= @@ -2742,8 +2753,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ= -golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2886,8 +2897,8 @@ golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -3248,8 +3259,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 h1:Vve/L0v7CXXuxUmaMGIEK/dEeq7uiqb5qBgQrZzIE7E= -golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/patches/0001-Add-TagsSchemaTrulyComputed-definition.patch b/patches/0001-Add-TagsSchemaTrulyComputed-definition.patch index e3bffcc8877..9ee8900b52b 100644 --- a/patches/0001-Add-TagsSchemaTrulyComputed-definition.patch +++ b/patches/0001-Add-TagsSchemaTrulyComputed-definition.patch @@ -1,7 +1,7 @@ -From e0acd427bffa91ffdd5e1603a3064b8e7cf3300f Mon Sep 17 00:00:00 2001 +From 22002597c79561a6a19c41c4a84dc4d7b9ea3aa5 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 16:49:08 +0000 -Subject: [PATCH 01/29] Add TagsSchemaTrulyComputed definition +Subject: [PATCH 01/30] Add TagsSchemaTrulyComputed definition --- internal/tags/tags.go | 8 ++++++++ @@ -24,5 +24,5 @@ index 12d3b9013e..bc9e14fc19 100644 + } +} -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0002-Conns-user-agent.patch b/patches/0002-Conns-user-agent.patch index 8e301de4cd6..f2ec6d27940 100644 --- a/patches/0002-Conns-user-agent.patch +++ b/patches/0002-Conns-user-agent.patch @@ -1,7 +1,7 @@ -From 3a0068c3be5228186afeec85841012577de7bc41 Mon Sep 17 00:00:00 2001 +From 5d1f7322d4c2d5850220ee1bdcaa721427a1a177 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:03:31 +0000 -Subject: [PATCH 02/29] Conns user agent +Subject: [PATCH 02/30] Conns user agent Replace the useragent used for AWS client connections with a Pulumi-flavoured one. @@ -36,5 +36,5 @@ index 954266ba7a..404a654792 100644 } } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0003-Add-S3-legacy-bucket-to-resources.patch b/patches/0003-Add-S3-legacy-bucket-to-resources.patch index 230be6358b2..7ef9253a702 100644 --- a/patches/0003-Add-S3-legacy-bucket-to-resources.patch +++ b/patches/0003-Add-S3-legacy-bucket-to-resources.patch @@ -1,7 +1,7 @@ -From 25fa0be5a15fadd12e37e9f8d76a40f7db2d2ae2 Mon Sep 17 00:00:00 2001 +From 92e45e410e02acba9c2f129b41a8869821d24eb5 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:05:11 +0000 -Subject: [PATCH 03/29] Add S3 legacy bucket to resources +Subject: [PATCH 03/30] Add S3 legacy bucket to resources This preserves the old S3 Resource in the SDK, by duplicating the code as a new service (in internal/service/s3legacy), and making an explicit @@ -41,47 +41,47 @@ https://github.com/hashicorp/terraform-provider-aws/pull/29717. create mode 100644 website/docs/r/s3_bucket_legacy.html.markdown diff --git a/go.mod b/go.mod -index 49665be6ae..5b939d8958 100644 +index c636a06795..dad473a1bb 100644 --- a/go.mod +++ b/go.mod -@@ -74,6 +74,7 @@ require ( - github.com/beevik/etree v1.2.0 - github.com/google/go-cmp v0.5.9 +@@ -76,6 +76,7 @@ require ( github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 + github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 + github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 + github.com/hashicorp/aws-sdk-go-base v1.1.0 - github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 - github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 github.com/hashicorp/awspolicyequivalence v1.6.0 + github.com/hashicorp/go-cleanhttp v0.5.2 + github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 diff --git a/go.sum b/go.sum -index 34a30545f4..32465c3a2c 100644 +index 530da419d2..8d7e72b41b 100644 --- a/go.sum +++ b/go.sum -@@ -22,6 +22,7 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmms - github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= - github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= +@@ -24,6 +24,7 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= + github.com/aws/aws-sdk-go v1.45.18 h1:uSOGg4LFtpQH/bq9FsumMKfZHNl7BdH7WURHOqKXHNU= + github.com/aws/aws-sdk-go v1.45.18/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= - github.com/aws/aws-sdk-go v1.45.14 h1:/IPMEh9oelbK7506fdMHkbV9mq4a6f5aeiy9OT0PRKw= - github.com/aws/aws-sdk-go v1.45.14/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc= -@@ -214,6 +215,7 @@ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7z - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= - github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= - github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A= + github.com/aws/aws-sdk-go-v2 v1.21.0/go.mod h1:/RfNgGmRxI+iFOB1OeJUyxiU+9s88k3pfHvDagGEp0M= + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 h1:OPLEkmhXf6xFPiz0bLeDArZIDx1NNS4oJyG4nv3Gct0= +@@ -223,6 +224,7 @@ github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= + github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= + github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= + github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -@@ -233,6 +235,8 @@ github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= - github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= - github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 h1:IUypt/TbXiJBkBbE3926CgnjD8IltAitdn7Yive61DY= - github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0/go.mod h1:cdTE6F2pCKQobug+RqRaQp7Kz9hIEqiSvpPmb6E5G1w= +@@ -246,6 +248,8 @@ github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 h1:PeXF9Lm40Y54iEHlFoirPj + github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36/go.mod h1:CMRjoqBNDv6ic4UMXjyrUVss92suk8ANVnJxErubAQE= + github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 h1:KniXhpwH0GC5v1YCSMrD2n1qW/aeSCJV6hzIQ03Jv9I= + github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37/go.mod h1:nmFy7OOHTVqTYyckN4oTzLRYRheTbar4+92MXonc5BA= +github.com/hashicorp/aws-sdk-go-base v1.1.0 h1:27urM3JAp6v+Oj/Ea5ULZwuFPK9cO1RUdEpV+rNdSAc= +github.com/hashicorp/aws-sdk-go-base v1.1.0/go.mod h1:2fRjWDv3jJBeN6mVWFHV6hFTNeFBx2gpDLQaZNxUVAY= - github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 h1:07rX0OEHNSmD4TXQzHcVnaZJGYXaSaJR4ZhN8/bBRY4= - github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35/go.mod h1:cR5oVK+h10mSG4T9eHaBAYfacxUlYI5vNfJuIRMGfMA= - github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 h1:xfEmtc8kXanlT5O9m1xqYXJRgsz5m1uBzeAFcq5wBh4= -@@ -304,6 +308,7 @@ github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+h + github.com/hashicorp/awspolicyequivalence v1.6.0 h1:7aadmkalbc5ewStC6g3rljx1iNvP4QyAhg2KsHx8bU8= + github.com/hashicorp/awspolicyequivalence v1.6.0/go.mod h1:9IOaIHx+a7C0NfUNk1A93M7kHd5rJ19aoUx37LZGC14= + github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +@@ -313,6 +317,7 @@ github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+h github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= @@ -89,7 +89,7 @@ index 34a30545f4..32465c3a2c 100644 github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= -@@ -420,6 +425,7 @@ golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +@@ -433,6 +438,7 @@ golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -4318,5 +4318,5 @@ index 0000000000..529368067d + +The `policy` argument is not imported and will be deprecated in a future version of the provider. Use the `aws_s3_bucket_policy` resource to manage the S3 Bucket Policy instead. -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0004-Marks-SSE-Configuration-as-Computed-for-Legacy-S3-Bu.patch b/patches/0004-Marks-SSE-Configuration-as-Computed-for-Legacy-S3-Bu.patch index 45d3983d67d..20610e0198b 100644 --- a/patches/0004-Marks-SSE-Configuration-as-Computed-for-Legacy-S3-Bu.patch +++ b/patches/0004-Marks-SSE-Configuration-as-Computed-for-Legacy-S3-Bu.patch @@ -1,7 +1,7 @@ -From d3075f4e1405c521e8f9217541493252244fa12a Mon Sep 17 00:00:00 2001 +From a0f2ba69e1fd38a89e79bd501d526059fd618112 Mon Sep 17 00:00:00 2001 From: Kyle Pitzen Date: Thu, 9 Mar 2023 09:47:49 -0600 -Subject: [PATCH 04/29] Marks SSE Configuration as Computed for Legacy S3 +Subject: [PATCH 04/30] Marks SSE Configuration as Computed for Legacy S3 Bucket In January, AWS enabled SSE by default for all new S3 buckets. @@ -26,5 +26,5 @@ index 27fe651a83..8879116578 100644 Schema: map[string]*schema.Schema{ "rule": { -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0005-De-deprecate-bucket_object.patch b/patches/0005-De-deprecate-bucket_object.patch index 4b5da68f4c3..91b6843604d 100644 --- a/patches/0005-De-deprecate-bucket_object.patch +++ b/patches/0005-De-deprecate-bucket_object.patch @@ -1,18 +1,18 @@ -From d7ef4e32c60db41a27a0eb79cdbda953d6350f91 Mon Sep 17 00:00:00 2001 +From 71a8342cba8664c26f9baa77352d49429b13b0a0 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:06:11 +0000 -Subject: [PATCH 05/29] De-deprecate bucket_object +Subject: [PATCH 05/30] De-deprecate bucket_object --- internal/service/s3/bucket_object.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/service/s3/bucket_object.go b/internal/service/s3/bucket_object.go -index bc696e299e..47bec8e864 100644 +index 1a6fadf590..f596e3a8b4 100644 --- a/internal/service/s3/bucket_object.go +++ b/internal/service/s3/bucket_object.go -@@ -66,7 +66,7 @@ func ResourceBucketObject() *schema.Resource { - ValidateFunc: validation.StringInSlice(s3.ObjectCannedACL_Values(), false), +@@ -63,7 +63,7 @@ func ResourceBucketObject() *schema.Resource { + ValidateDiagFunc: enum.Validate[types.ObjectCannedACL](), }, "bucket": { - Deprecated: "Use the aws_s3_object resource instead", @@ -20,7 +20,7 @@ index bc696e299e..47bec8e864 100644 Type: schema.TypeString, Required: true, ForceNew: true, -@@ -123,7 +123,7 @@ func ResourceBucketObject() *schema.Resource { +@@ -120,7 +120,7 @@ func ResourceBucketObject() *schema.Resource { Default: false, }, "key": { @@ -29,7 +29,7 @@ index bc696e299e..47bec8e864 100644 Type: schema.TypeString, Required: true, ForceNew: true, -@@ -196,7 +196,9 @@ func ResourceBucketObject() *schema.Resource { +@@ -193,7 +193,9 @@ func ResourceBucketObject() *schema.Resource { }, }, @@ -41,5 +41,5 @@ index bc696e299e..47bec8e864 100644 } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0006-Remove-lakeformation-catalog_resource-default.patch b/patches/0006-Remove-lakeformation-catalog_resource-default.patch index 2e49200c782..8fab408785b 100644 --- a/patches/0006-Remove-lakeformation-catalog_resource-default.patch +++ b/patches/0006-Remove-lakeformation-catalog_resource-default.patch @@ -1,7 +1,7 @@ -From 6701906d24a0c539f8488d5e8dc040f4ca4161b6 Mon Sep 17 00:00:00 2001 +From b60aeba2c4cfdbf117f507abf7ad90c556540063 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:08:23 +0000 -Subject: [PATCH 06/29] Remove lakeformation catalog_resource default +Subject: [PATCH 06/30] Remove lakeformation catalog_resource default --- internal/service/lakeformation/permissions.go | 4 ++-- @@ -23,5 +23,5 @@ index 594d25ee73..258163d0a5 100644 Optional: true, ExactlyOneOf: []string{ -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0007-Workaround-SSM-Parameter-tier-bug.patch b/patches/0007-Workaround-SSM-Parameter-tier-bug.patch index 7161e97f366..73bd0baa25f 100644 --- a/patches/0007-Workaround-SSM-Parameter-tier-bug.patch +++ b/patches/0007-Workaround-SSM-Parameter-tier-bug.patch @@ -1,7 +1,7 @@ -From d601e767ca1093b18ef2320cccbdc1dbe10e3444 Mon Sep 17 00:00:00 2001 +From c233bf1db11b78e011e31d1202924f4820e018c4 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:24:42 +0000 -Subject: [PATCH 07/29] Workaround SSM Parameter tier bug +Subject: [PATCH 07/30] Workaround SSM Parameter tier bug - Disable "computed". - Disable diff suppression & counteractions @@ -57,5 +57,5 @@ index 544385cfa6..6f72ffec7a 100644 if d.HasChange("data_type") { paramInput.DataType = aws.String(d.Get("data_type").(string)) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0008-Add-EKS-cluster-default_addons_to_remove.patch b/patches/0008-Add-EKS-cluster-default_addons_to_remove.patch index 8d9e2c20e51..c61cbe1f9db 100644 --- a/patches/0008-Add-EKS-cluster-default_addons_to_remove.patch +++ b/patches/0008-Add-EKS-cluster-default_addons_to_remove.patch @@ -1,7 +1,7 @@ -From 5e8bdb6ebdfb810be4d229b93c92a6779c5e666d Mon Sep 17 00:00:00 2001 +From fa9ec3bd90d868fb4e0fd09c7eaaca266dcb61dd Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:31:27 +0000 -Subject: [PATCH 08/29] Add EKS cluster default_addons_to_remove +Subject: [PATCH 08/30] Add EKS cluster default_addons_to_remove --- internal/service/eks/cluster.go | 7 + @@ -268,5 +268,5 @@ index 57a94e414f..6568e06549 100644 ) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0009-Add-EKS-cluster-certificate_authorities-plural.patch b/patches/0009-Add-EKS-cluster-certificate_authorities-plural.patch index 54e068b1731..5aa2f044ff8 100644 --- a/patches/0009-Add-EKS-cluster-certificate_authorities-plural.patch +++ b/patches/0009-Add-EKS-cluster-certificate_authorities-plural.patch @@ -1,7 +1,7 @@ -From 8f94a529126b5b4ea622c7fba07badf8d15ec17e Mon Sep 17 00:00:00 2001 +From 2e2c333d8a701596ab09df78b40e6b6370fffbfb Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:32:49 +0000 -Subject: [PATCH 09/29] Add EKS cluster certificate_authorities (plural) +Subject: [PATCH 09/30] Add EKS cluster certificate_authorities (plural) --- internal/service/eks/cluster.go | 22 ++++++++++++++++++++++ @@ -51,5 +51,5 @@ index d8544be700..01c6b3caa0 100644 return diag.Errorf("setting certificate_authority: %s", err) } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0010-Workaround-Autoscaling-launch_configuration-associat.patch b/patches/0010-Workaround-Autoscaling-launch_configuration-associat.patch index 0b6bd16f3f1..1a63b3df223 100644 --- a/patches/0010-Workaround-Autoscaling-launch_configuration-associat.patch +++ b/patches/0010-Workaround-Autoscaling-launch_configuration-associat.patch @@ -1,7 +1,7 @@ -From cc8d6e10e258e0bacc1c197026cf09a5ba9a5eda Mon Sep 17 00:00:00 2001 +From 00ddbdff650785a7a5d90ceae880de9a1b4245eb Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:34:56 +0000 -Subject: [PATCH 10/29] Workaround Autoscaling launch_configuration +Subject: [PATCH 10/30] Workaround Autoscaling launch_configuration associate_public_ip_address - Disable computation of property until fixed. @@ -52,5 +52,5 @@ index 0cd504e232..74d309153f 100644 if v, ok := d.GetOk("iam_instance_profile"); ok { input.IamInstanceProfile = aws.String(v.(string)) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0011-Add-ECR-credentials_data_source.patch b/patches/0011-Add-ECR-credentials_data_source.patch index fb65d52a96a..89ed2403c71 100644 --- a/patches/0011-Add-ECR-credentials_data_source.patch +++ b/patches/0011-Add-ECR-credentials_data_source.patch @@ -1,7 +1,7 @@ -From ea9f5823aa9e8c71237b47c2f52c6c472ec42224 Mon Sep 17 00:00:00 2001 +From 7be4e01968fb1632b5beb3b8029a368a0fa91b6f Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 4 Nov 2022 17:36:34 +0000 -Subject: [PATCH 11/29] Add ECR credentials_data_source +Subject: [PATCH 11/30] Add ECR credentials_data_source --- internal/provider/provider.go | 7 +- @@ -155,5 +155,5 @@ index 0000000000..28bc53646f +} +`, acctest.RandInt()) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0012-Add-custom-appautoscaling-examples.patch b/patches/0012-Add-custom-appautoscaling-examples.patch index 8f4343abf83..7b7bea68ad5 100644 --- a/patches/0012-Add-custom-appautoscaling-examples.patch +++ b/patches/0012-Add-custom-appautoscaling-examples.patch @@ -1,7 +1,7 @@ -From 17904c3ce60193b15f5687fd3e2f0c390bb1a481 Mon Sep 17 00:00:00 2001 +From d2a6f2372be03dca37109e01bad745aa68745038 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Wed, 9 Nov 2022 17:37:35 +0000 -Subject: [PATCH 12/29] Add custom appautoscaling examples +Subject: [PATCH 12/30] Add custom appautoscaling examples --- .../r/appautoscaling_policy.html.markdown | 28 +++++++++++++++++++ @@ -71,5 +71,5 @@ index c8899c14fe..eec6f7ca46 100644 This resource supports the following arguments: -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0013-Add-dedicated_host-docs.patch b/patches/0013-Add-dedicated_host-docs.patch index ec29cb10a7b..f842f9cecff 100644 --- a/patches/0013-Add-dedicated_host-docs.patch +++ b/patches/0013-Add-dedicated_host-docs.patch @@ -1,7 +1,7 @@ -From 395f6c144fc389e6531b76f42ee2b2a16f0c4f4e Mon Sep 17 00:00:00 2001 +From 6cd7a0707fa5cb11ed85c4868fb06f929dce3f38 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Tue, 15 Nov 2022 10:08:05 +0000 -Subject: [PATCH 13/29] Add dedicated_host docs +Subject: [PATCH 13/30] Add dedicated_host docs --- website/docs/d/dedicated_host.html.markdown | 75 +++++++++++++++++++++ @@ -169,5 +169,5 @@ index 0000000000..01845aa221 +$ terraform import aws_dedicated_host.host_id h-0385a99d0e4b20cbb +``` -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0014-Revert-WAF-schema-changes.patch b/patches/0014-Revert-WAF-schema-changes.patch index dde9476602d..97a86660f52 100644 --- a/patches/0014-Revert-WAF-schema-changes.patch +++ b/patches/0014-Revert-WAF-schema-changes.patch @@ -1,7 +1,7 @@ -From 461bae8e19283f649c6fb4340c90c2772ea7ac36 Mon Sep 17 00:00:00 2001 +From 269582d274a484af56f9c544047c2fe998e0862a Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Tue, 15 Nov 2022 13:59:57 +0000 -Subject: [PATCH 14/29] Revert WAF schema changes +Subject: [PATCH 14/30] Revert WAF schema changes - This causes far too many types to be generated downstream. --- @@ -9,7 +9,7 @@ Subject: [PATCH 14/29] Revert WAF schema changes 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/service/wafv2/schemas.go b/internal/service/wafv2/schemas.go -index fdb18d188d..876317b038 100644 +index 107e236d8a..70e8ffed83 100644 --- a/internal/service/wafv2/schemas.go +++ b/internal/service/wafv2/schemas.go @@ -52,14 +52,14 @@ func ruleGroupRootStatementSchema(level int) *schema.Schema { @@ -32,5 +32,5 @@ index fdb18d188d..876317b038 100644 "regex_pattern_set_reference_statement": regexPatternSetReferenceStatementSchema(), "size_constraint_statement": sizeConstraintSchema(), -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0015-Catch-cty-panic-in-new-resourceTopicSubscriptionCust.patch b/patches/0015-Catch-cty-panic-in-new-resourceTopicSubscriptionCust.patch index 3985b5dd000..862922ce310 100644 --- a/patches/0015-Catch-cty-panic-in-new-resourceTopicSubscriptionCust.patch +++ b/patches/0015-Catch-cty-panic-in-new-resourceTopicSubscriptionCust.patch @@ -1,7 +1,7 @@ -From 0e95fc1c234a54882bea03da462da5fd1cfed105 Mon Sep 17 00:00:00 2001 +From a863120f586c57240becb4c180bb9378d957f6d4 Mon Sep 17 00:00:00 2001 From: Thomas Kappler Date: Thu, 1 Dec 2022 10:56:32 -0800 -Subject: [PATCH 15/29] Catch cty panic in new +Subject: [PATCH 15/30] Catch cty panic in new resourceTopicSubscriptionCustomizeDiff. The root cause is not fully understood yet but this might unblock us. @@ -27,5 +27,5 @@ index 97e1d8a056..bb3caf2e1d 100644 if !hadScope { // When the filter_policy_scope hasn't been read back from the API, -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0016-add-matchmaking-configuration-72.patch b/patches/0016-add-matchmaking-configuration-72.patch index 8784fa32740..724162e4d9d 100644 --- a/patches/0016-add-matchmaking-configuration-72.patch +++ b/patches/0016-add-matchmaking-configuration-72.patch @@ -1,7 +1,7 @@ -From ec46528cdf336b287f2d999bbe86a000116536d6 Mon Sep 17 00:00:00 2001 +From 3f1708ac90d938fafe0e297c93f022ad61309ea9 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Wed, 21 Dec 2022 12:23:59 -0800 -Subject: [PATCH 16/29] add matchmaking configuration (#72) +Subject: [PATCH 16/30] add matchmaking configuration (#72) * add matchmaking configuration * add matchmaking rule set @@ -1195,5 +1195,5 @@ index 0000000000..28013532bf +$ terraform import aws_gamelift_matchmaking_rule_set.example +``` -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0017-fix-Adding-back-in-removeAddons.patch b/patches/0017-fix-Adding-back-in-removeAddons.patch index 8662fb349f7..60deca8ae99 100644 --- a/patches/0017-fix-Adding-back-in-removeAddons.patch +++ b/patches/0017-fix-Adding-back-in-removeAddons.patch @@ -1,7 +1,7 @@ -From de4e155a7b4b53e35bcfd775ec306a5c3decfd41 Mon Sep 17 00:00:00 2001 +From d680977bf300c78ef9796edc808ce137c2f5d42e Mon Sep 17 00:00:00 2001 From: Richard Shade Date: Fri, 6 Jan 2023 15:31:22 -0600 -Subject: [PATCH 17/29] fix: Adding back in removeAddons +Subject: [PATCH 17/30] fix: Adding back in removeAddons --- internal/service/eks/cluster.go | 4 ++++ @@ -23,5 +23,5 @@ index 01c6b3caa0..4d7e5760fd 100644 } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0018-Reverts-patches-to-S3BucketLegacy-and-GameLift.patch b/patches/0018-Reverts-patches-to-S3BucketLegacy-and-GameLift.patch index 3a73560e6d6..0068c4410b2 100644 --- a/patches/0018-Reverts-patches-to-S3BucketLegacy-and-GameLift.patch +++ b/patches/0018-Reverts-patches-to-S3BucketLegacy-and-GameLift.patch @@ -1,7 +1,7 @@ -From 8edb743f2c94cbcdd580e0721ece07a7659e164e Mon Sep 17 00:00:00 2001 +From 3d50ed75f7eb1e4124162aade70a22c5a769267c Mon Sep 17 00:00:00 2001 From: Kyle Pitzen Date: Fri, 27 Jan 2023 09:37:43 -0600 -Subject: [PATCH 18/29] Reverts patches to S3BucketLegacy and GameLift +Subject: [PATCH 18/30] Reverts patches to S3BucketLegacy and GameLift Previously, we were pulling along patches which removed a few simplifications to waiters in AWS GameLift, and a newer patch which plumbed through context.Context @@ -914,5 +914,5 @@ index 7a548d8d6d..9031539c19 100644 + return tfresource.RetryWhenAWSErrCodeEquals(ctx, propagationTimeout, f, s3.ErrCodeNoSuchBucket) } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0019-Revert-Update-endpointHashIPAddress.patch b/patches/0019-Revert-Update-endpointHashIPAddress.patch index 2f3aac74fbe..889ee5c0518 100644 --- a/patches/0019-Revert-Update-endpointHashIPAddress.patch +++ b/patches/0019-Revert-Update-endpointHashIPAddress.patch @@ -1,7 +1,7 @@ -From bed5dea13f90b72a23f45563b6b9e7841242998c Mon Sep 17 00:00:00 2001 +From eed35fd065c770df868096a3334755c357bf3252 Mon Sep 17 00:00:00 2001 From: Thomas Kappler Date: Fri, 3 Feb 2023 17:31:18 -0800 -Subject: [PATCH 19/29] Revert "Update endpointHashIPAddress" +Subject: [PATCH 19/30] Revert "Update endpointHashIPAddress" This reverts commit 2197a6c2c7a0ff306cec3432acb9f5680866f034. @@ -25,5 +25,5 @@ index fdaba25fa4..0bb4e22ee2 100644 } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0020-Fixup-eks-formatting.patch b/patches/0020-Fixup-eks-formatting.patch index 30432cf7710..f961a42a7ef 100644 --- a/patches/0020-Fixup-eks-formatting.patch +++ b/patches/0020-Fixup-eks-formatting.patch @@ -1,7 +1,7 @@ -From cd825c40a435e48dc89154edac5ae7d27a8203dd Mon Sep 17 00:00:00 2001 +From 92be6c8ed60b315474cdac19726012a38b5ddd0a Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Thu, 9 Mar 2023 14:50:36 +0000 -Subject: [PATCH 20/29] Fixup eks formatting +Subject: [PATCH 20/30] Fixup eks formatting --- internal/service/eks/wait.go | 6 +++--- @@ -25,5 +25,5 @@ index 6568e06549..fb1ec98588 100644 ) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0021-Fixup-gamelift-context.patch b/patches/0021-Fixup-gamelift-context.patch index 35a117c052a..57cde456423 100644 --- a/patches/0021-Fixup-gamelift-context.patch +++ b/patches/0021-Fixup-gamelift-context.patch @@ -1,7 +1,7 @@ -From f96ae401f04687975defdaa16889e3e850c66236 Mon Sep 17 00:00:00 2001 +From 0ac1e3b97edf878acd8a03be3ac6a28561a89e95 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Thu, 9 Mar 2023 14:50:51 +0000 -Subject: [PATCH 21/29] Fixup gamelift context +Subject: [PATCH 21/30] Fixup gamelift context --- internal/service/gamelift/matchmaking_configuration.go | 2 +- @@ -35,5 +35,5 @@ index 8c1189199f..254c96efc6 100644 input := gamelift.CreateMatchmakingRuleSetInput{ Name: aws.String(d.Get("name").(string)), -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0022-Change-default-descriptions-to-Managed-by-Pulumi.patch b/patches/0022-Change-default-descriptions-to-Managed-by-Pulumi.patch index ed4ba69ffd9..abd94e6fec2 100644 --- a/patches/0022-Change-default-descriptions-to-Managed-by-Pulumi.patch +++ b/patches/0022-Change-default-descriptions-to-Managed-by-Pulumi.patch @@ -1,7 +1,7 @@ -From ecce92e35973eba12d1a596dedfe955b1427d117 Mon Sep 17 00:00:00 2001 +From 0b9199f9da82cdc105721dc0eac34ed8622d0a8e Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Tue, 28 Feb 2023 15:19:24 +0000 -Subject: [PATCH 22/29] Change default descriptions to "Managed by Pulumi" +Subject: [PATCH 22/30] Change default descriptions to "Managed by Pulumi" --- internal/service/apigateway/api_key.go | 2 +- @@ -1093,7 +1093,7 @@ index 4f2eb6d5ef..0b7eee84ce 100644 { Action: aws.String(route53.ChangeActionDelete), diff --git a/internal/service/route53/zone.go b/internal/service/route53/zone.go -index 0e0df11801..0b68b3bf21 100644 +index e39e6ec7c0..b00f880a2a 100644 --- a/internal/service/route53/zone.go +++ b/internal/service/route53/zone.go @@ -59,7 +59,7 @@ func ResourceZone() *schema.Resource { @@ -1128,5 +1128,5 @@ index e17fa7c445..fb9e5b7304 100644 _, err = conn.DisassociateVPCFromHostedZoneWithContext(ctx, input) -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0023-remove-required-elements-from-schema-and-fix-tests-7.patch b/patches/0023-remove-required-elements-from-schema-and-fix-tests-7.patch index 21aa6c4a6a0..37136960417 100644 --- a/patches/0023-remove-required-elements-from-schema-and-fix-tests-7.patch +++ b/patches/0023-remove-required-elements-from-schema-and-fix-tests-7.patch @@ -1,7 +1,7 @@ -From c3ae5941e19641066419184a5dab1e16f5f11201 Mon Sep 17 00:00:00 2001 +From 06e2059ba26ce7c2ea63a9d7a41685c16920bb5d Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Tue, 28 Mar 2023 19:54:00 +0100 -Subject: [PATCH 23/29] remove required elements from schema and fix tests +Subject: [PATCH 23/30] remove required elements from schema and fix tests (#77) Co-authored-by: Lee Briggs @@ -286,5 +286,5 @@ index 8788ef5b45..0d6b961c5b 100644 name := rs.Primary.Attributes["name"] out, err := conn.DescribeMatchmakingRuleSets(&gamelift.DescribeMatchmakingRuleSetsInput{ -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0024-Temp-remove-cognito_identity_pool_roles_attachment-e.patch b/patches/0024-Temp-remove-cognito_identity_pool_roles_attachment-e.patch index ddec71c74e0..ff6f0d37516 100644 --- a/patches/0024-Temp-remove-cognito_identity_pool_roles_attachment-e.patch +++ b/patches/0024-Temp-remove-cognito_identity_pool_roles_attachment-e.patch @@ -1,7 +1,7 @@ -From 0bb3993650348a51218e36107e2f9da97303e5f5 Mon Sep 17 00:00:00 2001 +From c5c5291ce5362c84d8aef00003589fe9f8aefe61 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Mon, 24 Apr 2023 10:36:36 -0400 -Subject: [PATCH 24/29] Temp remove cognito_identity_pool_roles_attachment +Subject: [PATCH 24/30] Temp remove cognito_identity_pool_roles_attachment example beacuse of flaky translation --- @@ -101,5 +101,5 @@ index 23c0000bb6..d56a26e5f0 100644 ## Argument Reference -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0025-Fix-elbv2-target-group-read.patch b/patches/0025-Fix-elbv2-target-group-read.patch index 34c4bdb49e2..21a65bec68b 100644 --- a/patches/0025-Fix-elbv2-target-group-read.patch +++ b/patches/0025-Fix-elbv2-target-group-read.patch @@ -1,7 +1,7 @@ -From e18317d305024181cf84c159f9458a7863995781 Mon Sep 17 00:00:00 2001 +From ffb3aef9651312ea835d5ae49e0ad0cdb3fd02f4 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Fri, 12 May 2023 10:55:42 +0100 -Subject: [PATCH 25/29] Fix elbv2 target group read +Subject: [PATCH 25/30] Fix elbv2 target group read Workaround for https://github.com/pulumi/pulumi-aws/issues/2517 Don't return single empty map. Return empty list instead. @@ -27,5 +27,5 @@ index 68f04ccc02..8854953fc5 100644 } -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0026-Fix-spurrious-json-diff-for-redrive_policy.patch b/patches/0026-Fix-spurrious-json-diff-for-redrive_policy.patch index 63c5f5d8573..3601f06adbe 100644 --- a/patches/0026-Fix-spurrious-json-diff-for-redrive_policy.patch +++ b/patches/0026-Fix-spurrious-json-diff-for-redrive_policy.patch @@ -1,7 +1,7 @@ -From a4a868b27854684da9b5000f1136f74e223a4707 Mon Sep 17 00:00:00 2001 +From b4ea50324baa43801de44d58e606f1f2f8fdf5cb Mon Sep 17 00:00:00 2001 From: Ramon Quitales Date: Thu, 18 May 2023 15:21:33 -0700 -Subject: [PATCH 26/29] Fix spurrious json diff for redrive_policy +Subject: [PATCH 26/30] Fix spurrious json diff for redrive_policy We need to normalize the json input to compare agasint the one stored in state. @@ -38,5 +38,5 @@ index 7f55a8e6e8..d3a620f555 100644 json, _ := structure.NormalizeJsonString(v) return json -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0027-Provide-context-to-conns.patch b/patches/0027-Provide-context-to-conns.patch index 628d7233aa3..13be513cd6f 100644 --- a/patches/0027-Provide-context-to-conns.patch +++ b/patches/0027-Provide-context-to-conns.patch @@ -1,7 +1,7 @@ -From b654d4f465073f667825e2a019fb17decbcb5403 Mon Sep 17 00:00:00 2001 +From be4221e4d47b4917cea72e0616347314622a5610 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Mon, 10 Jul 2023 11:51:24 +0200 -Subject: [PATCH 27/29] Provide context to conns +Subject: [PATCH 27/30] Provide context to conns --- internal/service/ecr/credentials_data_source.go | 4 +++- @@ -312,5 +312,5 @@ index ba95f6c2b6..0563bd3a25 100644 Bucket: aws.String(bucket), }, -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0028-Match-the-tags-behavior-of-other-resources.patch b/patches/0028-Match-the-tags-behavior-of-other-resources.patch index 5a60770dc6d..061cfa044e8 100644 --- a/patches/0028-Match-the-tags-behavior-of-other-resources.patch +++ b/patches/0028-Match-the-tags-behavior-of-other-resources.patch @@ -1,7 +1,7 @@ -From 564f5b370ea86e48dfcf6499b46af1a13f2d0014 Mon Sep 17 00:00:00 2001 +From e9ed4feacf238d7f3eba6bf5c9f2af0f6ed761f2 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Wed, 2 Aug 2023 14:12:03 +0200 -Subject: [PATCH 28/29] Match the "tags" behavior of other resources +Subject: [PATCH 28/30] Match the "tags" behavior of other resources --- internal/service/s3legacy/bucket_legacy.go | 14 +++----------- @@ -47,5 +47,5 @@ index 0563bd3a25..e6bd8e7013 100644 arn := arn.ARN{ -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0029-move-shim-logic-to-upstream-as-a-patch.patch b/patches/0029-move-shim-logic-to-upstream-as-a-patch.patch index b1894d21bbd..846cf3ef34c 100644 --- a/patches/0029-move-shim-logic-to-upstream-as-a-patch.patch +++ b/patches/0029-move-shim-logic-to-upstream-as-a-patch.patch @@ -1,7 +1,7 @@ -From e212ed516b0fc74f1d92e3040b2e4872c33f4f52 Mon Sep 17 00:00:00 2001 +From f09e6dc45ccff18055d13bae2677499e71733f36 Mon Sep 17 00:00:00 2001 From: Guinevere Saenger Date: Wed, 6 Sep 2023 10:43:30 -0700 -Subject: [PATCH 29/29] move shim logic to upstream as a patch +Subject: [PATCH 29/30] move shim logic to upstream as a patch --- shim/shim.go | 36 ++++++++++++++++++++++++++++++++++++ @@ -88,5 +88,5 @@ index 0000000000..f8ee8a0c54 + } +} -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/patches/0030-Restore-S3ConnURICleaningDisabled.patch b/patches/0030-Restore-S3ConnURICleaningDisabled.patch index e3bf2c1914c..9154d71cd11 100644 --- a/patches/0030-Restore-S3ConnURICleaningDisabled.patch +++ b/patches/0030-Restore-S3ConnURICleaningDisabled.patch @@ -1,14 +1,14 @@ -From 6c2ce6c4b0ea782d1ac45ae32c4592f838fb5f77 Mon Sep 17 00:00:00 2001 +From 55f7f811198fcc5f71c2e3005eb2365a2ea04b2a Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Mon, 25 Sep 2023 15:22:30 -0400 -Subject: [PATCH 2/2] Restore S3ConnURICleaningDisabled +Subject: [PATCH 30/30] Restore S3ConnURICleaningDisabled --- internal/conns/awsclient.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/conns/awsclient.go b/internal/conns/awsclient.go -index 40f2242413..7740c0e671 100644 +index 1b833cb6ec..a173638519 100644 --- a/internal/conns/awsclient.go +++ b/internal/conns/awsclient.go @@ -10,10 +10,12 @@ import ( @@ -24,7 +24,7 @@ index 40f2242413..7740c0e671 100644 tftags "github.com/hashicorp/terraform-provider-aws/internal/tags" "github.com/hashicorp/terraform-provider-aws/names" ) -@@ -61,6 +63,13 @@ func (client *AWSClient) S3UsePathStyle() bool { +@@ -69,6 +71,13 @@ func (client *AWSClient) S3UsePathStyle() bool { return client.s3UsePathStyle } @@ -39,5 +39,5 @@ index 40f2242413..7740c0e671 100644 // To have effect it must be called before the AWS SDK v1 Session is created. func (client *AWSClient) SetHTTPClient(httpClient *http.Client) { -- -2.39.2 (Apple Git-143) +2.40.0 diff --git a/provider/cmd/pulumi-resource-aws/bridge-metadata.json b/provider/cmd/pulumi-resource-aws/bridge-metadata.json index a8f25509a57..a9e03407de9 100644 --- a/provider/cmd/pulumi-resource-aws/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-aws/bridge-metadata.json @@ -4425,6 +4425,18 @@ } } }, + "aws_cleanrooms_configured_table": { + "current": "aws:cleanrooms/configuredTable:ConfiguredTable", + "majorVersion": 6, + "fields": { + "allowed_columns": { + "maxItemsOne": false + }, + "table_reference": { + "maxItemsOne": true + } + } + }, "aws_cloud9_environment_ec2": { "current": "aws:cloud9/environmentEC2:EnvironmentEC2", "majorVersion": 6 @@ -7792,6 +7804,22 @@ } } }, + "aws_dms_replication_config": { + "current": "aws:dms/replicationConfig:ReplicationConfig", + "majorVersion": 6, + "fields": { + "compute_config": { + "maxItemsOne": true, + "elem": { + "fields": { + "vpc_security_group_ids": { + "maxItemsOne": false + } + } + } + } + } + }, "aws_dms_replication_instance": { "current": "aws:dms/replicationInstance:ReplicationInstance", "majorVersion": 6, @@ -10578,6 +10606,32 @@ "current": "aws:fsx/ontapVolume:OntapVolume", "majorVersion": 6, "fields": { + "snaplock_configuration": { + "maxItemsOne": true, + "elem": { + "fields": { + "autocommit_period": { + "maxItemsOne": true + }, + "retention_period": { + "maxItemsOne": true, + "elem": { + "fields": { + "default_retention": { + "maxItemsOne": true + }, + "maximum_retention": { + "maxItemsOne": true + }, + "minimum_retention": { + "maxItemsOne": true + } + } + } + } + } + } + }, "tiering_policy": { "maxItemsOne": true } @@ -10639,6 +10693,9 @@ "current": "aws:fsx/openZfsVolume:OpenZfsVolume", "majorVersion": 6, "fields": { + "delete_volume_options": { + "maxItemsOne": true + }, "nfs_exports": { "maxItemsOne": true, "elem": { @@ -14525,6 +14582,18 @@ } } }, + "aws_lexv2models_bot": { + "current": "aws:lex/v2modelsBot:V2modelsBot", + "majorVersion": 6, + "fields": { + "data_privacy": { + "maxItemsOne": false + }, + "members": { + "maxItemsOne": false + } + } + }, "aws_licensemanager_association": { "current": "aws:licensemanager/association:Association", "majorVersion": 6 @@ -17333,6 +17402,16 @@ "current": "aws:opensearch/outboundConnection:OutboundConnection", "majorVersion": 6, "fields": { + "connection_properties": { + "maxItemsOne": true, + "elem": { + "fields": { + "cross_cluster_search": { + "maxItemsOne": true + } + } + } + }, "local_domain_info": { "maxItemsOne": true }, @@ -146091,6 +146170,10 @@ "current": "aws:rds/clusterRoleAssociation:ClusterRoleAssociation", "majorVersion": 6 }, + "aws_rds_custom_db_engine_version": { + "current": "aws:rds/customDbEngineVersion:CustomDbEngineVersion", + "majorVersion": 6 + }, "aws_rds_export_task": { "current": "aws:rds/exportTask:ExportTask", "majorVersion": 6, @@ -159916,6 +159999,75 @@ "maxItemsOne": true, "elem": { "fields": { + "custom_key": { + "maxItemsOne": false, + "elem": { + "fields": { + "cookie": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "forwarded_ip": { + "maxItemsOne": true + }, + "header": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "http_method": { + "maxItemsOne": true + }, + "ip": { + "maxItemsOne": true + }, + "label_namespace": { + "maxItemsOne": true + }, + "query_argument": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "query_string": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "uri_path": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + } + } + } + }, "forwarded_ip_config": { "maxItemsOne": true }, @@ -198162,6 +198314,75 @@ "maxItemsOne": true, "elem": { "fields": { + "custom_key": { + "maxItemsOne": false, + "elem": { + "fields": { + "cookie": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "forwarded_ip": { + "maxItemsOne": true + }, + "header": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "http_method": { + "maxItemsOne": true + }, + "ip": { + "maxItemsOne": true + }, + "label_namespace": { + "maxItemsOne": true + }, + "query_argument": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "query_string": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + }, + "uri_path": { + "maxItemsOne": true, + "elem": { + "fields": { + "text_transformation": { + "maxItemsOne": false + } + } + } + } + } + } + }, "forwarded_ip_config": { "maxItemsOne": true }, @@ -217891,6 +218112,7 @@ "aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials": 0, "aws:chimesdkmediapipelines/mediaInsightsPipelineConfiguration:MediaInsightsPipelineConfiguration": 0, "aws:cleanrooms/collaboration:Collaboration": 0, + "aws:cleanrooms/configuredTable:ConfiguredTable": 0, "aws:cloud9/environmentEC2:EnvironmentEC2": 0, "aws:cloud9/environmentMembership:EnvironmentMembership": 0, "aws:cloudcontrol/resource:Resource": 0, @@ -218065,6 +218287,7 @@ "aws:dms/certificate:Certificate": 0, "aws:dms/endpoint:Endpoint": 0, "aws:dms/eventSubscription:EventSubscription": 0, + "aws:dms/replicationConfig:ReplicationConfig": 0, "aws:dms/replicationInstance:ReplicationInstance": 0, "aws:dms/replicationSubnetGroup:ReplicationSubnetGroup": 0, "aws:dms/replicationTask:ReplicationTask": 0, @@ -218454,6 +218677,7 @@ "aws:lex/botAlias:BotAlias": 0, "aws:lex/intent:Intent": 0, "aws:lex/slotType:SlotType": 0, + "aws:lex/v2modelsBot:V2modelsBot": 1, "aws:licensemanager/association:Association": 0, "aws:licensemanager/licenseConfiguration:LicenseConfiguration": 0, "aws:licensemanager/licenseGrant:LicenseGrant": 0, @@ -218639,6 +218863,7 @@ "aws:rds/clusterParameterGroup:ClusterParameterGroup": 0, "aws:rds/clusterRoleAssociation:ClusterRoleAssociation": 0, "aws:rds/clusterSnapshot:ClusterSnapshot": 0, + "aws:rds/customDbEngineVersion:CustomDbEngineVersion": 0, "aws:rds/eventSubscription:EventSubscription": 0, "aws:rds/exportTask:ExportTask": 1, "aws:rds/globalCluster:GlobalCluster": 0, @@ -219677,6 +219902,7 @@ "aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials": "aws_chime_voice_connector_termination_credentials", "aws:chimesdkmediapipelines/mediaInsightsPipelineConfiguration:MediaInsightsPipelineConfiguration": "aws_chimesdkmediapipelines_media_insights_pipeline_configuration", "aws:cleanrooms/collaboration:Collaboration": "aws_cleanrooms_collaboration", + "aws:cleanrooms/configuredTable:ConfiguredTable": "aws_cleanrooms_configured_table", "aws:cloud9/environmentEC2:EnvironmentEC2": "aws_cloud9_environment_ec2", "aws:cloud9/environmentMembership:EnvironmentMembership": "aws_cloud9_environment_membership", "aws:cloudcontrol/resource:Resource": "aws_cloudcontrolapi_resource", @@ -219851,6 +220077,7 @@ "aws:dms/certificate:Certificate": "aws_dms_certificate", "aws:dms/endpoint:Endpoint": "aws_dms_endpoint", "aws:dms/eventSubscription:EventSubscription": "aws_dms_event_subscription", + "aws:dms/replicationConfig:ReplicationConfig": "aws_dms_replication_config", "aws:dms/replicationInstance:ReplicationInstance": "aws_dms_replication_instance", "aws:dms/replicationSubnetGroup:ReplicationSubnetGroup": "aws_dms_replication_subnet_group", "aws:dms/replicationTask:ReplicationTask": "aws_dms_replication_task", @@ -220240,6 +220467,7 @@ "aws:lex/botAlias:BotAlias": "aws_lex_bot_alias", "aws:lex/intent:Intent": "aws_lex_intent", "aws:lex/slotType:SlotType": "aws_lex_slot_type", + "aws:lex/v2modelsBot:V2modelsBot": "aws_lexv2models_bot", "aws:licensemanager/association:Association": "aws_licensemanager_association", "aws:licensemanager/licenseConfiguration:LicenseConfiguration": "aws_licensemanager_license_configuration", "aws:licensemanager/licenseGrant:LicenseGrant": "aws_licensemanager_grant", @@ -220425,6 +220653,7 @@ "aws:rds/clusterParameterGroup:ClusterParameterGroup": "aws_rds_cluster_parameter_group", "aws:rds/clusterRoleAssociation:ClusterRoleAssociation": "aws_rds_cluster_role_association", "aws:rds/clusterSnapshot:ClusterSnapshot": "aws_db_cluster_snapshot", + "aws:rds/customDbEngineVersion:CustomDbEngineVersion": "aws_rds_custom_db_engine_version", "aws:rds/eventSubscription:EventSubscription": "aws_db_event_subscription", "aws:rds/exportTask:ExportTask": "aws_rds_export_task", "aws:rds/globalCluster:GlobalCluster": "aws_rds_global_cluster", @@ -225609,6 +225838,10 @@ "displayName": "display_name", "memberAbilities": "member_abilities" }, + "aws:cleanrooms/ConfiguredTableTableReference:ConfiguredTableTableReference": { + "databaseName": "database_name", + "tableName": "table_name" + }, "aws:cleanrooms/collaboration:Collaboration": { "createTime": "create_time", "creatorDisplayName": "creator_display_name", @@ -225619,6 +225852,14 @@ "tagsAll": "tags_all", "updateTime": "update_time" }, + "aws:cleanrooms/configuredTable:ConfiguredTable": { + "allowedColumns": "allowed_columns", + "analysisMethod": "analysis_method", + "createTime": "create_time", + "tableReference": "table_reference", + "tagsAll": "tags_all", + "updateTime": "update_time" + }, "aws:cloud9/environmentEC2:EnvironmentEC2": { "automaticStopTimeMinutes": "automatic_stop_time_minutes", "connectionType": "connection_type", @@ -229075,6 +229316,17 @@ "useCsvNoSupValue": "use_csv_no_sup_value", "useTaskStartTimeForFullLoadTimestamp": "use_task_start_time_for_full_load_timestamp" }, + "aws:dms/ReplicationConfigComputeConfig:ReplicationConfigComputeConfig": { + "availabilityZone": "availability_zone", + "dnsNameServers": "dns_name_servers", + "kmsKeyId": "kms_key_id", + "maxCapacityUnits": "max_capacity_units", + "minCapacityUnits": "min_capacity_units", + "multiAz": "multi_az", + "preferredMaintenanceWindow": "preferred_maintenance_window", + "replicationSubnetGroupId": "replication_subnet_group_id", + "vpcSecurityGroupIds": "vpc_security_group_ids" + }, "aws:dms/certificate:Certificate": { "certificateArn": "certificate_arn", "certificateId": "certificate_id", @@ -229283,6 +229535,19 @@ "tableMappings": "table_mappings", "targetEndpointArn": "target_endpoint_arn" }, + "aws:dms/replicationConfig:ReplicationConfig": { + "computeConfig": "compute_config", + "replicationConfigIdentifier": "replication_config_identifier", + "replicationSettings": "replication_settings", + "replicationType": "replication_type", + "resourceIdentifier": "resource_identifier", + "sourceEndpointArn": "source_endpoint_arn", + "startReplication": "start_replication", + "supplementalSettings": "supplemental_settings", + "tableMappings": "table_mappings", + "tagsAll": "tags_all", + "targetEndpointArn": "target_endpoint_arn" + }, "aws:dms/replicationInstance:ReplicationInstance": { "allocatedStorage": "allocated_storage", "allowMajorVersionUpgrade": "allow_major_version_upgrade", @@ -234946,6 +235211,19 @@ "dnsName": "dns_name", "ipAddresses": "ip_addresses" }, + "aws:fsx/OntapVolumeSnaplockConfiguration:OntapVolumeSnaplockConfiguration": { + "auditLogVolume": "audit_log_volume", + "autocommitPeriod": "autocommit_period", + "privilegedDelete": "privileged_delete", + "retentionPeriod": "retention_period", + "snaplockType": "snaplock_type", + "volumeAppendModeEnabled": "volume_append_mode_enabled" + }, + "aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriod:OntapVolumeSnaplockConfigurationRetentionPeriod": { + "defaultRetention": "default_retention", + "maximumRetention": "maximum_retention", + "minimumRetention": "minimum_retention" + }, "aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy": { "coolingPeriod": "cooling_period" }, @@ -235188,6 +235466,8 @@ "tagsAll": "tags_all" }, "aws:fsx/ontapVolume:OntapVolume": { + "bypassSnaplockEnterpriseRetention": "bypass_snaplock_enterprise_retention", + "copyTagsToBackups": "copy_tags_to_backups", "fileSystemId": "file_system_id", "flexcacheEndpointType": "flexcache_endpoint_type", "junctionPath": "junction_path", @@ -235195,6 +235475,8 @@ "securityStyle": "security_style", "sizeInMegabytes": "size_in_megabytes", "skipFinalBackup": "skip_final_backup", + "snaplockConfiguration": "snaplock_configuration", + "snapshotPolicy": "snapshot_policy", "storageEfficiencyEnabled": "storage_efficiency_enabled", "storageVirtualMachineId": "storage_virtual_machine_id", "tagsAll": "tags_all", @@ -235235,6 +235517,7 @@ "aws:fsx/openZfsVolume:OpenZfsVolume": { "copyTagsToSnapshots": "copy_tags_to_snapshots", "dataCompressionType": "data_compression_type", + "deleteVolumeOptions": "delete_volume_options", "nfsExports": "nfs_exports", "originSnapshot": "origin_snapshot", "parentVolumeId": "parent_volume_id", @@ -239362,6 +239645,13 @@ "contentType": "content_type", "groupNumber": "group_number" }, + "aws:lex/V2modelsBotDataPrivacy:V2modelsBotDataPrivacy": { + "childDirected": "child_directed" + }, + "aws:lex/V2modelsBotMember:V2modelsBotMember": { + "aliasId": "alias_id", + "aliasName": "alias_name" + }, "aws:lex/bot:Bot": { "abortStatement": "abort_statement", "childDirected": "child_directed", @@ -239434,6 +239724,13 @@ "lastUpdatedDate": "last_updated_date", "valueSelectionStrategy": "value_selection_strategy" }, + "aws:lex/v2modelsBot:V2modelsBot": { + "dataPrivacies": "data_privacy", + "idleSessionTtlInSeconds": "idle_session_ttl_in_seconds", + "roleArn": "role_arn", + "tagsAll": "tags_all", + "testBotAliasTags": "test_bot_alias_tags" + }, "aws:licensemanager/association:Association": { "licenseConfigurationArn": "license_configuration_arn", "resourceArn": "resource_arn" @@ -239586,6 +239883,7 @@ "availabilityZone": "availability_zone", "bundleId": "bundle_id", "createdAt": "created_at", + "forceDelete": "force_delete", "supportCode": "support_code", "tagsAll": "tags_all" }, @@ -242322,6 +242620,12 @@ "subnetIds": "subnet_ids", "vpcId": "vpc_id" }, + "aws:opensearch/OutboundConnectionConnectionProperties:OutboundConnectionConnectionProperties": { + "crossClusterSearch": "cross_cluster_search" + }, + "aws:opensearch/OutboundConnectionConnectionPropertiesCrossClusterSearch:OutboundConnectionConnectionPropertiesCrossClusterSearch": { + "skipUnavailable": "skip_unavailable" + }, "aws:opensearch/OutboundConnectionLocalDomainInfo:OutboundConnectionLocalDomainInfo": { "domainName": "domain_name", "ownerId": "owner_id" @@ -242501,7 +242805,10 @@ "connectionStatus": "connection_status" }, "aws:opensearch/outboundConnection:OutboundConnection": { + "acceptConnection": "accept_connection", "connectionAlias": "connection_alias", + "connectionMode": "connection_mode", + "connectionProperties": "connection_properties", "connectionStatus": "connection_status", "localDomainInfo": "local_domain_info", "remoteDomainInfo": "remote_domain_info" @@ -333065,6 +333372,20 @@ "tagsAll": "tags_all", "vpcId": "vpc_id" }, + "aws:rds/customDbEngineVersion:CustomDbEngineVersion": { + "createTime": "create_time", + "databaseInstallationFilesS3BucketName": "database_installation_files_s3_bucket_name", + "databaseInstallationFilesS3Prefix": "database_installation_files_s3_prefix", + "dbParameterGroupFamily": "db_parameter_group_family", + "engineVersion": "engine_version", + "imageId": "image_id", + "kmsKeyId": "kms_key_id", + "majorEngineVersion": "major_engine_version", + "manifestComputed": "manifest_computed", + "manifestHash": "manifest_hash", + "sourceImageId": "source_image_id", + "tagsAll": "tags_all" + }, "aws:rds/eventSubscription:EventSubscription": { "customerAwsId": "customer_aws_id", "eventCategories": "event_categories", @@ -341912,9 +342233,33 @@ }, "aws:wafv2/RuleGroupRuleStatementRateBasedStatement:RuleGroupRuleStatementRateBasedStatement": { "aggregateKeyType": "aggregate_key_type", + "customKeys": "custom_key", "forwardedIpConfig": "forwarded_ip_config", "scopeDownStatement": "scope_down_statement" }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKey:RuleGroupRuleStatementRateBasedStatementCustomKey": { + "forwardedIp": "forwarded_ip", + "httpMethod": "http_method", + "labelNamespace": "label_namespace", + "queryArgument": "query_argument", + "queryString": "query_string", + "uriPath": "uri_path" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie:RuleGroupRuleStatementRateBasedStatementCustomKeyCookie": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader:RuleGroupRuleStatementRateBasedStatementCustomKeyHeader": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath:RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath": { + "textTransformations": "text_transformation" + }, "aws:wafv2/RuleGroupRuleStatementRateBasedStatementForwardedIpConfig:RuleGroupRuleStatementRateBasedStatementForwardedIpConfig": { "fallbackBehavior": "fallback_behavior", "headerName": "header_name" @@ -358402,9 +358747,33 @@ }, "aws:wafv2/WebAclRuleStatementRateBasedStatement:WebAclRuleStatementRateBasedStatement": { "aggregateKeyType": "aggregate_key_type", + "customKeys": "custom_key", "forwardedIpConfig": "forwarded_ip_config", "scopeDownStatement": "scope_down_statement" }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKey:WebAclRuleStatementRateBasedStatementCustomKey": { + "forwardedIp": "forwarded_ip", + "httpMethod": "http_method", + "labelNamespace": "label_namespace", + "queryArgument": "query_argument", + "queryString": "query_string", + "uriPath": "uri_path" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyCookie:WebAclRuleStatementRateBasedStatementCustomKeyCookie": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHeader:WebAclRuleStatementRateBasedStatementCustomKeyHeader": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument:WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryString:WebAclRuleStatementRateBasedStatementCustomKeyQueryString": { + "textTransformations": "text_transformation" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyUriPath:WebAclRuleStatementRateBasedStatementCustomKeyUriPath": { + "textTransformations": "text_transformation" + }, "aws:wafv2/WebAclRuleStatementRateBasedStatementForwardedIpConfig:WebAclRuleStatementRateBasedStatementForwardedIpConfig": { "fallbackBehavior": "fallback_behavior", "headerName": "header_name" diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index 1a94442aa79..53527c1613a 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -20087,6 +20087,23 @@ } } }, + "aws:cleanrooms/ConfiguredTableTableReference:ConfiguredTableTableReference": { + "properties": { + "databaseName": { + "type": "string", + "willReplaceOnChanges": true + }, + "tableName": { + "type": "string", + "willReplaceOnChanges": true + } + }, + "type": "object", + "required": [ + "databaseName", + "tableName" + ] + }, "aws:cloudformation/CloudFormationTypeLoggingConfig:CloudFormationTypeLoggingConfig": { "properties": { "logGroupName": { @@ -20978,11 +20995,11 @@ }, "originShield": { "$ref": "#/types/aws:cloudfront/DistributionOriginOriginShield:DistributionOriginOriginShield", - "description": "The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide.\n" + "description": "CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide.\n" }, "s3OriginConfig": { "$ref": "#/types/aws:cloudfront/DistributionOriginS3OriginConfig:DistributionOriginS3OriginConfig", - "description": "The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead.\n" + "description": "CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead.\n" } }, "type": "object", @@ -21104,13 +21121,12 @@ }, "originShieldRegion": { "type": "string", - "description": "AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2.\n" + "description": "AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`.\n" } }, "type": "object", "required": [ - "enabled", - "originShieldRegion" + "enabled" ] }, "aws:cloudfront/DistributionOriginS3OriginConfig:DistributionOriginS3OriginConfig": { @@ -33197,6 +33213,68 @@ }, "type": "object" }, + "aws:dms/ReplicationConfigComputeConfig:ReplicationConfigComputeConfig": { + "properties": { + "availabilityZone": { + "type": "string", + "description": "The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random.\n", + "willReplaceOnChanges": true + }, + "dnsNameServers": { + "type": "string", + "description": "A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database.\n" + }, + "kmsKeyId": { + "type": "string", + "description": "An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key.\n", + "willReplaceOnChanges": true + }, + "maxCapacityUnits": { + "type": "integer", + "description": "Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384.\n" + }, + "minCapacityUnits": { + "type": "integer", + "description": "Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter.\n" + }, + "multiAz": { + "type": "boolean", + "description": "Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`.\n" + }, + "preferredMaintenanceWindow": { + "type": "string", + "description": "The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).\n\n- Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week.\n- Format: `ddd:hh24:mi-ddd:hh24:mi`\n- Valid Days: `mon, tue, wed, thu, fri, sat, sun`\n- Constraints: Minimum 30-minute window.\n" + }, + "replicationSubnetGroupId": { + "type": "string", + "description": "Specifies a subnet group identifier to associate with the DMS Serverless replication.\n", + "willReplaceOnChanges": true + }, + "vpcSecurityGroupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication.\n" + } + }, + "type": "object", + "required": [ + "replicationSubnetGroupId" + ], + "language": { + "nodejs": { + "requiredOutputs": [ + "availabilityZone", + "kmsKeyId", + "multiAz", + "preferredMaintenanceWindow", + "replicationSubnetGroupId", + "vpcSecurityGroupIds" + ] + } + } + }, "aws:dms/getEndpointElasticsearchSetting:getEndpointElasticsearchSetting": { "properties": { "endpointUri": { @@ -56315,6 +56393,154 @@ } } }, + "aws:fsx/OntapVolumeSnaplockConfiguration:OntapVolumeSnaplockConfiguration": { + "properties": { + "auditLogVolume": { + "type": "boolean", + "description": "Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`.\n" + }, + "autocommitPeriod": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfigurationAutocommitPeriod:OntapVolumeSnaplockConfigurationAutocommitPeriod", + "description": "The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below.\n" + }, + "privilegedDelete": { + "type": "string", + "description": "Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`.\n" + }, + "retentionPeriod": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriod:OntapVolumeSnaplockConfigurationRetentionPeriod", + "description": "The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below.\n" + }, + "snaplockType": { + "type": "string", + "description": "Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`.\n", + "willReplaceOnChanges": true + }, + "volumeAppendModeEnabled": { + "type": "boolean", + "description": "Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`.\n" + } + }, + "type": "object", + "required": [ + "snaplockType" + ], + "language": { + "nodejs": { + "requiredOutputs": [ + "autocommitPeriod", + "retentionPeriod", + "snaplockType" + ] + } + } + }, + "aws:fsx/OntapVolumeSnaplockConfigurationAutocommitPeriod:OntapVolumeSnaplockConfigurationAutocommitPeriod": { + "properties": { + "type": { + "type": "string", + "description": "The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`.\n" + }, + "value": { + "type": "integer", + "description": "The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "type" + ] + } + } + }, + "aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriod:OntapVolumeSnaplockConfigurationRetentionPeriod": { + "properties": { + "defaultRetention": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention:OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention", + "description": "The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below.\n" + }, + "maximumRetention": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention:OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention", + "description": "The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below.\n" + }, + "minimumRetention": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention:OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention", + "description": "The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "defaultRetention", + "maximumRetention", + "minimumRetention" + ] + } + } + }, + "aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention:OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention": { + "properties": { + "type": { + "type": "string", + "description": "The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`.\n" + }, + "value": { + "type": "integer", + "description": "The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "type" + ] + } + } + }, + "aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention:OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention": { + "properties": { + "type": { + "type": "string", + "description": "The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`.\n" + }, + "value": { + "type": "integer", + "description": "The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "type" + ] + } + } + }, + "aws:fsx/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention:OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention": { + "properties": { + "type": { + "type": "string", + "description": "The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`.\n" + }, + "value": { + "type": "integer", + "description": "The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "type" + ] + } + } + }, "aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy": { "properties": { "coolingPeriod": { @@ -77486,6 +77712,64 @@ "value" ] }, + "aws:lex/V2modelsBotDataPrivacy:V2modelsBotDataPrivacy": { + "properties": { + "childDirected": { + "type": "boolean", + "description": "(Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field.\n" + } + }, + "type": "object", + "required": [ + "childDirected" + ] + }, + "aws:lex/V2modelsBotMember:V2modelsBotMember": { + "properties": { + "aliasId": { + "type": "string", + "description": "(Required) - Alias ID of a bot that is a member of this network of bots.\n" + }, + "aliasName": { + "type": "string", + "description": "(Required) - Alias name of a bot that is a member of this network of bots.\n" + }, + "id": { + "type": "string", + "description": "(Required) - Unique ID of a bot that is a member of this network of bots.\n" + }, + "name": { + "type": "string", + "description": "Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.\n" + }, + "version": { + "type": "string", + "description": "(Required) - Version of a bot that is a member of this network of bots.\n" + } + }, + "type": "object", + "required": [ + "aliasId", + "aliasName", + "id", + "name", + "version" + ] + }, + "aws:lex/V2modelsBotTimeouts:V2modelsBotTimeouts": { + "properties": { + "create": { + "type": "string" + }, + "delete": { + "type": "string" + }, + "update": { + "type": "string" + } + }, + "type": "object" + }, "aws:lex/getSlotTypeEnumerationValue:getSlotTypeEnumerationValue": { "properties": { "synonyms": { @@ -88017,6 +88301,37 @@ } } }, + "aws:opensearch/OutboundConnectionConnectionProperties:OutboundConnectionConnectionProperties": { + "properties": { + "crossClusterSearch": { + "$ref": "#/types/aws:opensearch/OutboundConnectionConnectionPropertiesCrossClusterSearch:OutboundConnectionConnectionPropertiesCrossClusterSearch", + "description": "Configuration block for cross cluster search.\n", + "willReplaceOnChanges": true + }, + "endpoint": { + "type": "string", + "description": "The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "endpoint" + ] + } + } + }, + "aws:opensearch/OutboundConnectionConnectionPropertiesCrossClusterSearch:OutboundConnectionConnectionPropertiesCrossClusterSearch": { + "properties": { + "skipUnavailable": { + "type": "string", + "description": "Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`.\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + }, "aws:opensearch/OutboundConnectionLocalDomainInfo:OutboundConnectionLocalDomainInfo": { "properties": { "domainName": { @@ -108950,11 +109265,11 @@ "properties": { "stateMachineVersionArn": { "type": "string", - "description": "A version of the state machine.\n" + "description": "The Amazon Resource Name (ARN) of the state machine version.\n" }, "weight": { "type": "integer", - "description": "Percentage of traffic routed to the state machine version.\n\nThe following arguments are optional:\n" + "description": "Percentage of traffic routed to the state machine version.\n" } }, "type": "object", @@ -112275,7 +112590,7 @@ }, "port": { "type": "integer", - "description": "The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443.\n", + "description": "This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port.\n", "willReplaceOnChanges": true } }, @@ -114155,7 +114470,14 @@ "properties": { "aggregateKeyType": { "type": "string", - "description": "Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`.\n" + "description": "Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`.\n" + }, + "customKeys": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKey:RuleGroupRuleStatementRateBasedStatementCustomKey" + }, + "description": "Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details.\n" }, "forwardedIpConfig": { "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementForwardedIpConfig:RuleGroupRuleStatementRateBasedStatementForwardedIpConfig", @@ -114175,6 +114497,243 @@ "limit" ] }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKey:RuleGroupRuleStatementRateBasedStatementCustomKey": { + "properties": { + "cookie": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie:RuleGroupRuleStatementRateBasedStatementCustomKeyCookie", + "description": "(Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details.\n" + }, + "forwardedIp": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp:RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp", + "description": "(Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details.\n" + }, + "header": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader:RuleGroupRuleStatementRateBasedStatementCustomKeyHeader", + "description": "(Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details.\n" + }, + "httpMethod": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod:RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod", + "description": "(Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details.\n" + }, + "ip": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyIp:RuleGroupRuleStatementRateBasedStatementCustomKeyIp", + "description": "(Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details.\n" + }, + "labelNamespace": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace:RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace", + "description": "(Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details.\n" + }, + "queryArgument": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument", + "description": "(Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details.\n" + }, + "queryString": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString", + "description": "Inspect the query string. This is the part of a URL that appears after a `?` character, if any.\n" + }, + "uriPath": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath:RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath", + "description": "Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`.\n" + } + }, + "type": "object" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie:RuleGroupRuleStatementRateBasedStatementCustomKeyCookie": { + "properties": { + "name": { + "type": "string", + "description": "A friendly name of the rule group.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp:RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp": { + "type": "object" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader:RuleGroupRuleStatementRateBasedStatementCustomKeyHeader": { + "properties": { + "name": { + "type": "string", + "description": "A friendly name of the rule group.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod:RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod": { + "type": "object" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyIp:RuleGroupRuleStatementRateBasedStatementCustomKeyIp": { + "type": "object" + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace:RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace": { + "properties": { + "namespace": { + "type": "string", + "description": "The namespace to use for aggregation\n" + } + }, + "type": "object", + "required": [ + "namespace" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument": { + "properties": { + "name": { + "type": "string", + "description": "A friendly name of the rule group.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString": { + "properties": { + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\n" + } + }, + "type": "object", + "required": [ + "textTransformations" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath:RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath": { + "properties": { + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\nAt least one required.\nSee Text Transformation below for details.\n" + } + }, + "type": "object", + "required": [ + "textTransformations" + ] + }, + "aws:wafv2/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation:RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, "aws:wafv2/RuleGroupRuleStatementRateBasedStatementForwardedIpConfig:RuleGroupRuleStatementRateBasedStatementForwardedIpConfig": { "properties": { "fallbackBehavior": { @@ -118713,7 +119272,7 @@ }, "name": { "type": "string", - "description": "The name of the header to match against. The name must be an exact match, including case.\n" + "description": "The name of the header to use.\n" }, "successValues": { "type": "array", @@ -120939,7 +121498,14 @@ "properties": { "aggregateKeyType": { "type": "string", - "description": "Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`.\n" + "description": "Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`.\n" + }, + "customKeys": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKey:WebAclRuleStatementRateBasedStatementCustomKey" + }, + "description": "Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details.\n" }, "forwardedIpConfig": { "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementForwardedIpConfig:WebAclRuleStatementRateBasedStatementForwardedIpConfig", @@ -120959,6 +121525,243 @@ "limit" ] }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKey:WebAclRuleStatementRateBasedStatementCustomKey": { + "properties": { + "cookie": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyCookie:WebAclRuleStatementRateBasedStatementCustomKeyCookie", + "description": "Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details.\n" + }, + "forwardedIp": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp:WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp", + "description": "Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details.\n" + }, + "header": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHeader:WebAclRuleStatementRateBasedStatementCustomKeyHeader", + "description": "Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details.\n" + }, + "httpMethod": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod:WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod", + "description": "Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details.\n" + }, + "ip": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyIp:WebAclRuleStatementRateBasedStatementCustomKeyIp", + "description": "Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details.\n" + }, + "labelNamespace": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace:WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace", + "description": "Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details.\n" + }, + "queryArgument": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument:WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument", + "description": "Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details.\n" + }, + "queryString": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryString:WebAclRuleStatementRateBasedStatementCustomKeyQueryString", + "description": "Use the request's query string as an aggregate key. See RateLimit `query_string` below for details.\n" + }, + "uriPath": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyUriPath:WebAclRuleStatementRateBasedStatementCustomKeyUriPath", + "description": "Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details.\n" + } + }, + "type": "object" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyCookie:WebAclRuleStatementRateBasedStatementCustomKeyCookie": { + "properties": { + "name": { + "type": "string", + "description": "The name of the cookie to use.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp:WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp": { + "type": "object" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHeader:WebAclRuleStatementRateBasedStatementCustomKeyHeader": { + "properties": { + "name": { + "type": "string", + "description": "The name of the header to use.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod:WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod": { + "type": "object" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyIp:WebAclRuleStatementRateBasedStatementCustomKeyIp": { + "type": "object" + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace:WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace": { + "properties": { + "namespace": { + "type": "string", + "description": "The namespace to use for aggregation\n" + } + }, + "type": "object", + "required": [ + "namespace" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument:WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument": { + "properties": { + "name": { + "type": "string", + "description": "The name of the query argument to use.\n" + }, + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.\n" + } + }, + "type": "object", + "required": [ + "name", + "textTransformations" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryString:WebAclRuleStatementRateBasedStatementCustomKeyQueryString": { + "properties": { + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.\n" + } + }, + "type": "object", + "required": [ + "textTransformations" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyUriPath:WebAclRuleStatementRateBasedStatementCustomKeyUriPath": { + "properties": { + "textTransformations": { + "type": "array", + "items": { + "$ref": "#/types/aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation" + }, + "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.\n" + } + }, + "type": "object", + "required": [ + "textTransformations" + ] + }, + "aws:wafv2/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation:WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation": { + "properties": { + "priority": { + "type": "integer", + "description": "Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content.\n" + }, + "type": { + "type": "string", + "description": "Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details.\n" + } + }, + "type": "object", + "required": [ + "priority", + "type" + ] + }, "aws:wafv2/WebAclRuleStatementRateBasedStatementForwardedIpConfig:WebAclRuleStatementRateBasedStatementForwardedIpConfig": { "properties": { "fallbackBehavior": { @@ -144976,7 +145779,7 @@ "items": { "type": "string" }, - "description": "Specifies the set of compute environments\nmapped to a job queue and their order. The position of the compute environments\nin the list will dictate the order.\n" + "description": "List of compute environment ARNs mapped to a job queue.\nThe position of the compute environments in the list will dictate the order.\n" }, "name": { "type": "string", @@ -145028,7 +145831,7 @@ "items": { "type": "string" }, - "description": "Specifies the set of compute environments\nmapped to a job queue and their order. The position of the compute environments\nin the list will dictate the order.\n" + "description": "List of compute environment ARNs mapped to a job queue.\nThe position of the compute environments in the list will dictate the order.\n" }, "name": { "type": "string", @@ -145074,7 +145877,7 @@ "items": { "type": "string" }, - "description": "Specifies the set of compute environments\nmapped to a job queue and their order. The position of the compute environments\nin the list will dictate the order.\n" + "description": "List of compute environment ARNs mapped to a job queue.\nThe position of the compute environments in the list will dictate the order.\n" }, "name": { "type": "string", @@ -148375,6 +149178,168 @@ "type": "object" } }, + "aws:cleanrooms/configuredTable:ConfiguredTable": { + "description": "Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Configured table with tags\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst testConfiguredTable = new aws.cleanrooms.ConfiguredTable(\"testConfiguredTable\", {\n allowedColumns: [\n \"column1\",\n \"column2\",\n \"column3\",\n ],\n analysisMethod: \"DIRECT_QUERY\",\n description: \"I made this table with TODO!\",\n tableReference: {\n databaseName: \"example_database\",\n tableName: \"example_table\",\n },\n tags: {\n Project: \"TODO\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ntest_configured_table = aws.cleanrooms.ConfiguredTable(\"testConfiguredTable\",\n allowed_columns=[\n \"column1\",\n \"column2\",\n \"column3\",\n ],\n analysis_method=\"DIRECT_QUERY\",\n description=\"I made this table with TODO!\",\n table_reference=aws.cleanrooms.ConfiguredTableTableReferenceArgs(\n database_name=\"example_database\",\n table_name=\"example_table\",\n ),\n tags={\n \"Project\": \"TODO\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testConfiguredTable = new Aws.CleanRooms.ConfiguredTable(\"testConfiguredTable\", new()\n {\n AllowedColumns = new[]\n {\n \"column1\",\n \"column2\",\n \"column3\",\n },\n AnalysisMethod = \"DIRECT_QUERY\",\n Description = \"I made this table with TODO!\",\n TableReference = new Aws.CleanRooms.Inputs.ConfiguredTableTableReferenceArgs\n {\n DatabaseName = \"example_database\",\n TableName = \"example_table\",\n },\n Tags = \n {\n { \"Project\", \"TODO\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cleanrooms.NewConfiguredTable(ctx, \"testConfiguredTable\", \u0026cleanrooms.ConfiguredTableArgs{\n\t\t\tAllowedColumns: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"column1\"),\n\t\t\t\tpulumi.String(\"column2\"),\n\t\t\t\tpulumi.String(\"column3\"),\n\t\t\t},\n\t\t\tAnalysisMethod: pulumi.String(\"DIRECT_QUERY\"),\n\t\t\tDescription: pulumi.String(\"I made this table with TODO!\"),\n\t\t\tTableReference: \u0026cleanrooms.ConfiguredTableTableReferenceArgs{\n\t\t\t\tDatabaseName: pulumi.String(\"example_database\"),\n\t\t\t\tTableName: pulumi.String(\"example_table\"),\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Project\": pulumi.String(\"TODO\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cleanrooms.ConfiguredTable;\nimport com.pulumi.aws.cleanrooms.ConfiguredTableArgs;\nimport com.pulumi.aws.cleanrooms.inputs.ConfiguredTableTableReferenceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var testConfiguredTable = new ConfiguredTable(\"testConfiguredTable\", ConfiguredTableArgs.builder() \n .allowedColumns( \n \"column1\",\n \"column2\",\n \"column3\")\n .analysisMethod(\"DIRECT_QUERY\")\n .description(\"I made this table with TODO!\")\n .tableReference(ConfiguredTableTableReferenceArgs.builder()\n .databaseName(\"example_database\")\n .tableName(\"example_table\")\n .build())\n .tags(Map.of(\"Project\", \"TODO\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testConfiguredTable:\n type: aws:cleanrooms:ConfiguredTable\n properties:\n allowedColumns:\n - column1\n - column2\n - column3\n analysisMethod: DIRECT_QUERY\n description: I made this table with TODO!\n tableReference:\n databaseName: example_database\n tableName: example_table\n tags:\n Project: TODO\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIn TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import {\n\n to = aws_cleanrooms_configured_table.table\n\n id = \"1234abcd-12ab-34cd-56ef-1234567890ab\" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab ", + "properties": { + "allowedColumns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The columns of the references table which will be included in the configured table.\n" + }, + "analysisMethod": { + "type": "string", + "description": "The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`.\n" + }, + "arn": { + "type": "string", + "description": "The ARN of the configured table.\n" + }, + "createTime": { + "type": "string", + "description": "The date and time the configured table was created.\n" + }, + "description": { + "type": "string", + "description": "A description for the configured table.\n" + }, + "name": { + "type": "string", + "description": "The name of the configured table.\n" + }, + "tableReference": { + "$ref": "#/types/aws:cleanrooms/ConfiguredTableTableReference:ConfiguredTableTableReference", + "description": "A reference to the AWS Glue table which will be used to create the configured table.\n* `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table.\n* `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key value pairs which tag the configured table.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "updateTime": { + "type": "string", + "description": "The date and time the configured table was last updated.\n" + } + }, + "required": [ + "allowedColumns", + "analysisMethod", + "arn", + "createTime", + "name", + "tableReference", + "tagsAll", + "updateTime" + ], + "inputProperties": { + "allowedColumns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The columns of the references table which will be included in the configured table.\n", + "willReplaceOnChanges": true + }, + "analysisMethod": { + "type": "string", + "description": "The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`.\n" + }, + "description": { + "type": "string", + "description": "A description for the configured table.\n" + }, + "name": { + "type": "string", + "description": "The name of the configured table.\n" + }, + "tableReference": { + "$ref": "#/types/aws:cleanrooms/ConfiguredTableTableReference:ConfiguredTableTableReference", + "description": "A reference to the AWS Glue table which will be used to create the configured table.\n* `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table.\n* `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key value pairs which tag the configured table.\n" + } + }, + "requiredInputs": [ + "allowedColumns", + "analysisMethod", + "tableReference" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ConfiguredTable resources.\n", + "properties": { + "allowedColumns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The columns of the references table which will be included in the configured table.\n", + "willReplaceOnChanges": true + }, + "analysisMethod": { + "type": "string", + "description": "The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`.\n" + }, + "arn": { + "type": "string", + "description": "The ARN of the configured table.\n" + }, + "createTime": { + "type": "string", + "description": "The date and time the configured table was created.\n" + }, + "description": { + "type": "string", + "description": "A description for the configured table.\n" + }, + "name": { + "type": "string", + "description": "The name of the configured table.\n" + }, + "tableReference": { + "$ref": "#/types/aws:cleanrooms/ConfiguredTableTableReference:ConfiguredTableTableReference", + "description": "A reference to the AWS Glue table which will be used to create the configured table.\n* `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table.\n* `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key value pairs which tag the configured table.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "updateTime": { + "type": "string", + "description": "The date and time the configured table was last updated.\n" + } + }, + "type": "object" + } + }, "aws:cloud9/environmentEC2:EnvironmentEC2": { "description": "Provides a Cloud9 EC2 Development Environment.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\nBasic usage:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.cloud9.EnvironmentEC2(\"example\", {instanceType: \"t2.micro\"});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloud9.EnvironmentEC2(\"example\", instance_type=\"t2.micro\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Cloud9.EnvironmentEC2(\"example\", new()\n {\n InstanceType = \"t2.micro\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloud9\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloud9.NewEnvironmentEC2(ctx, \"example\", \u0026cloud9.EnvironmentEC2Args{\n\t\t\tInstanceType: pulumi.String(\"t2.micro\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloud9.EnvironmentEC2;\nimport com.pulumi.aws.cloud9.EnvironmentEC2Args;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new EnvironmentEC2(\"example\", EnvironmentEC2Args.builder() \n .instanceType(\"t2.micro\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloud9:EnvironmentEC2\n properties:\n instanceType: t2.micro\n```\n\nGet the URL of the Cloud9 environment after creation:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.cloud9.EnvironmentEC2(\"example\", {instanceType: \"t2.micro\"});\nconst cloud9Instance = aws.ec2.getInstanceOutput({\n filters: [{\n name: \"tag:aws:cloud9:environment\",\n values: [example.id],\n }],\n});\nexport const cloud9Url = pulumi.interpolate`https://${_var.region}.console.aws.amazon.com/cloud9/ide/${example.id}`;\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloud9.EnvironmentEC2(\"example\", instance_type=\"t2.micro\")\ncloud9_instance = aws.ec2.get_instance_output(filters=[aws.ec2.GetInstanceFilterArgs(\n name=\"tag:aws:cloud9:environment\",\n values=[example.id],\n)])\npulumi.export(\"cloud9Url\", example.id.apply(lambda id: f\"https://{var['region']}.console.aws.amazon.com/cloud9/ide/{id}\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Cloud9.EnvironmentEC2(\"example\", new()\n {\n InstanceType = \"t2.micro\",\n });\n\n var cloud9Instance = Aws.Ec2.GetInstance.Invoke(new()\n {\n Filters = new[]\n {\n new Aws.Ec2.Inputs.GetInstanceFilterInputArgs\n {\n Name = \"tag:aws:cloud9:environment\",\n Values = new[]\n {\n example.Id,\n },\n },\n },\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"cloud9Url\"] = example.Id.Apply(id =\u003e $\"https://{@var.Region}.console.aws.amazon.com/cloud9/ide/{id}\"),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloud9\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := cloud9.NewEnvironmentEC2(ctx, \"example\", \u0026cloud9.EnvironmentEC2Args{\n\t\t\tInstanceType: pulumi.String(\"t2.micro\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_ = ec2.LookupInstanceOutput(ctx, ec2.GetInstanceOutputArgs{\n\t\t\tFilters: ec2.GetInstanceFilterArray{\n\t\t\t\t\u0026ec2.GetInstanceFilterArgs{\n\t\t\t\t\tName: pulumi.String(\"tag:aws:cloud9:environment\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\texample.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tctx.Export(\"cloud9Url\", example.ID().ApplyT(func(id string) (string, error) {\n\t\t\treturn fmt.Sprintf(\"https://%v.console.aws.amazon.com/cloud9/ide/%v\", _var.Region, id), nil\n\t\t}).(pulumi.StringOutput))\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloud9.EnvironmentEC2;\nimport com.pulumi.aws.cloud9.EnvironmentEC2Args;\nimport com.pulumi.aws.ec2.Ec2Functions;\nimport com.pulumi.aws.ec2.inputs.GetInstanceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new EnvironmentEC2(\"example\", EnvironmentEC2Args.builder() \n .instanceType(\"t2.micro\")\n .build());\n\n final var cloud9Instance = Ec2Functions.getInstance(GetInstanceArgs.builder()\n .filters(GetInstanceFilterArgs.builder()\n .name(\"tag:aws:cloud9:environment\")\n .values(example.id())\n .build())\n .build());\n\n ctx.export(\"cloud9Url\", example.id().applyValue(id -\u003e String.format(\"https://%s.console.aws.amazon.com/cloud9/ide/%s\", var_.region(),id)));\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloud9:EnvironmentEC2\n properties:\n instanceType: t2.micro\nvariables:\n cloud9Instance:\n fn::invoke:\n Function: aws:ec2:getInstance\n Arguments:\n filters:\n - name: tag:aws:cloud9:environment\n values:\n - ${example.id}\noutputs:\n cloud9Url: https://${var.region}.console.aws.amazon.com/cloud9/ide/${example.id}\n```\n\nAllocate a static IP to the Cloud9 environment:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.cloud9.EnvironmentEC2(\"example\", {instanceType: \"t2.micro\"});\nconst cloud9Instance = aws.ec2.getInstanceOutput({\n filters: [{\n name: \"tag:aws:cloud9:environment\",\n values: [example.id],\n }],\n});\nconst cloud9Eip = new aws.ec2.Eip(\"cloud9Eip\", {\n instance: cloud9Instance.apply(cloud9Instance =\u003e cloud9Instance.id),\n domain: \"vpc\",\n});\nexport const cloud9PublicIp = cloud9Eip.publicIp;\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.cloud9.EnvironmentEC2(\"example\", instance_type=\"t2.micro\")\ncloud9_instance = aws.ec2.get_instance_output(filters=[aws.ec2.GetInstanceFilterArgs(\n name=\"tag:aws:cloud9:environment\",\n values=[example.id],\n)])\ncloud9_eip = aws.ec2.Eip(\"cloud9Eip\",\n instance=cloud9_instance.id,\n domain=\"vpc\")\npulumi.export(\"cloud9PublicIp\", cloud9_eip.public_ip)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Cloud9.EnvironmentEC2(\"example\", new()\n {\n InstanceType = \"t2.micro\",\n });\n\n var cloud9Instance = Aws.Ec2.GetInstance.Invoke(new()\n {\n Filters = new[]\n {\n new Aws.Ec2.Inputs.GetInstanceFilterInputArgs\n {\n Name = \"tag:aws:cloud9:environment\",\n Values = new[]\n {\n example.Id,\n },\n },\n },\n });\n\n var cloud9Eip = new Aws.Ec2.Eip(\"cloud9Eip\", new()\n {\n Instance = cloud9Instance.Apply(getInstanceResult =\u003e getInstanceResult.Id),\n Domain = \"vpc\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"cloud9PublicIp\"] = cloud9Eip.PublicIp,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloud9\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := cloud9.NewEnvironmentEC2(ctx, \"example\", \u0026cloud9.EnvironmentEC2Args{\n\t\t\tInstanceType: pulumi.String(\"t2.micro\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcloud9Instance := ec2.LookupInstanceOutput(ctx, ec2.GetInstanceOutputArgs{\n\t\t\tFilters: ec2.GetInstanceFilterArray{\n\t\t\t\t\u0026ec2.GetInstanceFilterArgs{\n\t\t\t\t\tName: pulumi.String(\"tag:aws:cloud9:environment\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\texample.ID(),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tcloud9Eip, err := ec2.NewEip(ctx, \"cloud9Eip\", \u0026ec2.EipArgs{\n\t\t\tInstance: cloud9Instance.ApplyT(func(cloud9Instance ec2.GetInstanceResult) (*string, error) {\n\t\t\t\treturn \u0026cloud9Instance.Id, nil\n\t\t\t}).(pulumi.StringPtrOutput),\n\t\t\tDomain: pulumi.String(\"vpc\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"cloud9PublicIp\", cloud9Eip.PublicIp)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.cloud9.EnvironmentEC2;\nimport com.pulumi.aws.cloud9.EnvironmentEC2Args;\nimport com.pulumi.aws.ec2.Ec2Functions;\nimport com.pulumi.aws.ec2.inputs.GetInstanceArgs;\nimport com.pulumi.aws.ec2.Eip;\nimport com.pulumi.aws.ec2.EipArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new EnvironmentEC2(\"example\", EnvironmentEC2Args.builder() \n .instanceType(\"t2.micro\")\n .build());\n\n final var cloud9Instance = Ec2Functions.getInstance(GetInstanceArgs.builder()\n .filters(GetInstanceFilterArgs.builder()\n .name(\"tag:aws:cloud9:environment\")\n .values(example.id())\n .build())\n .build());\n\n var cloud9Eip = new Eip(\"cloud9Eip\", EipArgs.builder() \n .instance(cloud9Instance.applyValue(getInstanceResult -\u003e getInstanceResult).applyValue(cloud9Instance -\u003e cloud9Instance.applyValue(getInstanceResult -\u003e getInstanceResult.id())))\n .domain(\"vpc\")\n .build());\n\n ctx.export(\"cloud9PublicIp\", cloud9Eip.publicIp());\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:cloud9:EnvironmentEC2\n properties:\n instanceType: t2.micro\n cloud9Eip:\n type: aws:ec2:Eip\n properties:\n instance: ${cloud9Instance.id}\n domain: vpc\nvariables:\n cloud9Instance:\n fn::invoke:\n Function: aws:ec2:getInstance\n Arguments:\n filters:\n - name: tag:aws:cloud9:environment\n values:\n - ${example.id}\noutputs:\n cloud9PublicIp: ${cloud9Eip.publicIp}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { @@ -148396,7 +149361,7 @@ }, "imageId": { "type": "string", - "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n" + "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `ubuntu-22.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64`\n" }, "instanceType": { "type": "string", @@ -148460,7 +149425,7 @@ }, "imageId": { "type": "string", - "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n", + "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `ubuntu-22.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64`\n", "willReplaceOnChanges": true }, "instanceType": { @@ -148516,7 +149481,7 @@ }, "imageId": { "type": "string", - "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n", + "description": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. Valid values are\n* `amazonlinux-1-x86_64`\n* `amazonlinux-2-x86_64`\n* `ubuntu-18.04-x86_64`\n* `ubuntu-22.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`\n* `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64`\n", "willReplaceOnChanges": true }, "instanceType": { @@ -149942,6 +150907,7 @@ "required": [ "arn", "callerReference", + "continuousDeploymentPolicyId", "defaultCacheBehavior", "domainName", "enabled", @@ -162045,7 +163011,7 @@ }, "resourceType": { "type": "string", - "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`.\n" + "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`.\n" }, "storageConfig": { "$ref": "#/types/aws:connect/InstanceStorageConfigStorageConfig:InstanceStorageConfigStorageConfig", @@ -162066,7 +163032,7 @@ }, "resourceType": { "type": "string", - "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`.\n", + "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`.\n", "willReplaceOnChanges": true }, "storageConfig": { @@ -162093,7 +163059,7 @@ }, "resourceType": { "type": "string", - "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`.\n", + "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`.\n", "willReplaceOnChanges": true }, "storageConfig": { @@ -173064,6 +174030,210 @@ "type": "object" } }, + "aws:dms/replicationConfig:ReplicationConfig": { + "description": "Provides a DMS Serverless replication config resource.\n\n\u003e **NOTE:** Changing most arguments will stop the replication if it is running. You can set `start_replication` to resume the replication afterwards.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst name = new aws.dms.ReplicationConfig(\"name\", {\n replicationConfigIdentifier: \"test-dms-serverless-replication-tf\",\n resourceIdentifier: \"test-dms-serverless-replication-tf\",\n replicationType: \"cdc\",\n sourceEndpointArn: aws_dms_endpoint.source.endpoint_arn,\n targetEndpointArn: aws_dms_endpoint.target.endpoint_arn,\n tableMappings: ` {\n \"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%%\",\"table-name\":\"%%\", \"rule-action\":\"include\"}]\n }\n`,\n startReplication: true,\n computeConfig: {\n replicationSubnetGroupId: aws_dms_replication_subnet_group[\"default\"].replication_subnet_group_id,\n maxCapacityUnits: 64,\n minCapacityUnits: 2,\n preferredMaintenanceWindow: \"sun:23:45-mon:00:30\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nname = aws.dms.ReplicationConfig(\"name\",\n replication_config_identifier=\"test-dms-serverless-replication-tf\",\n resource_identifier=\"test-dms-serverless-replication-tf\",\n replication_type=\"cdc\",\n source_endpoint_arn=aws_dms_endpoint[\"source\"][\"endpoint_arn\"],\n target_endpoint_arn=aws_dms_endpoint[\"target\"][\"endpoint_arn\"],\n table_mappings=\"\"\" {\n \"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%%\",\"table-name\":\"%%\", \"rule-action\":\"include\"}]\n }\n\"\"\",\n start_replication=True,\n compute_config=aws.dms.ReplicationConfigComputeConfigArgs(\n replication_subnet_group_id=aws_dms_replication_subnet_group[\"default\"][\"replication_subnet_group_id\"],\n max_capacity_units=64,\n min_capacity_units=2,\n preferred_maintenance_window=\"sun:23:45-mon:00:30\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var name = new Aws.Dms.ReplicationConfig(\"name\", new()\n {\n ReplicationConfigIdentifier = \"test-dms-serverless-replication-tf\",\n ResourceIdentifier = \"test-dms-serverless-replication-tf\",\n ReplicationType = \"cdc\",\n SourceEndpointArn = aws_dms_endpoint.Source.Endpoint_arn,\n TargetEndpointArn = aws_dms_endpoint.Target.Endpoint_arn,\n TableMappings = @\" {\n \"\"rules\"\":[{\"\"rule-type\"\":\"\"selection\"\",\"\"rule-id\"\":\"\"1\"\",\"\"rule-name\"\":\"\"1\"\",\"\"object-locator\"\":{\"\"schema-name\"\":\"\"%%\"\",\"\"table-name\"\":\"\"%%\"\", \"\"rule-action\"\":\"\"include\"\"}]\n }\n\",\n StartReplication = true,\n ComputeConfig = new Aws.Dms.Inputs.ReplicationConfigComputeConfigArgs\n {\n ReplicationSubnetGroupId = aws_dms_replication_subnet_group.Default.Replication_subnet_group_id,\n MaxCapacityUnits = 64,\n MinCapacityUnits = 2,\n PreferredMaintenanceWindow = \"sun:23:45-mon:00:30\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dms\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := dms.NewReplicationConfig(ctx, \"name\", \u0026dms.ReplicationConfigArgs{\n\t\t\tReplicationConfigIdentifier: pulumi.String(\"test-dms-serverless-replication-tf\"),\n\t\t\tResourceIdentifier: pulumi.String(\"test-dms-serverless-replication-tf\"),\n\t\t\tReplicationType: pulumi.String(\"cdc\"),\n\t\t\tSourceEndpointArn: pulumi.Any(aws_dms_endpoint.Source.Endpoint_arn),\n\t\t\tTargetEndpointArn: pulumi.Any(aws_dms_endpoint.Target.Endpoint_arn),\n\t\t\tTableMappings: pulumi.String(\" {\\n \\\"rules\\\":[{\\\"rule-type\\\":\\\"selection\\\",\\\"rule-id\\\":\\\"1\\\",\\\"rule-name\\\":\\\"1\\\",\\\"object-locator\\\":{\\\"schema-name\\\":\\\"%%\\\",\\\"table-name\\\":\\\"%%\\\", \\\"rule-action\\\":\\\"include\\\"}]\\n }\\n\"),\n\t\t\tStartReplication: pulumi.Bool(true),\n\t\t\tComputeConfig: \u0026dms.ReplicationConfigComputeConfigArgs{\n\t\t\t\tReplicationSubnetGroupId: pulumi.Any(aws_dms_replication_subnet_group.Default.Replication_subnet_group_id),\n\t\t\t\tMaxCapacityUnits: pulumi.Int(64),\n\t\t\t\tMinCapacityUnits: pulumi.Int(2),\n\t\t\t\tPreferredMaintenanceWindow: pulumi.String(\"sun:23:45-mon:00:30\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.dms.ReplicationConfig;\nimport com.pulumi.aws.dms.ReplicationConfigArgs;\nimport com.pulumi.aws.dms.inputs.ReplicationConfigComputeConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var name = new ReplicationConfig(\"name\", ReplicationConfigArgs.builder() \n .replicationConfigIdentifier(\"test-dms-serverless-replication-tf\")\n .resourceIdentifier(\"test-dms-serverless-replication-tf\")\n .replicationType(\"cdc\")\n .sourceEndpointArn(aws_dms_endpoint.source().endpoint_arn())\n .targetEndpointArn(aws_dms_endpoint.target().endpoint_arn())\n .tableMappings(\"\"\"\n {\n \"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%%\",\"table-name\":\"%%\", \"rule-action\":\"include\"}]\n }\n \"\"\")\n .startReplication(true)\n .computeConfig(ReplicationConfigComputeConfigArgs.builder()\n .replicationSubnetGroupId(aws_dms_replication_subnet_group.default().replication_subnet_group_id())\n .maxCapacityUnits(\"64\")\n .minCapacityUnits(\"2\")\n .preferredMaintenanceWindow(\"sun:23:45-mon:00:30\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n name:\n type: aws:dms:ReplicationConfig\n properties:\n replicationConfigIdentifier: test-dms-serverless-replication-tf\n resourceIdentifier: test-dms-serverless-replication-tf\n replicationType: cdc\n sourceEndpointArn: ${aws_dms_endpoint.source.endpoint_arn}\n targetEndpointArn: ${aws_dms_endpoint.target.endpoint_arn}\n tableMappings: |2\n {\n \"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%%\",\"table-name\":\"%%\", \"rule-action\":\"include\"}]\n }\n startReplication: true\n computeConfig:\n replicationSubnetGroupId: ${aws_dms_replication_subnet_group.default.replication_subnet_group_id}\n maxCapacityUnits: '64'\n minCapacityUnits: '2'\n preferredMaintenanceWindow: sun:23:45-mon:00:30\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIn TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import {\n\n to = aws_dms_replication_config.example\n\n id = \"arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI\" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI ", + "properties": { + "arn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) for the serverless replication config.\n" + }, + "computeConfig": { + "$ref": "#/types/aws:dms/ReplicationConfigComputeConfig:ReplicationConfigComputeConfig", + "description": "Configuration block for provisioning an DMS Serverless replication.\n" + }, + "replicationConfigIdentifier": { + "type": "string", + "description": "Unique identifier that you want to use to create the config.\n" + }, + "replicationSettings": { + "type": "string", + "description": "An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html)\n" + }, + "replicationType": { + "type": "string", + "description": "The migration type. Can be one of `full-load | cdc | full-load-and-cdc`.\n" + }, + "resourceIdentifier": { + "type": "string", + "description": "Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess)\n" + }, + "sourceEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.\n" + }, + "startReplication": { + "type": "boolean", + "description": "Whether to run or stop the serverless replication, default is false.\n" + }, + "supplementalSettings": { + "type": "string", + "description": "JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)\n" + }, + "tableMappings": { + "type": "string", + "description": "An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.\n", + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "targetEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.\n" + } + }, + "required": [ + "arn", + "computeConfig", + "replicationConfigIdentifier", + "replicationSettings", + "replicationType", + "resourceIdentifier", + "sourceEndpointArn", + "tableMappings", + "tagsAll", + "targetEndpointArn" + ], + "inputProperties": { + "computeConfig": { + "$ref": "#/types/aws:dms/ReplicationConfigComputeConfig:ReplicationConfigComputeConfig", + "description": "Configuration block for provisioning an DMS Serverless replication.\n" + }, + "replicationConfigIdentifier": { + "type": "string", + "description": "Unique identifier that you want to use to create the config.\n", + "willReplaceOnChanges": true + }, + "replicationSettings": { + "type": "string", + "description": "An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html)\n" + }, + "replicationType": { + "type": "string", + "description": "The migration type. Can be one of `full-load | cdc | full-load-and-cdc`.\n" + }, + "resourceIdentifier": { + "type": "string", + "description": "Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess)\n", + "willReplaceOnChanges": true + }, + "sourceEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.\n" + }, + "startReplication": { + "type": "boolean", + "description": "Whether to run or stop the serverless replication, default is false.\n" + }, + "supplementalSettings": { + "type": "string", + "description": "JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)\n" + }, + "tableMappings": { + "type": "string", + "description": "An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + }, + "targetEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.\n" + } + }, + "requiredInputs": [ + "computeConfig", + "replicationConfigIdentifier", + "replicationType", + "sourceEndpointArn", + "tableMappings", + "targetEndpointArn" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ReplicationConfig resources.\n", + "properties": { + "arn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) for the serverless replication config.\n" + }, + "computeConfig": { + "$ref": "#/types/aws:dms/ReplicationConfigComputeConfig:ReplicationConfigComputeConfig", + "description": "Configuration block for provisioning an DMS Serverless replication.\n" + }, + "replicationConfigIdentifier": { + "type": "string", + "description": "Unique identifier that you want to use to create the config.\n", + "willReplaceOnChanges": true + }, + "replicationSettings": { + "type": "string", + "description": "An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html)\n" + }, + "replicationType": { + "type": "string", + "description": "The migration type. Can be one of `full-load | cdc | full-load-and-cdc`.\n" + }, + "resourceIdentifier": { + "type": "string", + "description": "Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess)\n", + "willReplaceOnChanges": true + }, + "sourceEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint.\n" + }, + "startReplication": { + "type": "boolean", + "description": "Whether to run or stop the serverless replication, default is false.\n" + }, + "supplementalSettings": { + "type": "string", + "description": "JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html)\n" + }, + "tableMappings": { + "type": "string", + "description": "An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html)\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.\n", + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "targetEndpointArn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint.\n" + } + }, + "type": "object" + } + }, "aws:dms/replicationInstance:ReplicationInstance": { "description": "Provides a DMS (Data Migration Service) replication instance resource. DMS replication instances can be created, updated, deleted, and imported.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\nCreate required roles and then create a DMS instance, setting the depends_on to the required role policy attachments.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst dmsAssumeRole = aws.iam.getPolicyDocument({\n statements: [{\n actions: [\"sts:AssumeRole\"],\n principals: [{\n identifiers: [\"dms.amazonaws.com\"],\n type: \"Service\",\n }],\n }],\n});\nconst dms_access_for_endpoint = new aws.iam.Role(\"dms-access-for-endpoint\", {assumeRolePolicy: dmsAssumeRole.then(dmsAssumeRole =\u003e dmsAssumeRole.json)});\nconst dms_access_for_endpoint_AmazonDMSRedshiftS3Role = new aws.iam.RolePolicyAttachment(\"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\", {\n policyArn: \"arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\",\n role: dms_access_for_endpoint.name,\n});\nconst dms_cloudwatch_logs_role = new aws.iam.Role(\"dms-cloudwatch-logs-role\", {assumeRolePolicy: dmsAssumeRole.then(dmsAssumeRole =\u003e dmsAssumeRole.json)});\nconst dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole = new aws.iam.RolePolicyAttachment(\"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\", {\n policyArn: \"arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\",\n role: dms_cloudwatch_logs_role.name,\n});\nconst dms_vpc_role = new aws.iam.Role(\"dms-vpc-role\", {assumeRolePolicy: dmsAssumeRole.then(dmsAssumeRole =\u003e dmsAssumeRole.json)});\nconst dms_vpc_role_AmazonDMSVPCManagementRole = new aws.iam.RolePolicyAttachment(\"dms-vpc-role-AmazonDMSVPCManagementRole\", {\n policyArn: \"arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\",\n role: dms_vpc_role.name,\n});\n// Create a new replication instance\nconst test = new aws.dms.ReplicationInstance(\"test\", {\n allocatedStorage: 20,\n applyImmediately: true,\n autoMinorVersionUpgrade: true,\n availabilityZone: \"us-west-2c\",\n engineVersion: \"3.1.4\",\n kmsKeyArn: \"arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\",\n multiAz: false,\n preferredMaintenanceWindow: \"sun:10:30-sun:14:30\",\n publiclyAccessible: true,\n replicationInstanceClass: \"dms.t2.micro\",\n replicationInstanceId: \"test-dms-replication-instance-tf\",\n replicationSubnetGroupId: aws_dms_replication_subnet_group[\"test-dms-replication-subnet-group-tf\"].id,\n tags: {\n Name: \"test\",\n },\n vpcSecurityGroupIds: [\"sg-12345678\"],\n}, {\n dependsOn: [\n dms_access_for_endpoint_AmazonDMSRedshiftS3Role,\n dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole,\n dms_vpc_role_AmazonDMSVPCManagementRole,\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ndms_assume_role = aws.iam.get_policy_document(statements=[aws.iam.GetPolicyDocumentStatementArgs(\n actions=[\"sts:AssumeRole\"],\n principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(\n identifiers=[\"dms.amazonaws.com\"],\n type=\"Service\",\n )],\n)])\ndms_access_for_endpoint = aws.iam.Role(\"dms-access-for-endpoint\", assume_role_policy=dms_assume_role.json)\ndms_access_for_endpoint__amazon_dms_redshift_s3_role = aws.iam.RolePolicyAttachment(\"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\",\n policy_arn=\"arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\",\n role=dms_access_for_endpoint.name)\ndms_cloudwatch_logs_role = aws.iam.Role(\"dms-cloudwatch-logs-role\", assume_role_policy=dms_assume_role.json)\ndms_cloudwatch_logs_role__amazon_dms_cloud_watch_logs_role = aws.iam.RolePolicyAttachment(\"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\",\n policy_arn=\"arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\",\n role=dms_cloudwatch_logs_role.name)\ndms_vpc_role = aws.iam.Role(\"dms-vpc-role\", assume_role_policy=dms_assume_role.json)\ndms_vpc_role__amazon_dmsvpc_management_role = aws.iam.RolePolicyAttachment(\"dms-vpc-role-AmazonDMSVPCManagementRole\",\n policy_arn=\"arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\",\n role=dms_vpc_role.name)\n# Create a new replication instance\ntest = aws.dms.ReplicationInstance(\"test\",\n allocated_storage=20,\n apply_immediately=True,\n auto_minor_version_upgrade=True,\n availability_zone=\"us-west-2c\",\n engine_version=\"3.1.4\",\n kms_key_arn=\"arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\",\n multi_az=False,\n preferred_maintenance_window=\"sun:10:30-sun:14:30\",\n publicly_accessible=True,\n replication_instance_class=\"dms.t2.micro\",\n replication_instance_id=\"test-dms-replication-instance-tf\",\n replication_subnet_group_id=aws_dms_replication_subnet_group[\"test-dms-replication-subnet-group-tf\"][\"id\"],\n tags={\n \"Name\": \"test\",\n },\n vpc_security_group_ids=[\"sg-12345678\"],\n opts=pulumi.ResourceOptions(depends_on=[\n dms_access_for_endpoint__amazon_dms_redshift_s3_role,\n dms_cloudwatch_logs_role__amazon_dms_cloud_watch_logs_role,\n dms_vpc_role__amazon_dmsvpc_management_role,\n ]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dmsAssumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()\n {\n Statements = new[]\n {\n new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs\n {\n Actions = new[]\n {\n \"sts:AssumeRole\",\n },\n Principals = new[]\n {\n new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs\n {\n Identifiers = new[]\n {\n \"dms.amazonaws.com\",\n },\n Type = \"Service\",\n },\n },\n },\n },\n });\n\n var dms_access_for_endpoint = new Aws.Iam.Role(\"dms-access-for-endpoint\", new()\n {\n AssumeRolePolicy = dmsAssumeRole.Apply(getPolicyDocumentResult =\u003e getPolicyDocumentResult.Json),\n });\n\n var dms_access_for_endpoint_AmazonDMSRedshiftS3Role = new Aws.Iam.RolePolicyAttachment(\"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\", new()\n {\n PolicyArn = \"arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\",\n Role = dms_access_for_endpoint.Name,\n });\n\n var dms_cloudwatch_logs_role = new Aws.Iam.Role(\"dms-cloudwatch-logs-role\", new()\n {\n AssumeRolePolicy = dmsAssumeRole.Apply(getPolicyDocumentResult =\u003e getPolicyDocumentResult.Json),\n });\n\n var dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole = new Aws.Iam.RolePolicyAttachment(\"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\", new()\n {\n PolicyArn = \"arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\",\n Role = dms_cloudwatch_logs_role.Name,\n });\n\n var dms_vpc_role = new Aws.Iam.Role(\"dms-vpc-role\", new()\n {\n AssumeRolePolicy = dmsAssumeRole.Apply(getPolicyDocumentResult =\u003e getPolicyDocumentResult.Json),\n });\n\n var dms_vpc_role_AmazonDMSVPCManagementRole = new Aws.Iam.RolePolicyAttachment(\"dms-vpc-role-AmazonDMSVPCManagementRole\", new()\n {\n PolicyArn = \"arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\",\n Role = dms_vpc_role.Name,\n });\n\n // Create a new replication instance\n var test = new Aws.Dms.ReplicationInstance(\"test\", new()\n {\n AllocatedStorage = 20,\n ApplyImmediately = true,\n AutoMinorVersionUpgrade = true,\n AvailabilityZone = \"us-west-2c\",\n EngineVersion = \"3.1.4\",\n KmsKeyArn = \"arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\",\n MultiAz = false,\n PreferredMaintenanceWindow = \"sun:10:30-sun:14:30\",\n PubliclyAccessible = true,\n ReplicationInstanceClass = \"dms.t2.micro\",\n ReplicationInstanceId = \"test-dms-replication-instance-tf\",\n ReplicationSubnetGroupId = aws_dms_replication_subnet_group.Test_dms_replication_subnet_group_tf.Id,\n Tags = \n {\n { \"Name\", \"test\" },\n },\n VpcSecurityGroupIds = new[]\n {\n \"sg-12345678\",\n },\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n dms_access_for_endpoint_AmazonDMSRedshiftS3Role,\n dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole,\n dms_vpc_role_AmazonDMSVPCManagementRole,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dms\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdmsAssumeRole, err := iam.GetPolicyDocument(ctx, \u0026iam.GetPolicyDocumentArgs{\n\t\t\tStatements: []iam.GetPolicyDocumentStatement{\n\t\t\t\t{\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"sts:AssumeRole\",\n\t\t\t\t\t},\n\t\t\t\t\tPrincipals: []iam.GetPolicyDocumentStatementPrincipal{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIdentifiers: []string{\n\t\t\t\t\t\t\t\t\"dms.amazonaws.com\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tType: \"Service\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRole(ctx, \"dms-access-for-endpoint\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: *pulumi.String(dmsAssumeRole.Json),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRolePolicyAttachment(ctx, \"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\", \u0026iam.RolePolicyAttachmentArgs{\n\t\t\tPolicyArn: pulumi.String(\"arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\"),\n\t\t\tRole: dms_access_for_endpoint.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRole(ctx, \"dms-cloudwatch-logs-role\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: *pulumi.String(dmsAssumeRole.Json),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRolePolicyAttachment(ctx, \"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\", \u0026iam.RolePolicyAttachmentArgs{\n\t\t\tPolicyArn: pulumi.String(\"arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\"),\n\t\t\tRole: dms_cloudwatch_logs_role.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRole(ctx, \"dms-vpc-role\", \u0026iam.RoleArgs{\n\t\t\tAssumeRolePolicy: *pulumi.String(dmsAssumeRole.Json),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iam.NewRolePolicyAttachment(ctx, \"dms-vpc-role-AmazonDMSVPCManagementRole\", \u0026iam.RolePolicyAttachmentArgs{\n\t\t\tPolicyArn: pulumi.String(\"arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\"),\n\t\t\tRole: dms_vpc_role.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = dms.NewReplicationInstance(ctx, \"test\", \u0026dms.ReplicationInstanceArgs{\n\t\t\tAllocatedStorage: pulumi.Int(20),\n\t\t\tApplyImmediately: pulumi.Bool(true),\n\t\t\tAutoMinorVersionUpgrade: pulumi.Bool(true),\n\t\t\tAvailabilityZone: pulumi.String(\"us-west-2c\"),\n\t\t\tEngineVersion: pulumi.String(\"3.1.4\"),\n\t\t\tKmsKeyArn: pulumi.String(\"arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\"),\n\t\t\tMultiAz: pulumi.Bool(false),\n\t\t\tPreferredMaintenanceWindow: pulumi.String(\"sun:10:30-sun:14:30\"),\n\t\t\tPubliclyAccessible: pulumi.Bool(true),\n\t\t\tReplicationInstanceClass: pulumi.String(\"dms.t2.micro\"),\n\t\t\tReplicationInstanceId: pulumi.String(\"test-dms-replication-instance-tf\"),\n\t\t\tReplicationSubnetGroupId: pulumi.Any(aws_dms_replication_subnet_group.TestDmsReplicationSubnetGroupTf.Id),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Name\": pulumi.String(\"test\"),\n\t\t\t},\n\t\t\tVpcSecurityGroupIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"sg-12345678\"),\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdms_access_for_endpoint_AmazonDMSRedshiftS3Role,\n\t\t\tdms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole,\n\t\t\tdms_vpc_role_AmazonDMSVPCManagementRole,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.IamFunctions;\nimport com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.RolePolicyAttachment;\nimport com.pulumi.aws.iam.RolePolicyAttachmentArgs;\nimport com.pulumi.aws.dms.ReplicationInstance;\nimport com.pulumi.aws.dms.ReplicationInstanceArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var dmsAssumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()\n .statements(GetPolicyDocumentStatementArgs.builder()\n .actions(\"sts:AssumeRole\")\n .principals(GetPolicyDocumentStatementPrincipalArgs.builder()\n .identifiers(\"dms.amazonaws.com\")\n .type(\"Service\")\n .build())\n .build())\n .build());\n\n var dms_access_for_endpoint = new Role(\"dms-access-for-endpoint\", RoleArgs.builder() \n .assumeRolePolicy(dmsAssumeRole.applyValue(getPolicyDocumentResult -\u003e getPolicyDocumentResult.json()))\n .build());\n\n var dms_access_for_endpoint_AmazonDMSRedshiftS3Role = new RolePolicyAttachment(\"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\", RolePolicyAttachmentArgs.builder() \n .policyArn(\"arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\")\n .role(dms_access_for_endpoint.name())\n .build());\n\n var dms_cloudwatch_logs_role = new Role(\"dms-cloudwatch-logs-role\", RoleArgs.builder() \n .assumeRolePolicy(dmsAssumeRole.applyValue(getPolicyDocumentResult -\u003e getPolicyDocumentResult.json()))\n .build());\n\n var dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole = new RolePolicyAttachment(\"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\", RolePolicyAttachmentArgs.builder() \n .policyArn(\"arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\")\n .role(dms_cloudwatch_logs_role.name())\n .build());\n\n var dms_vpc_role = new Role(\"dms-vpc-role\", RoleArgs.builder() \n .assumeRolePolicy(dmsAssumeRole.applyValue(getPolicyDocumentResult -\u003e getPolicyDocumentResult.json()))\n .build());\n\n var dms_vpc_role_AmazonDMSVPCManagementRole = new RolePolicyAttachment(\"dms-vpc-role-AmazonDMSVPCManagementRole\", RolePolicyAttachmentArgs.builder() \n .policyArn(\"arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\")\n .role(dms_vpc_role.name())\n .build());\n\n var test = new ReplicationInstance(\"test\", ReplicationInstanceArgs.builder() \n .allocatedStorage(20)\n .applyImmediately(true)\n .autoMinorVersionUpgrade(true)\n .availabilityZone(\"us-west-2c\")\n .engineVersion(\"3.1.4\")\n .kmsKeyArn(\"arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\")\n .multiAz(false)\n .preferredMaintenanceWindow(\"sun:10:30-sun:14:30\")\n .publiclyAccessible(true)\n .replicationInstanceClass(\"dms.t2.micro\")\n .replicationInstanceId(\"test-dms-replication-instance-tf\")\n .replicationSubnetGroupId(aws_dms_replication_subnet_group.test-dms-replication-subnet-group-tf().id())\n .tags(Map.of(\"Name\", \"test\"))\n .vpcSecurityGroupIds(\"sg-12345678\")\n .build(), CustomResourceOptions.builder()\n .dependsOn( \n dms_access_for_endpoint_AmazonDMSRedshiftS3Role,\n dms_cloudwatch_logs_role_AmazonDMSCloudWatchLogsRole,\n dms_vpc_role_AmazonDMSVPCManagementRole)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dms-access-for-endpoint:\n type: aws:iam:Role\n properties:\n assumeRolePolicy: ${dmsAssumeRole.json}\n dms-access-for-endpoint-AmazonDMSRedshiftS3Role:\n type: aws:iam:RolePolicyAttachment\n properties:\n policyArn: arn:aws:iam::aws:policy/service-role/AmazonDMSRedshiftS3Role\n role: ${[\"dms-access-for-endpoint\"].name}\n dms-cloudwatch-logs-role:\n type: aws:iam:Role\n properties:\n assumeRolePolicy: ${dmsAssumeRole.json}\n dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole:\n type: aws:iam:RolePolicyAttachment\n properties:\n policyArn: arn:aws:iam::aws:policy/service-role/AmazonDMSCloudWatchLogsRole\n role: ${[\"dms-cloudwatch-logs-role\"].name}\n dms-vpc-role:\n type: aws:iam:Role\n properties:\n assumeRolePolicy: ${dmsAssumeRole.json}\n dms-vpc-role-AmazonDMSVPCManagementRole:\n type: aws:iam:RolePolicyAttachment\n properties:\n policyArn: arn:aws:iam::aws:policy/service-role/AmazonDMSVPCManagementRole\n role: ${[\"dms-vpc-role\"].name}\n # Create a new replication instance\n test:\n type: aws:dms:ReplicationInstance\n properties:\n allocatedStorage: 20\n applyImmediately: true\n autoMinorVersionUpgrade: true\n availabilityZone: us-west-2c\n engineVersion: 3.1.4\n kmsKeyArn: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012\n multiAz: false\n preferredMaintenanceWindow: sun:10:30-sun:14:30\n publiclyAccessible: true\n replicationInstanceClass: dms.t2.micro\n replicationInstanceId: test-dms-replication-instance-tf\n replicationSubnetGroupId: ${aws_dms_replication_subnet_group\"test-dms-replication-subnet-group-tf\"[%!s(MISSING)].id}\n tags:\n Name: test\n vpcSecurityGroupIds:\n - sg-12345678\n options:\n dependson:\n - ${[\"dms-access-for-endpoint-AmazonDMSRedshiftS3Role\"]}\n - ${[\"dms-cloudwatch-logs-role-AmazonDMSCloudWatchLogsRole\"]}\n - ${[\"dms-vpc-role-AmazonDMSVPCManagementRole\"]}\nvariables:\n dmsAssumeRole:\n fn::invoke:\n Function: aws:iam:getPolicyDocument\n Arguments:\n statements:\n - actions:\n - sts:AssumeRole\n principals:\n - identifiers:\n - dms.amazonaws.com\n type: Service\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import replication instances using the `replication_instance_id`. For example:\n\n```sh\n $ pulumi import aws:dms/replicationInstance:ReplicationInstance test test-dms-replication-instance-tf\n```\n ", "properties": { @@ -210197,7 +211367,7 @@ }, "diskIopsConfiguration": { "$ref": "#/types/aws:fsx/OntapFileSystemDiskIopsConfiguration:OntapFileSystemDiskIopsConfiguration", - "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below.\n" + "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below.\n" }, "dnsName": { "type": "string", @@ -210331,7 +211501,7 @@ }, "diskIopsConfiguration": { "$ref": "#/types/aws:fsx/OntapFileSystemDiskIopsConfiguration:OntapFileSystemDiskIopsConfiguration", - "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below.\n" + "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below.\n" }, "endpointIpAddressRange": { "type": "string", @@ -210429,7 +211599,7 @@ }, "diskIopsConfiguration": { "$ref": "#/types/aws:fsx/OntapFileSystemDiskIopsConfiguration:OntapFileSystemDiskIopsConfiguration", - "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below.\n" + "description": "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below.\n" }, "dnsName": { "type": "string", @@ -210712,6 +211882,14 @@ "type": "string", "description": "Amazon Resource Name of the volune.\n" }, + "bypassSnaplockEnterpriseRetention": { + "type": "boolean", + "description": "Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" + }, + "copyTagsToBackups": { + "type": "boolean", + "description": "A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`.\n" + }, "fileSystemId": { "type": "string", "description": "Describes the file system for the volume, e.g. `fs-12345679`\n" @@ -210744,6 +211922,14 @@ "type": "boolean", "description": "When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" }, + "snaplockConfiguration": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfiguration:OntapVolumeSnaplockConfiguration", + "description": "The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below.\n" + }, + "snapshotPolicy": { + "type": "string", + "description": "Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide\n" + }, "storageEfficiencyEnabled": { "type": "boolean", "description": "Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume.\n" @@ -210769,7 +211955,8 @@ "secret": true }, "tieringPolicy": { - "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy" + "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy", + "description": "The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below.\n" }, "uuid": { "type": "string", @@ -210788,11 +211975,20 @@ "ontapVolumeType", "securityStyle", "sizeInMegabytes", + "snapshotPolicy", "storageVirtualMachineId", "tagsAll", "uuid" ], "inputProperties": { + "bypassSnaplockEnterpriseRetention": { + "type": "boolean", + "description": "Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" + }, + "copyTagsToBackups": { + "type": "boolean", + "description": "A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`.\n" + }, "junctionPath": { "type": "string", "description": "Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3`\n" @@ -210819,6 +212015,14 @@ "type": "boolean", "description": "When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" }, + "snaplockConfiguration": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfiguration:OntapVolumeSnaplockConfiguration", + "description": "The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below.\n" + }, + "snapshotPolicy": { + "type": "string", + "description": "Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide\n" + }, "storageEfficiencyEnabled": { "type": "boolean", "description": "Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume.\n" @@ -210836,7 +212040,8 @@ "description": "A map of tags to assign to the volume. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" }, "tieringPolicy": { - "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy" + "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy", + "description": "The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below.\n" }, "volumeType": { "type": "string", @@ -210855,6 +212060,14 @@ "type": "string", "description": "Amazon Resource Name of the volune.\n" }, + "bypassSnaplockEnterpriseRetention": { + "type": "boolean", + "description": "Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" + }, + "copyTagsToBackups": { + "type": "boolean", + "description": "A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`.\n" + }, "fileSystemId": { "type": "string", "description": "Describes the file system for the volume, e.g. `fs-12345679`\n" @@ -210889,6 +212102,14 @@ "type": "boolean", "description": "When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`.\n" }, + "snaplockConfiguration": { + "$ref": "#/types/aws:fsx/OntapVolumeSnaplockConfiguration:OntapVolumeSnaplockConfiguration", + "description": "The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below.\n" + }, + "snapshotPolicy": { + "type": "string", + "description": "Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide\n" + }, "storageEfficiencyEnabled": { "type": "boolean", "description": "Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume.\n" @@ -210915,7 +212136,8 @@ "secret": true }, "tieringPolicy": { - "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy" + "$ref": "#/types/aws:fsx/OntapVolumeTieringPolicy:OntapVolumeTieringPolicy", + "description": "The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below.\n" }, "uuid": { "type": "string", @@ -211427,6 +212649,10 @@ "type": "string", "description": "Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.\n" }, + "deleteVolumeOptions": { + "type": "string", + "description": "Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior..\n" + }, "name": { "type": "string", "description": "The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.\n" @@ -211506,6 +212732,10 @@ "type": "string", "description": "Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.\n" }, + "deleteVolumeOptions": { + "type": "string", + "description": "Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior..\n" + }, "name": { "type": "string", "description": "The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.\n" @@ -211553,7 +212783,8 @@ "description": "Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below.\n" }, "volumeType": { - "type": "string" + "type": "string", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -211575,6 +212806,10 @@ "type": "string", "description": "Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.\n" }, + "deleteVolumeOptions": { + "type": "string", + "description": "Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior..\n" + }, "name": { "type": "string", "description": "The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.\n" @@ -211631,7 +212866,8 @@ "description": "Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below.\n" }, "volumeType": { - "type": "string" + "type": "string", + "willReplaceOnChanges": true } }, "type": "object" @@ -235606,6 +236842,200 @@ "type": "object" } }, + "aws:lex/v2modelsBot:V2modelsBot": { + "description": "Resource for managing an AWS Lex V2 Models Bot.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.lex.V2modelsBot(\"example\", {\n dataPrivacies: [{\n childDirected: \"boolean\",\n }],\n idleSessionTtlInSeconds: 10,\n roleArn: \"bot_example_arn\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.lex.V2modelsBot(\"example\",\n data_privacies=[aws.lex.V2modelsBotDataPrivacyArgs(\n child_directed=\"boolean\",\n )],\n idle_session_ttl_in_seconds=10,\n role_arn=\"bot_example_arn\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Lex.V2modelsBot(\"example\", new()\n {\n DataPrivacies = new[]\n {\n new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs\n {\n ChildDirected = \"boolean\",\n },\n },\n IdleSessionTtlInSeconds = 10,\n RoleArn = \"bot_example_arn\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := lex.NewV2modelsBot(ctx, \"example\", \u0026lex.V2modelsBotArgs{\n\t\t\tDataPrivacies: lex.V2modelsBotDataPrivacyArray{\n\t\t\t\t\u0026lex.V2modelsBotDataPrivacyArgs{\n\t\t\t\t\tChildDirected: pulumi.Bool(\"boolean\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIdleSessionTtlInSeconds: pulumi.Int(10),\n\t\t\tRoleArn: pulumi.String(\"bot_example_arn\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.lex.V2modelsBot;\nimport com.pulumi.aws.lex.V2modelsBotArgs;\nimport com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new V2modelsBot(\"example\", V2modelsBotArgs.builder() \n .dataPrivacies(V2modelsBotDataPrivacyArgs.builder()\n .childDirected(\"boolean\")\n .build())\n .idleSessionTtlInSeconds(10)\n .roleArn(\"bot_example_arn\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:lex:V2modelsBot\n properties:\n dataPrivacies:\n - childDirected: boolean\n idleSessionTtlInSeconds: 10\n roleArn: bot_example_arn\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIn TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import {\n\n to = aws_lexv2models_bot.example\n\n id = \"bot-id-12345678\" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 ", + "properties": { + "arn": { + "type": "string" + }, + "dataPrivacies": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotDataPrivacy:V2modelsBotDataPrivacy" + }, + "description": "Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`\n" + }, + "description": { + "type": "string", + "description": "Description of the bot. It appears in lists to help you identify a particular bot.\n" + }, + "idleSessionTtlInSeconds": { + "type": "integer", + "description": "Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.\n" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotMember:V2modelsBotMember" + }, + "description": "List of bot members in a network to be created. See `bot_members`.\n" + }, + "name": { + "type": "string", + "description": "Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.\n" + }, + "roleArn": { + "type": "string", + "description": "ARN of an IAM role that has permission to access the bot.\n\nThe following arguments are optional:\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "testBotAliasTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "List of tags to add to the test alias for a bot. You can only add tags when you create a bot.\n" + }, + "timeouts": { + "$ref": "#/types/aws:lex/V2modelsBotTimeouts:V2modelsBotTimeouts" + }, + "type": { + "type": "string" + } + }, + "required": [ + "arn", + "idleSessionTtlInSeconds", + "name", + "roleArn", + "tagsAll", + "type" + ], + "inputProperties": { + "dataPrivacies": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotDataPrivacy:V2modelsBotDataPrivacy" + }, + "description": "Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`\n" + }, + "description": { + "type": "string", + "description": "Description of the bot. It appears in lists to help you identify a particular bot.\n" + }, + "idleSessionTtlInSeconds": { + "type": "integer", + "description": "Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.\n" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotMember:V2modelsBotMember" + }, + "description": "List of bot members in a network to be created. See `bot_members`.\n" + }, + "name": { + "type": "string", + "description": "Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.\n" + }, + "roleArn": { + "type": "string", + "description": "ARN of an IAM role that has permission to access the bot.\n\nThe following arguments are optional:\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "testBotAliasTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "List of tags to add to the test alias for a bot. You can only add tags when you create a bot.\n" + }, + "timeouts": { + "$ref": "#/types/aws:lex/V2modelsBotTimeouts:V2modelsBotTimeouts" + }, + "type": { + "type": "string" + } + }, + "requiredInputs": [ + "idleSessionTtlInSeconds", + "roleArn" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering V2modelsBot resources.\n", + "properties": { + "arn": { + "type": "string" + }, + "dataPrivacies": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotDataPrivacy:V2modelsBotDataPrivacy" + }, + "description": "Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`\n" + }, + "description": { + "type": "string", + "description": "Description of the bot. It appears in lists to help you identify a particular bot.\n" + }, + "idleSessionTtlInSeconds": { + "type": "integer", + "description": "Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.\n" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/types/aws:lex/V2modelsBotMember:V2modelsBotMember" + }, + "description": "List of bot members in a network to be created. See `bot_members`.\n" + }, + "name": { + "type": "string", + "description": "Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.\n" + }, + "roleArn": { + "type": "string", + "description": "ARN of an IAM role that has permission to access the bot.\n\nThe following arguments are optional:\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "deprecationMessage": "Please use `tags` instead.", + "secret": true + }, + "testBotAliasTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "List of tags to add to the test alias for a bot. You can only add tags when you create a bot.\n" + }, + "timeouts": { + "$ref": "#/types/aws:lex/V2modelsBotTimeouts:V2modelsBotTimeouts" + }, + "type": { + "type": "string" + } + }, + "type": "object" + } + }, "aws:licensemanager/association:Association": { "description": "Provides a License Manager association.\n\n\u003e **Note:** License configurations can also be associated with launch templates by specifying the `license_specifications` block for an `aws.ec2.LaunchTemplate`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleAmi = aws.ec2.getAmi({\n mostRecent: true,\n owners: [\"amazon\"],\n filters: [{\n name: \"name\",\n values: [\"amzn-ami-vpc-nat*\"],\n }],\n});\nconst exampleInstance = new aws.ec2.Instance(\"exampleInstance\", {\n ami: exampleAmi.then(exampleAmi =\u003e exampleAmi.id),\n instanceType: \"t2.micro\",\n});\nconst exampleLicenseConfiguration = new aws.licensemanager.LicenseConfiguration(\"exampleLicenseConfiguration\", {licenseCountingType: \"Instance\"});\nconst exampleAssociation = new aws.licensemanager.Association(\"exampleAssociation\", {\n licenseConfigurationArn: exampleLicenseConfiguration.arn,\n resourceArn: exampleInstance.arn,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_ami = aws.ec2.get_ami(most_recent=True,\n owners=[\"amazon\"],\n filters=[aws.ec2.GetAmiFilterArgs(\n name=\"name\",\n values=[\"amzn-ami-vpc-nat*\"],\n )])\nexample_instance = aws.ec2.Instance(\"exampleInstance\",\n ami=example_ami.id,\n instance_type=\"t2.micro\")\nexample_license_configuration = aws.licensemanager.LicenseConfiguration(\"exampleLicenseConfiguration\", license_counting_type=\"Instance\")\nexample_association = aws.licensemanager.Association(\"exampleAssociation\",\n license_configuration_arn=example_license_configuration.arn,\n resource_arn=example_instance.arn)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleAmi = Aws.Ec2.GetAmi.Invoke(new()\n {\n MostRecent = true,\n Owners = new[]\n {\n \"amazon\",\n },\n Filters = new[]\n {\n new Aws.Ec2.Inputs.GetAmiFilterInputArgs\n {\n Name = \"name\",\n Values = new[]\n {\n \"amzn-ami-vpc-nat*\",\n },\n },\n },\n });\n\n var exampleInstance = new Aws.Ec2.Instance(\"exampleInstance\", new()\n {\n Ami = exampleAmi.Apply(getAmiResult =\u003e getAmiResult.Id),\n InstanceType = \"t2.micro\",\n });\n\n var exampleLicenseConfiguration = new Aws.LicenseManager.LicenseConfiguration(\"exampleLicenseConfiguration\", new()\n {\n LicenseCountingType = \"Instance\",\n });\n\n var exampleAssociation = new Aws.LicenseManager.Association(\"exampleAssociation\", new()\n {\n LicenseConfigurationArn = exampleLicenseConfiguration.Arn,\n ResourceArn = exampleInstance.Arn,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/licensemanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleAmi, err := ec2.LookupAmi(ctx, \u0026ec2.LookupAmiArgs{\n\t\t\tMostRecent: pulumi.BoolRef(true),\n\t\t\tOwners: []string{\n\t\t\t\t\"amazon\",\n\t\t\t},\n\t\t\tFilters: []ec2.GetAmiFilter{\n\t\t\t\t{\n\t\t\t\t\tName: \"name\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"amzn-ami-vpc-nat*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleInstance, err := ec2.NewInstance(ctx, \"exampleInstance\", \u0026ec2.InstanceArgs{\n\t\t\tAmi: *pulumi.String(exampleAmi.Id),\n\t\t\tInstanceType: pulumi.String(\"t2.micro\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleLicenseConfiguration, err := licensemanager.NewLicenseConfiguration(ctx, \"exampleLicenseConfiguration\", \u0026licensemanager.LicenseConfigurationArgs{\n\t\t\tLicenseCountingType: pulumi.String(\"Instance\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = licensemanager.NewAssociation(ctx, \"exampleAssociation\", \u0026licensemanager.AssociationArgs{\n\t\t\tLicenseConfigurationArn: exampleLicenseConfiguration.Arn,\n\t\t\tResourceArn: exampleInstance.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.ec2.Ec2Functions;\nimport com.pulumi.aws.ec2.inputs.GetAmiArgs;\nimport com.pulumi.aws.ec2.Instance;\nimport com.pulumi.aws.ec2.InstanceArgs;\nimport com.pulumi.aws.licensemanager.LicenseConfiguration;\nimport com.pulumi.aws.licensemanager.LicenseConfigurationArgs;\nimport com.pulumi.aws.licensemanager.Association;\nimport com.pulumi.aws.licensemanager.AssociationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleAmi = Ec2Functions.getAmi(GetAmiArgs.builder()\n .mostRecent(true)\n .owners(\"amazon\")\n .filters(GetAmiFilterArgs.builder()\n .name(\"name\")\n .values(\"amzn-ami-vpc-nat*\")\n .build())\n .build());\n\n var exampleInstance = new Instance(\"exampleInstance\", InstanceArgs.builder() \n .ami(exampleAmi.applyValue(getAmiResult -\u003e getAmiResult.id()))\n .instanceType(\"t2.micro\")\n .build());\n\n var exampleLicenseConfiguration = new LicenseConfiguration(\"exampleLicenseConfiguration\", LicenseConfigurationArgs.builder() \n .licenseCountingType(\"Instance\")\n .build());\n\n var exampleAssociation = new Association(\"exampleAssociation\", AssociationArgs.builder() \n .licenseConfigurationArn(exampleLicenseConfiguration.arn())\n .resourceArn(exampleInstance.arn())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleInstance:\n type: aws:ec2:Instance\n properties:\n ami: ${exampleAmi.id}\n instanceType: t2.micro\n exampleLicenseConfiguration:\n type: aws:licensemanager:LicenseConfiguration\n properties:\n licenseCountingType: Instance\n exampleAssociation:\n type: aws:licensemanager:Association\n properties:\n licenseConfigurationArn: ${exampleLicenseConfiguration.arn}\n resourceArn: ${exampleInstance.arn}\nvariables:\n exampleAmi:\n fn::invoke:\n Function: aws:ec2:getAmi\n Arguments:\n mostRecent: true\n owners:\n - amazon\n filters:\n - name: name\n values:\n - amzn-ami-vpc-nat*\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIn TODO v1.5.0 and later, use an `import` block to import license configurations using `resource_arn,license_configuration_arn`. For exampleterraform import {\n\n to = aws_licensemanager_association.example\n\n id = \"arn:aws:ec2:eu-west-1:123456789012:image/ami-123456789abcdef01,arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef\" } Using `TODO import`, import license configurations using `resource_arn,license_configuration_arn`. For exampleconsole % TODO import aws_licensemanager_association.example arn:aws:ec2:eu-west-1:123456789012:image/ami-123456789abcdef01,arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef ", "properties": { @@ -236078,6 +237508,10 @@ "type": "string", "description": "The timestamp when the bucket was created.\n" }, + "forceDelete": { + "type": "boolean", + "description": "Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty.\n" + }, "name": { "type": "string", "description": "The name for the bucket.\n" @@ -236126,6 +237560,10 @@ "type": "string", "description": "The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify.\n" }, + "forceDelete": { + "type": "boolean", + "description": "Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty.\n" + }, "name": { "type": "string", "description": "The name for the bucket.\n", @@ -236161,6 +237599,10 @@ "type": "string", "description": "The timestamp when the bucket was created.\n" }, + "forceDelete": { + "type": "boolean", + "description": "Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty.\n" + }, "name": { "type": "string", "description": "The name for the bucket.\n", @@ -250706,12 +252148,24 @@ } }, "aws:opensearch/outboundConnection:OutboundConnection": { - "description": "Manages an AWS Opensearch Outbound Connection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst currentCallerIdentity = aws.getCallerIdentity({});\nconst currentRegion = aws.getRegion({});\nconst foo = new aws.opensearch.OutboundConnection(\"foo\", {\n connectionAlias: \"outbound_connection\",\n localDomainInfo: {\n ownerId: currentCallerIdentity.then(currentCallerIdentity =\u003e currentCallerIdentity.accountId),\n region: currentRegion.then(currentRegion =\u003e currentRegion.name),\n domainName: aws_opensearch_domain.local_domain.domain_name,\n },\n remoteDomainInfo: {\n ownerId: currentCallerIdentity.then(currentCallerIdentity =\u003e currentCallerIdentity.accountId),\n region: currentRegion.then(currentRegion =\u003e currentRegion.name),\n domainName: aws_opensearch_domain.remote_domain.domain_name,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ncurrent_caller_identity = aws.get_caller_identity()\ncurrent_region = aws.get_region()\nfoo = aws.opensearch.OutboundConnection(\"foo\",\n connection_alias=\"outbound_connection\",\n local_domain_info=aws.opensearch.OutboundConnectionLocalDomainInfoArgs(\n owner_id=current_caller_identity.account_id,\n region=current_region.name,\n domain_name=aws_opensearch_domain[\"local_domain\"][\"domain_name\"],\n ),\n remote_domain_info=aws.opensearch.OutboundConnectionRemoteDomainInfoArgs(\n owner_id=current_caller_identity.account_id,\n region=current_region.name,\n domain_name=aws_opensearch_domain[\"remote_domain\"][\"domain_name\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var currentCallerIdentity = Aws.GetCallerIdentity.Invoke();\n\n var currentRegion = Aws.GetRegion.Invoke();\n\n var foo = new Aws.OpenSearch.OutboundConnection(\"foo\", new()\n {\n ConnectionAlias = \"outbound_connection\",\n LocalDomainInfo = new Aws.OpenSearch.Inputs.OutboundConnectionLocalDomainInfoArgs\n {\n OwnerId = currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId),\n Region = currentRegion.Apply(getRegionResult =\u003e getRegionResult.Name),\n DomainName = aws_opensearch_domain.Local_domain.Domain_name,\n },\n RemoteDomainInfo = new Aws.OpenSearch.Inputs.OutboundConnectionRemoteDomainInfoArgs\n {\n OwnerId = currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId),\n Region = currentRegion.Apply(getRegionResult =\u003e getRegionResult.Name),\n DomainName = aws_opensearch_domain.Remote_domain.Domain_name,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrentCallerIdentity, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcurrentRegion, err := aws.GetRegion(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = opensearch.NewOutboundConnection(ctx, \"foo\", \u0026opensearch.OutboundConnectionArgs{\n\t\t\tConnectionAlias: pulumi.String(\"outbound_connection\"),\n\t\t\tLocalDomainInfo: \u0026opensearch.OutboundConnectionLocalDomainInfoArgs{\n\t\t\t\tOwnerId: *pulumi.String(currentCallerIdentity.AccountId),\n\t\t\t\tRegion: *pulumi.String(currentRegion.Name),\n\t\t\t\tDomainName: pulumi.Any(aws_opensearch_domain.Local_domain.Domain_name),\n\t\t\t},\n\t\t\tRemoteDomainInfo: \u0026opensearch.OutboundConnectionRemoteDomainInfoArgs{\n\t\t\t\tOwnerId: *pulumi.String(currentCallerIdentity.AccountId),\n\t\t\t\tRegion: *pulumi.String(currentRegion.Name),\n\t\t\t\tDomainName: pulumi.Any(aws_opensearch_domain.Remote_domain.Domain_name),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.inputs.GetRegionArgs;\nimport com.pulumi.aws.opensearch.OutboundConnection;\nimport com.pulumi.aws.opensearch.OutboundConnectionArgs;\nimport com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs;\nimport com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var currentCallerIdentity = AwsFunctions.getCallerIdentity();\n\n final var currentRegion = AwsFunctions.getRegion();\n\n var foo = new OutboundConnection(\"foo\", OutboundConnectionArgs.builder() \n .connectionAlias(\"outbound_connection\")\n .localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder()\n .ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))\n .region(currentRegion.applyValue(getRegionResult -\u003e getRegionResult.name()))\n .domainName(aws_opensearch_domain.local_domain().domain_name())\n .build())\n .remoteDomainInfo(OutboundConnectionRemoteDomainInfoArgs.builder()\n .ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))\n .region(currentRegion.applyValue(getRegionResult -\u003e getRegionResult.name()))\n .domainName(aws_opensearch_domain.remote_domain().domain_name())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: aws:opensearch:OutboundConnection\n properties:\n connectionAlias: outbound_connection\n localDomainInfo:\n ownerId: ${currentCallerIdentity.accountId}\n region: ${currentRegion.name}\n domainName: ${aws_opensearch_domain.local_domain.domain_name}\n remoteDomainInfo:\n ownerId: ${currentCallerIdentity.accountId}\n region: ${currentRegion.name}\n domainName: ${aws_opensearch_domain.remote_domain.domain_name}\nvariables:\n currentCallerIdentity:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n currentRegion:\n fn::invoke:\n Function: aws:getRegion\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import AWS Opensearch Outbound Connections using the Outbound Connection ID. For example:\n\n```sh\n $ pulumi import aws:opensearch/outboundConnection:OutboundConnection foo connection-id\n```\n ", + "description": "Manages an AWS Opensearch Outbound Connection.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst currentCallerIdentity = aws.getCallerIdentity({});\nconst currentRegion = aws.getRegion({});\nconst foo = new aws.opensearch.OutboundConnection(\"foo\", {\n connectionAlias: \"outbound_connection\",\n connectionMode: \"DIRECT\",\n localDomainInfo: {\n ownerId: currentCallerIdentity.then(currentCallerIdentity =\u003e currentCallerIdentity.accountId),\n region: currentRegion.then(currentRegion =\u003e currentRegion.name),\n domainName: aws_opensearch_domain.local_domain.domain_name,\n },\n remoteDomainInfo: {\n ownerId: currentCallerIdentity.then(currentCallerIdentity =\u003e currentCallerIdentity.accountId),\n region: currentRegion.then(currentRegion =\u003e currentRegion.name),\n domainName: aws_opensearch_domain.remote_domain.domain_name,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ncurrent_caller_identity = aws.get_caller_identity()\ncurrent_region = aws.get_region()\nfoo = aws.opensearch.OutboundConnection(\"foo\",\n connection_alias=\"outbound_connection\",\n connection_mode=\"DIRECT\",\n local_domain_info=aws.opensearch.OutboundConnectionLocalDomainInfoArgs(\n owner_id=current_caller_identity.account_id,\n region=current_region.name,\n domain_name=aws_opensearch_domain[\"local_domain\"][\"domain_name\"],\n ),\n remote_domain_info=aws.opensearch.OutboundConnectionRemoteDomainInfoArgs(\n owner_id=current_caller_identity.account_id,\n region=current_region.name,\n domain_name=aws_opensearch_domain[\"remote_domain\"][\"domain_name\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var currentCallerIdentity = Aws.GetCallerIdentity.Invoke();\n\n var currentRegion = Aws.GetRegion.Invoke();\n\n var foo = new Aws.OpenSearch.OutboundConnection(\"foo\", new()\n {\n ConnectionAlias = \"outbound_connection\",\n ConnectionMode = \"DIRECT\",\n LocalDomainInfo = new Aws.OpenSearch.Inputs.OutboundConnectionLocalDomainInfoArgs\n {\n OwnerId = currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId),\n Region = currentRegion.Apply(getRegionResult =\u003e getRegionResult.Name),\n DomainName = aws_opensearch_domain.Local_domain.Domain_name,\n },\n RemoteDomainInfo = new Aws.OpenSearch.Inputs.OutboundConnectionRemoteDomainInfoArgs\n {\n OwnerId = currentCallerIdentity.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId),\n Region = currentRegion.Apply(getRegionResult =\u003e getRegionResult.Name),\n DomainName = aws_opensearch_domain.Remote_domain.Domain_name,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrentCallerIdentity, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcurrentRegion, err := aws.GetRegion(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = opensearch.NewOutboundConnection(ctx, \"foo\", \u0026opensearch.OutboundConnectionArgs{\n\t\t\tConnectionAlias: pulumi.String(\"outbound_connection\"),\n\t\t\tConnectionMode: pulumi.String(\"DIRECT\"),\n\t\t\tLocalDomainInfo: \u0026opensearch.OutboundConnectionLocalDomainInfoArgs{\n\t\t\t\tOwnerId: *pulumi.String(currentCallerIdentity.AccountId),\n\t\t\t\tRegion: *pulumi.String(currentRegion.Name),\n\t\t\t\tDomainName: pulumi.Any(aws_opensearch_domain.Local_domain.Domain_name),\n\t\t\t},\n\t\t\tRemoteDomainInfo: \u0026opensearch.OutboundConnectionRemoteDomainInfoArgs{\n\t\t\t\tOwnerId: *pulumi.String(currentCallerIdentity.AccountId),\n\t\t\t\tRegion: *pulumi.String(currentRegion.Name),\n\t\t\t\tDomainName: pulumi.Any(aws_opensearch_domain.Remote_domain.Domain_name),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.inputs.GetRegionArgs;\nimport com.pulumi.aws.opensearch.OutboundConnection;\nimport com.pulumi.aws.opensearch.OutboundConnectionArgs;\nimport com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs;\nimport com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var currentCallerIdentity = AwsFunctions.getCallerIdentity();\n\n final var currentRegion = AwsFunctions.getRegion();\n\n var foo = new OutboundConnection(\"foo\", OutboundConnectionArgs.builder() \n .connectionAlias(\"outbound_connection\")\n .connectionMode(\"DIRECT\")\n .localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder()\n .ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))\n .region(currentRegion.applyValue(getRegionResult -\u003e getRegionResult.name()))\n .domainName(aws_opensearch_domain.local_domain().domain_name())\n .build())\n .remoteDomainInfo(OutboundConnectionRemoteDomainInfoArgs.builder()\n .ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId()))\n .region(currentRegion.applyValue(getRegionResult -\u003e getRegionResult.name()))\n .domainName(aws_opensearch_domain.remote_domain().domain_name())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: aws:opensearch:OutboundConnection\n properties:\n connectionAlias: outbound_connection\n connectionMode: DIRECT\n localDomainInfo:\n ownerId: ${currentCallerIdentity.accountId}\n region: ${currentRegion.name}\n domainName: ${aws_opensearch_domain.local_domain.domain_name}\n remoteDomainInfo:\n ownerId: ${currentCallerIdentity.accountId}\n region: ${currentRegion.name}\n domainName: ${aws_opensearch_domain.remote_domain.domain_name}\nvariables:\n currentCallerIdentity:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n currentRegion:\n fn::invoke:\n Function: aws:getRegion\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import AWS Opensearch Outbound Connections using the Outbound Connection ID. For example:\n\n```sh\n $ pulumi import aws:opensearch/outboundConnection:OutboundConnection foo connection-id\n```\n ", "properties": { + "acceptConnection": { + "type": "boolean", + "description": "Accepts the connection.\n" + }, "connectionAlias": { "type": "string", "description": "Specifies the connection alias that will be used by the customer for this connection.\n" }, + "connectionMode": { + "type": "string", + "description": "Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`.\n" + }, + "connectionProperties": { + "$ref": "#/types/aws:opensearch/OutboundConnectionConnectionProperties:OutboundConnectionConnectionProperties", + "description": "Configuration block for the outbound connection.\n" + }, "connectionStatus": { "type": "string", "description": "Status of the connection request.\n" @@ -250727,16 +252181,31 @@ }, "required": [ "connectionAlias", + "connectionProperties", "connectionStatus", "localDomainInfo", "remoteDomainInfo" ], "inputProperties": { + "acceptConnection": { + "type": "boolean", + "description": "Accepts the connection.\n", + "willReplaceOnChanges": true + }, "connectionAlias": { "type": "string", "description": "Specifies the connection alias that will be used by the customer for this connection.\n", "willReplaceOnChanges": true }, + "connectionMode": { + "type": "string", + "description": "Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`.\n", + "willReplaceOnChanges": true + }, + "connectionProperties": { + "$ref": "#/types/aws:opensearch/OutboundConnectionConnectionProperties:OutboundConnectionConnectionProperties", + "description": "Configuration block for the outbound connection.\n" + }, "localDomainInfo": { "$ref": "#/types/aws:opensearch/OutboundConnectionLocalDomainInfo:OutboundConnectionLocalDomainInfo", "description": "Configuration block for the local Opensearch domain.\n", @@ -250756,11 +252225,25 @@ "stateInputs": { "description": "Input properties used for looking up and filtering OutboundConnection resources.\n", "properties": { + "acceptConnection": { + "type": "boolean", + "description": "Accepts the connection.\n", + "willReplaceOnChanges": true + }, "connectionAlias": { "type": "string", "description": "Specifies the connection alias that will be used by the customer for this connection.\n", "willReplaceOnChanges": true }, + "connectionMode": { + "type": "string", + "description": "Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`.\n", + "willReplaceOnChanges": true + }, + "connectionProperties": { + "$ref": "#/types/aws:opensearch/OutboundConnectionConnectionProperties:OutboundConnectionConnectionProperties", + "description": "Configuration block for the outbound connection.\n" + }, "connectionStatus": { "type": "string", "description": "Status of the connection request.\n" @@ -265426,6 +266909,271 @@ "type": "object" } }, + "aws:rds/customDbEngineVersion:CustomDbEngineVersion": { + "description": "Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### RDS Custom for Oracle Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {description: \"KMS symmetric key for RDS Custom for Oracle\"});\nconst exampleCustomDbEngineVersion = new aws.rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", {\n databaseInstallationFilesS3BucketName: \"DOC-EXAMPLE-BUCKET\",\n databaseInstallationFilesS3Prefix: \"1915_GI/\",\n engine: \"custom-oracle-ee-cdb\",\n engineVersion: \"19.cdb_cev1\",\n kmsKeyId: exampleKey.arn,\n manifest: ` {\n\t\"databaseInstallationFileNames\":[\"V982063-01.zip\"]\n }\n`,\n tags: {\n Name: \"example\",\n Key: \"value\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample_key = aws.kms.Key(\"exampleKey\", description=\"KMS symmetric key for RDS Custom for Oracle\")\nexample_custom_db_engine_version = aws.rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\",\n database_installation_files_s3_bucket_name=\"DOC-EXAMPLE-BUCKET\",\n database_installation_files_s3_prefix=\"1915_GI/\",\n engine=\"custom-oracle-ee-cdb\",\n engine_version=\"19.cdb_cev1\",\n kms_key_id=example_key.arn,\n manifest=\"\"\" {\n\t\"databaseInstallationFileNames\":[\"V982063-01.zip\"]\n }\n\"\"\",\n tags={\n \"Name\": \"example\",\n \"Key\": \"value\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"KMS symmetric key for RDS Custom for Oracle\",\n });\n\n var exampleCustomDbEngineVersion = new Aws.Rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", new()\n {\n DatabaseInstallationFilesS3BucketName = \"DOC-EXAMPLE-BUCKET\",\n DatabaseInstallationFilesS3Prefix = \"1915_GI/\",\n Engine = \"custom-oracle-ee-cdb\",\n EngineVersion = \"19.cdb_cev1\",\n KmsKeyId = exampleKey.Arn,\n Manifest = @\" {\n\t\"\"databaseInstallationFileNames\"\":[\"\"V982063-01.zip\"\"]\n }\n\",\n Tags = \n {\n { \"Name\", \"example\" },\n { \"Key\", \"value\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"KMS symmetric key for RDS Custom for Oracle\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rds.NewCustomDbEngineVersion(ctx, \"exampleCustomDbEngineVersion\", \u0026rds.CustomDbEngineVersionArgs{\n\t\t\tDatabaseInstallationFilesS3BucketName: pulumi.String(\"DOC-EXAMPLE-BUCKET\"),\n\t\t\tDatabaseInstallationFilesS3Prefix: pulumi.String(\"1915_GI/\"),\n\t\t\tEngine: pulumi.String(\"custom-oracle-ee-cdb\"),\n\t\t\tEngineVersion: pulumi.String(\"19.cdb_cev1\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t\tManifest: pulumi.String(\" {\\n\t\\\"databaseInstallationFileNames\\\":[\\\"V982063-01.zip\\\"]\\n }\\n\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Name\": pulumi.String(\"example\"),\n\t\t\t\t\"Key\": pulumi.String(\"value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.rds.CustomDbEngineVersion;\nimport com.pulumi.aws.rds.CustomDbEngineVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"KMS symmetric key for RDS Custom for Oracle\")\n .build());\n\n var exampleCustomDbEngineVersion = new CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", CustomDbEngineVersionArgs.builder() \n .databaseInstallationFilesS3BucketName(\"DOC-EXAMPLE-BUCKET\")\n .databaseInstallationFilesS3Prefix(\"1915_GI/\")\n .engine(\"custom-oracle-ee-cdb\")\n .engineVersion(\"19.cdb_cev1\")\n .kmsKeyId(exampleKey.arn())\n .manifest(\"\"\"\n {\n\t\"databaseInstallationFileNames\":[\"V982063-01.zip\"]\n }\n \"\"\")\n .tags(Map.ofEntries(\n Map.entry(\"Name\", \"example\"),\n Map.entry(\"Key\", \"value\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n description: KMS symmetric key for RDS Custom for Oracle\n exampleCustomDbEngineVersion:\n type: aws:rds:CustomDbEngineVersion\n properties:\n databaseInstallationFilesS3BucketName: DOC-EXAMPLE-BUCKET\n databaseInstallationFilesS3Prefix: 1915_GI/\n engine: custom-oracle-ee-cdb\n engineVersion: 19.cdb_cev1\n kmsKeyId: ${exampleKey.arn}\n manifest: |2\n {\n \t\"databaseInstallationFileNames\":[\"V982063-01.zip\"]\n }\n tags:\n Name: example\n Key: value\n```\n{{% /example %}}\n{{% example %}}\n### RDS Custom for Oracle External Manifest Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as crypto from \"crypto\";\nimport * as fs from \"fs\";\n\nfunction computeFilebase64sha256(path string) string {\n\tconst fileData = Buffer.from(fs.readFileSync(path), 'binary')\n\treturn crypto.createHash('sha256').update(fileData).digest('hex')\n}\n\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {description: \"KMS symmetric key for RDS Custom for Oracle\"});\nconst exampleCustomDbEngineVersion = new aws.rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", {\n databaseInstallationFilesS3BucketName: \"DOC-EXAMPLE-BUCKET\",\n databaseInstallationFilesS3Prefix: \"1915_GI/\",\n engine: \"custom-oracle-ee-cdb\",\n engineVersion: \"19.cdb_cev1\",\n kmsKeyId: exampleKey.arn,\n filename: \"manifest_1915_GI.json\",\n manifestHash: computeFilebase64sha256(manifest_1915_GI.json),\n tags: {\n Name: \"example\",\n Key: \"value\",\n },\n});\n```\n```python\nimport pulumi\nimport base64\nimport hashlib\nimport pulumi_aws as aws\n\ndef computeFilebase64sha256(path):\n\tfileData = open(path).read().encode()\n\thashedData = hashlib.sha256(fileData.encode()).digest()\n\treturn base64.b64encode(hashedData).decode()\n\nexample_key = aws.kms.Key(\"exampleKey\", description=\"KMS symmetric key for RDS Custom for Oracle\")\nexample_custom_db_engine_version = aws.rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\",\n database_installation_files_s3_bucket_name=\"DOC-EXAMPLE-BUCKET\",\n database_installation_files_s3_prefix=\"1915_GI/\",\n engine=\"custom-oracle-ee-cdb\",\n engine_version=\"19.cdb_cev1\",\n kms_key_id=example_key.arn,\n filename=\"manifest_1915_GI.json\",\n manifest_hash=computeFilebase64sha256(manifest_1915__gi[\"json\"]),\n tags={\n \"Name\": \"example\",\n \"Key\": \"value\",\n })\n```\n```csharp\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Security.Cryptography;\nusing System.Text;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\n\tprivate static string ComputeFileBase64Sha256(string path) {\n\t\tvar fileData = System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path));\n\t\tvar hashData = SHA256.Create().ComputeHash(fileData);\n\t\treturn Convert.ToBase64String(hashData);\n\t}\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n Description = \"KMS symmetric key for RDS Custom for Oracle\",\n });\n\n var exampleCustomDbEngineVersion = new Aws.Rds.CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", new()\n {\n DatabaseInstallationFilesS3BucketName = \"DOC-EXAMPLE-BUCKET\",\n DatabaseInstallationFilesS3Prefix = \"1915_GI/\",\n Engine = \"custom-oracle-ee-cdb\",\n EngineVersion = \"19.cdb_cev1\",\n KmsKeyId = exampleKey.Arn,\n Filename = \"manifest_1915_GI.json\",\n ManifestHash = ComputeFileBase64Sha256(manifest_1915_GI.Json),\n Tags = \n {\n { \"Name\", \"example\" },\n { \"Key\", \"value\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"crypto/sha256\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc filebase64sha256OrPanic(path string) pulumi.StringPtrInput {\n\tif fileData, err := os.ReadFile(path); err == nil {\n\t\thashedData := sha256.Sum256([]byte(fileData))\n\t\treturn pulumi.String(base64.StdEncoding.EncodeToString(hashedData[:]))\n\t} else {\n\t\tpanic(err.Error())\n\t}\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tDescription: pulumi.String(\"KMS symmetric key for RDS Custom for Oracle\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rds.NewCustomDbEngineVersion(ctx, \"exampleCustomDbEngineVersion\", \u0026rds.CustomDbEngineVersionArgs{\n\t\t\tDatabaseInstallationFilesS3BucketName: pulumi.String(\"DOC-EXAMPLE-BUCKET\"),\n\t\t\tDatabaseInstallationFilesS3Prefix: pulumi.String(\"1915_GI/\"),\n\t\t\tEngine: pulumi.String(\"custom-oracle-ee-cdb\"),\n\t\t\tEngineVersion: pulumi.String(\"19.cdb_cev1\"),\n\t\t\tKmsKeyId: exampleKey.Arn,\n\t\t\tFilename: pulumi.String(\"manifest_1915_GI.json\"),\n\t\t\tManifestHash: filebase64sha256OrPanic(manifest_1915_GI.Json),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"Name\": pulumi.String(\"example\"),\n\t\t\t\t\"Key\": pulumi.String(\"value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.rds.CustomDbEngineVersion;\nimport com.pulumi.aws.rds.CustomDbEngineVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .description(\"KMS symmetric key for RDS Custom for Oracle\")\n .build());\n\n var exampleCustomDbEngineVersion = new CustomDbEngineVersion(\"exampleCustomDbEngineVersion\", CustomDbEngineVersionArgs.builder() \n .databaseInstallationFilesS3BucketName(\"DOC-EXAMPLE-BUCKET\")\n .databaseInstallationFilesS3Prefix(\"1915_GI/\")\n .engine(\"custom-oracle-ee-cdb\")\n .engineVersion(\"19.cdb_cev1\")\n .kmsKeyId(exampleKey.arn())\n .filename(\"manifest_1915_GI.json\")\n .manifestHash(computeFileBase64Sha256(manifest_1915_GI.json()))\n .tags(Map.ofEntries(\n Map.entry(\"Name\", \"example\"),\n Map.entry(\"Key\", \"value\")\n ))\n .build());\n\n }\n}\n```\n{{% /example %}}\n{{% example %}}\n### RDS Custom for SQL Server Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\n// CEV creation requires an AMI owned by the operator\nconst test = new aws.rds.CustomDbEngineVersion(\"test\", {\n engine: \"custom-sqlserver-se\",\n engineVersion: \"15.00.4249.2.cev-1\",\n sourceImageId: \"ami-0aa12345678a12ab1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\n# CEV creation requires an AMI owned by the operator\ntest = aws.rds.CustomDbEngineVersion(\"test\",\n engine=\"custom-sqlserver-se\",\n engine_version=\"15.00.4249.2.cev-1\",\n source_image_id=\"ami-0aa12345678a12ab1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // CEV creation requires an AMI owned by the operator\n var test = new Aws.Rds.CustomDbEngineVersion(\"test\", new()\n {\n Engine = \"custom-sqlserver-se\",\n EngineVersion = \"15.00.4249.2.cev-1\",\n SourceImageId = \"ami-0aa12345678a12ab1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := rds.NewCustomDbEngineVersion(ctx, \"test\", \u0026rds.CustomDbEngineVersionArgs{\n\t\t\tEngine: pulumi.String(\"custom-sqlserver-se\"),\n\t\t\tEngineVersion: pulumi.String(\"15.00.4249.2.cev-1\"),\n\t\t\tSourceImageId: pulumi.String(\"ami-0aa12345678a12ab1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.rds.CustomDbEngineVersion;\nimport com.pulumi.aws.rds.CustomDbEngineVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new CustomDbEngineVersion(\"test\", CustomDbEngineVersionArgs.builder() \n .engine(\"custom-sqlserver-se\")\n .engineVersion(\"15.00.4249.2.cev-1\")\n .sourceImageId(\"ami-0aa12345678a12ab1\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # CEV creation requires an AMI owned by the operator\n test:\n type: aws:rds:CustomDbEngineVersion\n properties:\n engine: custom-sqlserver-se\n engineVersion: 15.00.4249.2.cev-1\n sourceImageId: ami-0aa12345678a12ab1\n```\n{{% /example %}}\n{{% example %}}\n### RDS Custom for SQL Server Usage with AMI from another region\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.ec2.AmiCopy(\"example\", {\n description: \"A copy of ami-xxxxxxxx\",\n sourceAmiId: \"ami-xxxxxxxx\",\n sourceAmiRegion: \"us-east-1\",\n});\n// CEV creation requires an AMI owned by the operator\nconst test = new aws.rds.CustomDbEngineVersion(\"test\", {\n engine: \"custom-sqlserver-se\",\n engineVersion: \"15.00.4249.2.cev-1\",\n sourceImageId: example.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.ec2.AmiCopy(\"example\",\n description=\"A copy of ami-xxxxxxxx\",\n source_ami_id=\"ami-xxxxxxxx\",\n source_ami_region=\"us-east-1\")\n# CEV creation requires an AMI owned by the operator\ntest = aws.rds.CustomDbEngineVersion(\"test\",\n engine=\"custom-sqlserver-se\",\n engine_version=\"15.00.4249.2.cev-1\",\n source_image_id=example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.Ec2.AmiCopy(\"example\", new()\n {\n Description = \"A copy of ami-xxxxxxxx\",\n SourceAmiId = \"ami-xxxxxxxx\",\n SourceAmiRegion = \"us-east-1\",\n });\n\n // CEV creation requires an AMI owned by the operator\n var test = new Aws.Rds.CustomDbEngineVersion(\"test\", new()\n {\n Engine = \"custom-sqlserver-se\",\n EngineVersion = \"15.00.4249.2.cev-1\",\n SourceImageId = example.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := ec2.NewAmiCopy(ctx, \"example\", \u0026ec2.AmiCopyArgs{\n\t\t\tDescription: pulumi.String(\"A copy of ami-xxxxxxxx\"),\n\t\t\tSourceAmiId: pulumi.String(\"ami-xxxxxxxx\"),\n\t\t\tSourceAmiRegion: pulumi.String(\"us-east-1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rds.NewCustomDbEngineVersion(ctx, \"test\", \u0026rds.CustomDbEngineVersionArgs{\n\t\t\tEngine: pulumi.String(\"custom-sqlserver-se\"),\n\t\t\tEngineVersion: pulumi.String(\"15.00.4249.2.cev-1\"),\n\t\t\tSourceImageId: example.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.ec2.AmiCopy;\nimport com.pulumi.aws.ec2.AmiCopyArgs;\nimport com.pulumi.aws.rds.CustomDbEngineVersion;\nimport com.pulumi.aws.rds.CustomDbEngineVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new AmiCopy(\"example\", AmiCopyArgs.builder() \n .description(\"A copy of ami-xxxxxxxx\")\n .sourceAmiId(\"ami-xxxxxxxx\")\n .sourceAmiRegion(\"us-east-1\")\n .build());\n\n var test = new CustomDbEngineVersion(\"test\", CustomDbEngineVersionArgs.builder() \n .engine(\"custom-sqlserver-se\")\n .engineVersion(\"15.00.4249.2.cev-1\")\n .sourceImageId(example.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:ec2:AmiCopy\n properties:\n description: A copy of ami-xxxxxxxx\n sourceAmiId: ami-xxxxxxxx\n sourceAmiRegion: us-east-1\n # CEV creation requires an AMI owned by the operator\n test:\n type: aws:rds:CustomDbEngineVersion\n properties:\n engine: custom-sqlserver-se\n engineVersion: 15.00.4249.2.cev-1\n sourceImageId: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIn TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import {\n\n to = aws_rds_custom_db_engine_version.example\n\n id = \"custom-oracle-ee-cdb:19.cdb_cev1\" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 ", + "properties": { + "arn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) for the custom engine version.\n" + }, + "createTime": { + "type": "string", + "description": "The date and time that the CEV was created.\n" + }, + "databaseInstallationFilesS3BucketName": { + "type": "string", + "description": "The name of the Amazon S3 bucket that contains the database installation files.\n" + }, + "databaseInstallationFilesS3Prefix": { + "type": "string", + "description": "The prefix for the Amazon S3 bucket that contains the database installation files.\n" + }, + "dbParameterGroupFamily": { + "type": "string", + "description": "The name of the DB parameter group family for the CEV.\n" + }, + "description": { + "type": "string", + "description": "The description of the CEV.\n" + }, + "engine": { + "type": "string", + "description": "The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`.\n" + }, + "engineVersion": { + "type": "string", + "description": "The version of the database engine.\n" + }, + "filename": { + "type": "string", + "description": "The name of the manifest file within the local filesystem. Conflicts with `manifest`.\n" + }, + "imageId": { + "type": "string", + "description": "The ID of the AMI that was created with the CEV.\n" + }, + "kmsKeyId": { + "type": "string", + "description": "The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle.\n" + }, + "majorEngineVersion": { + "type": "string", + "description": "The major version of the database engine.\n" + }, + "manifest": { + "type": "string", + "description": "The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`.\n" + }, + "manifestComputed": { + "type": "string", + "description": "The returned manifest file, in JSON format, service generated and often different from input `manifest`.\n" + }, + "manifestHash": { + "type": "string", + "description": "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256(\"manifest.json\") where \"manifest.json\" is the local filename of the manifest source.\n" + }, + "sourceImageId": { + "type": "string", + "description": "The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV.\n" + }, + "status": { + "type": "string", + "description": "The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.\n", + "deprecationMessage": "Please use `tags` instead.", + "secret": true + } + }, + "required": [ + "arn", + "createTime", + "dbParameterGroupFamily", + "engine", + "engineVersion", + "imageId", + "kmsKeyId", + "majorEngineVersion", + "manifestComputed", + "status", + "tagsAll" + ], + "inputProperties": { + "databaseInstallationFilesS3BucketName": { + "type": "string", + "description": "The name of the Amazon S3 bucket that contains the database installation files.\n", + "willReplaceOnChanges": true + }, + "databaseInstallationFilesS3Prefix": { + "type": "string", + "description": "The prefix for the Amazon S3 bucket that contains the database installation files.\n", + "willReplaceOnChanges": true + }, + "description": { + "type": "string", + "description": "The description of the CEV.\n" + }, + "engine": { + "type": "string", + "description": "The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`.\n", + "willReplaceOnChanges": true + }, + "engineVersion": { + "type": "string", + "description": "The version of the database engine.\n", + "willReplaceOnChanges": true + }, + "filename": { + "type": "string", + "description": "The name of the manifest file within the local filesystem. Conflicts with `manifest`.\n", + "willReplaceOnChanges": true + }, + "kmsKeyId": { + "type": "string", + "description": "The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle.\n", + "willReplaceOnChanges": true + }, + "manifest": { + "type": "string", + "description": "The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`.\n", + "willReplaceOnChanges": true + }, + "manifestHash": { + "type": "string", + "description": "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256(\"manifest.json\") where \"manifest.json\" is the local filename of the manifest source.\n" + }, + "sourceImageId": { + "type": "string", + "description": "The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV.\n", + "willReplaceOnChanges": true + }, + "status": { + "type": "string", + "description": "The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + } + }, + "requiredInputs": [ + "engine", + "engineVersion" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering CustomDbEngineVersion resources.\n", + "properties": { + "arn": { + "type": "string", + "description": "The Amazon Resource Name (ARN) for the custom engine version.\n" + }, + "createTime": { + "type": "string", + "description": "The date and time that the CEV was created.\n" + }, + "databaseInstallationFilesS3BucketName": { + "type": "string", + "description": "The name of the Amazon S3 bucket that contains the database installation files.\n", + "willReplaceOnChanges": true + }, + "databaseInstallationFilesS3Prefix": { + "type": "string", + "description": "The prefix for the Amazon S3 bucket that contains the database installation files.\n", + "willReplaceOnChanges": true + }, + "dbParameterGroupFamily": { + "type": "string", + "description": "The name of the DB parameter group family for the CEV.\n" + }, + "description": { + "type": "string", + "description": "The description of the CEV.\n" + }, + "engine": { + "type": "string", + "description": "The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`.\n", + "willReplaceOnChanges": true + }, + "engineVersion": { + "type": "string", + "description": "The version of the database engine.\n", + "willReplaceOnChanges": true + }, + "filename": { + "type": "string", + "description": "The name of the manifest file within the local filesystem. Conflicts with `manifest`.\n", + "willReplaceOnChanges": true + }, + "imageId": { + "type": "string", + "description": "The ID of the AMI that was created with the CEV.\n" + }, + "kmsKeyId": { + "type": "string", + "description": "The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle.\n", + "willReplaceOnChanges": true + }, + "majorEngineVersion": { + "type": "string", + "description": "The major version of the database engine.\n" + }, + "manifest": { + "type": "string", + "description": "The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`.\n", + "willReplaceOnChanges": true + }, + "manifestComputed": { + "type": "string", + "description": "The returned manifest file, in JSON format, service generated and often different from input `manifest`.\n" + }, + "manifestHash": { + "type": "string", + "description": "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256(\"manifest.json\") where \"manifest.json\" is the local filename of the manifest source.\n" + }, + "sourceImageId": { + "type": "string", + "description": "The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV.\n", + "willReplaceOnChanges": true + }, + "status": { + "type": "string", + "description": "The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.\n" + }, + "tagsAll": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.\n", + "deprecationMessage": "Please use `tags` instead.", + "secret": true + } + }, + "type": "object" + } + }, "aws:rds/eventSubscription:EventSubscription": { "description": "Provides a DB event subscription resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst defaultInstance = new aws.rds.Instance(\"defaultInstance\", {\n allocatedStorage: 10,\n engine: \"mysql\",\n engineVersion: \"5.6.17\",\n instanceClass: \"db.t2.micro\",\n dbName: \"mydb\",\n username: \"foo\",\n password: \"bar\",\n dbSubnetGroupName: \"my_database_subnet_group\",\n parameterGroupName: \"default.mysql5.6\",\n});\nconst defaultTopic = new aws.sns.Topic(\"defaultTopic\", {});\nconst defaultEventSubscription = new aws.rds.EventSubscription(\"defaultEventSubscription\", {\n snsTopic: defaultTopic.arn,\n sourceType: \"db-instance\",\n sourceIds: [defaultInstance.identifier],\n eventCategories: [\n \"availability\",\n \"deletion\",\n \"failover\",\n \"failure\",\n \"low storage\",\n \"maintenance\",\n \"notification\",\n \"read replica\",\n \"recovery\",\n \"restoration\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\ndefault_instance = aws.rds.Instance(\"defaultInstance\",\n allocated_storage=10,\n engine=\"mysql\",\n engine_version=\"5.6.17\",\n instance_class=\"db.t2.micro\",\n db_name=\"mydb\",\n username=\"foo\",\n password=\"bar\",\n db_subnet_group_name=\"my_database_subnet_group\",\n parameter_group_name=\"default.mysql5.6\")\ndefault_topic = aws.sns.Topic(\"defaultTopic\")\ndefault_event_subscription = aws.rds.EventSubscription(\"defaultEventSubscription\",\n sns_topic=default_topic.arn,\n source_type=\"db-instance\",\n source_ids=[default_instance.identifier],\n event_categories=[\n \"availability\",\n \"deletion\",\n \"failover\",\n \"failure\",\n \"low storage\",\n \"maintenance\",\n \"notification\",\n \"read replica\",\n \"recovery\",\n \"restoration\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var defaultInstance = new Aws.Rds.Instance(\"defaultInstance\", new()\n {\n AllocatedStorage = 10,\n Engine = \"mysql\",\n EngineVersion = \"5.6.17\",\n InstanceClass = \"db.t2.micro\",\n DbName = \"mydb\",\n Username = \"foo\",\n Password = \"bar\",\n DbSubnetGroupName = \"my_database_subnet_group\",\n ParameterGroupName = \"default.mysql5.6\",\n });\n\n var defaultTopic = new Aws.Sns.Topic(\"defaultTopic\");\n\n var defaultEventSubscription = new Aws.Rds.EventSubscription(\"defaultEventSubscription\", new()\n {\n SnsTopic = defaultTopic.Arn,\n SourceType = \"db-instance\",\n SourceIds = new[]\n {\n defaultInstance.Identifier,\n },\n EventCategories = new[]\n {\n \"availability\",\n \"deletion\",\n \"failover\",\n \"failure\",\n \"low storage\",\n \"maintenance\",\n \"notification\",\n \"read replica\",\n \"recovery\",\n \"restoration\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sns\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdefaultInstance, err := rds.NewInstance(ctx, \"defaultInstance\", \u0026rds.InstanceArgs{\n\t\t\tAllocatedStorage: pulumi.Int(10),\n\t\t\tEngine: pulumi.String(\"mysql\"),\n\t\t\tEngineVersion: pulumi.String(\"5.6.17\"),\n\t\t\tInstanceClass: pulumi.String(\"db.t2.micro\"),\n\t\t\tDbName: pulumi.String(\"mydb\"),\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"bar\"),\n\t\t\tDbSubnetGroupName: pulumi.String(\"my_database_subnet_group\"),\n\t\t\tParameterGroupName: pulumi.String(\"default.mysql5.6\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdefaultTopic, err := sns.NewTopic(ctx, \"defaultTopic\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rds.NewEventSubscription(ctx, \"defaultEventSubscription\", \u0026rds.EventSubscriptionArgs{\n\t\t\tSnsTopic: defaultTopic.Arn,\n\t\t\tSourceType: pulumi.String(\"db-instance\"),\n\t\t\tSourceIds: pulumi.StringArray{\n\t\t\t\tdefaultInstance.Identifier,\n\t\t\t},\n\t\t\tEventCategories: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"availability\"),\n\t\t\t\tpulumi.String(\"deletion\"),\n\t\t\t\tpulumi.String(\"failover\"),\n\t\t\t\tpulumi.String(\"failure\"),\n\t\t\t\tpulumi.String(\"low storage\"),\n\t\t\t\tpulumi.String(\"maintenance\"),\n\t\t\t\tpulumi.String(\"notification\"),\n\t\t\t\tpulumi.String(\"read replica\"),\n\t\t\t\tpulumi.String(\"recovery\"),\n\t\t\t\tpulumi.String(\"restoration\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.rds.Instance;\nimport com.pulumi.aws.rds.InstanceArgs;\nimport com.pulumi.aws.sns.Topic;\nimport com.pulumi.aws.rds.EventSubscription;\nimport com.pulumi.aws.rds.EventSubscriptionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var defaultInstance = new Instance(\"defaultInstance\", InstanceArgs.builder() \n .allocatedStorage(10)\n .engine(\"mysql\")\n .engineVersion(\"5.6.17\")\n .instanceClass(\"db.t2.micro\")\n .dbName(\"mydb\")\n .username(\"foo\")\n .password(\"bar\")\n .dbSubnetGroupName(\"my_database_subnet_group\")\n .parameterGroupName(\"default.mysql5.6\")\n .build());\n\n var defaultTopic = new Topic(\"defaultTopic\");\n\n var defaultEventSubscription = new EventSubscription(\"defaultEventSubscription\", EventSubscriptionArgs.builder() \n .snsTopic(defaultTopic.arn())\n .sourceType(\"db-instance\")\n .sourceIds(defaultInstance.identifier())\n .eventCategories( \n \"availability\",\n \"deletion\",\n \"failover\",\n \"failure\",\n \"low storage\",\n \"maintenance\",\n \"notification\",\n \"read replica\",\n \"recovery\",\n \"restoration\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n defaultInstance:\n type: aws:rds:Instance\n properties:\n allocatedStorage: 10\n engine: mysql\n engineVersion: 5.6.17\n instanceClass: db.t2.micro\n dbName: mydb\n username: foo\n password: bar\n dbSubnetGroupName: my_database_subnet_group\n parameterGroupName: default.mysql5.6\n defaultTopic:\n type: aws:sns:Topic\n defaultEventSubscription:\n type: aws:rds:EventSubscription\n properties:\n snsTopic: ${defaultTopic.arn}\n sourceType: db-instance\n sourceIds:\n - ${defaultInstance.identifier}\n eventCategories:\n - availability\n - deletion\n - failover\n - failure\n - low storage\n - maintenance\n - notification\n - read replica\n - recovery\n - restoration\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import DB Event Subscriptions using the `name`. For example:\n\n```sh\n $ pulumi import aws:rds/eventSubscription:EventSubscription default rds-event-sub\n```\n ", "properties": { @@ -273647,7 +275395,7 @@ } }, "aws:route53/hostedZoneDnsSec:HostedZoneDnsSec": { - "description": "Manages Route 53 Hosted Zone Domain Name System Security Extensions (DNSSEC). For more information about managing DNSSEC in Route 53, see the [Route 53 Developer Guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec.html).\n\n!\u003e **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst current = aws.getCallerIdentity({});\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n customerMasterKeySpec: \"ECC_NIST_P256\",\n deletionWindowInDays: 7,\n keyUsage: \"SIGN_VERIFY\",\n policy: current.then(current =\u003e JSON.stringify({\n Statement: [\n {\n Action: [\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n ],\n Effect: \"Allow\",\n Principal: {\n Service: \"dnssec-route53.amazonaws.com\",\n },\n Resource: \"*\",\n Sid: \"Allow Route 53 DNSSEC Service\",\n },\n {\n Action: \"kms:*\",\n Effect: \"Allow\",\n Principal: {\n AWS: `arn:aws:iam::${current.accountId}:root`,\n },\n Resource: \"*\",\n Sid: \"Enable IAM User Permissions\",\n },\n ],\n Version: \"2012-10-17\",\n })),\n});\nconst exampleZone = new aws.route53.Zone(\"exampleZone\", {});\nconst exampleKeySigningKey = new aws.route53.KeySigningKey(\"exampleKeySigningKey\", {\n hostedZoneId: exampleZone.id,\n keyManagementServiceArn: exampleKey.arn,\n});\nconst exampleHostedZoneDnsSec = new aws.route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", {hostedZoneId: exampleKeySigningKey.hostedZoneId}, {\n dependsOn: [exampleKeySigningKey],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\ncurrent = aws.get_caller_identity()\nexample_key = aws.kms.Key(\"exampleKey\",\n customer_master_key_spec=\"ECC_NIST_P256\",\n deletion_window_in_days=7,\n key_usage=\"SIGN_VERIFY\",\n policy=json.dumps({\n \"Statement\": [\n {\n \"Action\": [\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n ],\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"Service\": \"dnssec-route53.amazonaws.com\",\n },\n \"Resource\": \"*\",\n \"Sid\": \"Allow Route 53 DNSSEC Service\",\n },\n {\n \"Action\": \"kms:*\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": f\"arn:aws:iam::{current.account_id}:root\",\n },\n \"Resource\": \"*\",\n \"Sid\": \"Enable IAM User Permissions\",\n },\n ],\n \"Version\": \"2012-10-17\",\n }))\nexample_zone = aws.route53.Zone(\"exampleZone\")\nexample_key_signing_key = aws.route53.KeySigningKey(\"exampleKeySigningKey\",\n hosted_zone_id=example_zone.id,\n key_management_service_arn=example_key.arn)\nexample_hosted_zone_dns_sec = aws.route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", hosted_zone_id=example_key_signing_key.hosted_zone_id,\nopts=pulumi.ResourceOptions(depends_on=[example_key_signing_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Aws.GetCallerIdentity.Invoke();\n\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n CustomerMasterKeySpec = \"ECC_NIST_P256\",\n DeletionWindowInDays = 7,\n KeyUsage = \"SIGN_VERIFY\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"dnssec-route53.amazonaws.com\",\n },\n [\"Resource\"] = \"*\",\n [\"Sid\"] = \"Allow Route 53 DNSSEC Service\",\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = \"kms:*\",\n [\"Effect\"] = \"Allow\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = $\"arn:aws:iam::{current.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId)}:root\",\n },\n [\"Resource\"] = \"*\",\n [\"Sid\"] = \"Enable IAM User Permissions\",\n },\n },\n [\"Version\"] = \"2012-10-17\",\n }),\n });\n\n var exampleZone = new Aws.Route53.Zone(\"exampleZone\");\n\n var exampleKeySigningKey = new Aws.Route53.KeySigningKey(\"exampleKeySigningKey\", new()\n {\n HostedZoneId = exampleZone.Id,\n KeyManagementServiceArn = exampleKey.Arn,\n });\n\n var exampleHostedZoneDnsSec = new Aws.Route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", new()\n {\n HostedZoneId = exampleKeySigningKey.HostedZoneId,\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleKeySigningKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Statement\": []interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"kms:DescribeKey\",\n\t\t\t\t\t\t\"kms:GetPublicKey\",\n\t\t\t\t\t\t\"kms:Sign\",\n\t\t\t\t\t\t\"kms:Verify\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"dnssec-route53.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t\t\"Sid\": \"Allow Route 53 DNSSEC Service\",\n\t\t\t\t},\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": \"kms:*\",\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": fmt.Sprintf(\"arn:aws:iam::%v:root\", current.AccountId),\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t\t\"Sid\": \"Enable IAM User Permissions\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tCustomerMasterKeySpec: pulumi.String(\"ECC_NIST_P256\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t\tKeyUsage: pulumi.String(\"SIGN_VERIFY\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleZone, err := route53.NewZone(ctx, \"exampleZone\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKeySigningKey, err := route53.NewKeySigningKey(ctx, \"exampleKeySigningKey\", \u0026route53.KeySigningKeyArgs{\n\t\t\tHostedZoneId: exampleZone.ID(),\n\t\t\tKeyManagementServiceArn: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = route53.NewHostedZoneDnsSec(ctx, \"exampleHostedZoneDnsSec\", \u0026route53.HostedZoneDnsSecArgs{\n\t\t\tHostedZoneId: exampleKeySigningKey.HostedZoneId,\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleKeySigningKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.route53.Zone;\nimport com.pulumi.aws.route53.KeySigningKey;\nimport com.pulumi.aws.route53.KeySigningKeyArgs;\nimport com.pulumi.aws.route53.HostedZoneDnsSec;\nimport com.pulumi.aws.route53.HostedZoneDnsSecArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var current = AwsFunctions.getCallerIdentity();\n\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .customerMasterKeySpec(\"ECC_NIST_P256\")\n .deletionWindowInDays(7)\n .keyUsage(\"SIGN_VERIFY\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Statement\", jsonArray(\n jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"kms:DescribeKey\", \n \"kms:GetPublicKey\", \n \"kms:Sign\", \n \"kms:Verify\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"dnssec-route53.amazonaws.com\")\n )),\n jsonProperty(\"Resource\", \"*\"),\n jsonProperty(\"Sid\", \"Allow Route 53 DNSSEC Service\")\n ), \n jsonObject(\n jsonProperty(\"Action\", \"kms:*\"),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", String.format(\"arn:aws:iam::%s:root\", current.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId())))\n )),\n jsonProperty(\"Resource\", \"*\"),\n jsonProperty(\"Sid\", \"Enable IAM User Permissions\")\n )\n )),\n jsonProperty(\"Version\", \"2012-10-17\")\n )))\n .build());\n\n var exampleZone = new Zone(\"exampleZone\");\n\n var exampleKeySigningKey = new KeySigningKey(\"exampleKeySigningKey\", KeySigningKeyArgs.builder() \n .hostedZoneId(exampleZone.id())\n .keyManagementServiceArn(exampleKey.arn())\n .build());\n\n var exampleHostedZoneDnsSec = new HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", HostedZoneDnsSecArgs.builder() \n .hostedZoneId(exampleKeySigningKey.hostedZoneId())\n .build(), CustomResourceOptions.builder()\n .dependsOn(exampleKeySigningKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n customerMasterKeySpec: ECC_NIST_P256\n deletionWindowInDays: 7\n keyUsage: SIGN_VERIFY\n policy:\n fn::toJSON:\n Statement:\n - Action:\n - kms:DescribeKey\n - kms:GetPublicKey\n - kms:Sign\n - kms:Verify\n Effect: Allow\n Principal:\n Service: dnssec-route53.amazonaws.com\n Resource: '*'\n Sid: Allow Route 53 DNSSEC Service\n - Action: kms:*\n Effect: Allow\n Principal:\n AWS: arn:aws:iam::${current.accountId}:root\n Resource: '*'\n Sid: Enable IAM User Permissions\n Version: 2012-10-17\n exampleZone:\n type: aws:route53:Zone\n exampleKeySigningKey:\n type: aws:route53:KeySigningKey\n properties:\n hostedZoneId: ${exampleZone.id}\n keyManagementServiceArn: ${exampleKey.arn}\n exampleHostedZoneDnsSec:\n type: aws:route53:HostedZoneDnsSec\n properties:\n hostedZoneId: ${exampleKeySigningKey.hostedZoneId}\n options:\n dependson:\n - ${exampleKeySigningKey}\nvariables:\n current:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import `aws_route53_hosted_zone_dnssec` resources using the Route 53 Hosted Zone identifier. For example:\n\n```sh\n $ pulumi import aws:route53/hostedZoneDnsSec:HostedZoneDnsSec example Z1D633PJN98FT9\n```\n ", + "description": "Manages Route 53 Hosted Zone Domain Name System Security Extensions (DNSSEC). For more information about managing DNSSEC in Route 53, see the [Route 53 Developer Guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec.html).\n\n!\u003e **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone.\n\n\u003e **Note:** Route53 hosted zones are global resources, and as such any `aws.kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `aws.kms.Key` resource as described in the provider alias documentation.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst current = aws.getCallerIdentity({});\nconst exampleKey = new aws.kms.Key(\"exampleKey\", {\n customerMasterKeySpec: \"ECC_NIST_P256\",\n deletionWindowInDays: 7,\n keyUsage: \"SIGN_VERIFY\",\n policy: current.then(current =\u003e JSON.stringify({\n Statement: [\n {\n Action: [\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n ],\n Effect: \"Allow\",\n Principal: {\n Service: \"dnssec-route53.amazonaws.com\",\n },\n Resource: \"*\",\n Sid: \"Allow Route 53 DNSSEC Service\",\n },\n {\n Action: \"kms:*\",\n Effect: \"Allow\",\n Principal: {\n AWS: `arn:aws:iam::${current.accountId}:root`,\n },\n Resource: \"*\",\n Sid: \"Enable IAM User Permissions\",\n },\n ],\n Version: \"2012-10-17\",\n })),\n});\nconst exampleZone = new aws.route53.Zone(\"exampleZone\", {});\nconst exampleKeySigningKey = new aws.route53.KeySigningKey(\"exampleKeySigningKey\", {\n hostedZoneId: exampleZone.id,\n keyManagementServiceArn: exampleKey.arn,\n});\nconst exampleHostedZoneDnsSec = new aws.route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", {hostedZoneId: exampleKeySigningKey.hostedZoneId}, {\n dependsOn: [exampleKeySigningKey],\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\n\ncurrent = aws.get_caller_identity()\nexample_key = aws.kms.Key(\"exampleKey\",\n customer_master_key_spec=\"ECC_NIST_P256\",\n deletion_window_in_days=7,\n key_usage=\"SIGN_VERIFY\",\n policy=json.dumps({\n \"Statement\": [\n {\n \"Action\": [\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n ],\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"Service\": \"dnssec-route53.amazonaws.com\",\n },\n \"Resource\": \"*\",\n \"Sid\": \"Allow Route 53 DNSSEC Service\",\n },\n {\n \"Action\": \"kms:*\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"AWS\": f\"arn:aws:iam::{current.account_id}:root\",\n },\n \"Resource\": \"*\",\n \"Sid\": \"Enable IAM User Permissions\",\n },\n ],\n \"Version\": \"2012-10-17\",\n }))\nexample_zone = aws.route53.Zone(\"exampleZone\")\nexample_key_signing_key = aws.route53.KeySigningKey(\"exampleKeySigningKey\",\n hosted_zone_id=example_zone.id,\n key_management_service_arn=example_key.arn)\nexample_hosted_zone_dns_sec = aws.route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", hosted_zone_id=example_key_signing_key.hosted_zone_id,\nopts=pulumi.ResourceOptions(depends_on=[example_key_signing_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Aws.GetCallerIdentity.Invoke();\n\n var exampleKey = new Aws.Kms.Key(\"exampleKey\", new()\n {\n CustomerMasterKeySpec = \"ECC_NIST_P256\",\n DeletionWindowInDays = 7,\n KeyUsage = \"SIGN_VERIFY\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"kms:DescribeKey\",\n \"kms:GetPublicKey\",\n \"kms:Sign\",\n \"kms:Verify\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"Service\"] = \"dnssec-route53.amazonaws.com\",\n },\n [\"Resource\"] = \"*\",\n [\"Sid\"] = \"Allow Route 53 DNSSEC Service\",\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = \"kms:*\",\n [\"Effect\"] = \"Allow\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = $\"arn:aws:iam::{current.Apply(getCallerIdentityResult =\u003e getCallerIdentityResult.AccountId)}:root\",\n },\n [\"Resource\"] = \"*\",\n [\"Sid\"] = \"Enable IAM User Permissions\",\n },\n },\n [\"Version\"] = \"2012-10-17\",\n }),\n });\n\n var exampleZone = new Aws.Route53.Zone(\"exampleZone\");\n\n var exampleKeySigningKey = new Aws.Route53.KeySigningKey(\"exampleKeySigningKey\", new()\n {\n HostedZoneId = exampleZone.Id,\n KeyManagementServiceArn = exampleKey.Arn,\n });\n\n var exampleHostedZoneDnsSec = new Aws.Route53.HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", new()\n {\n HostedZoneId = exampleKeySigningKey.HostedZoneId,\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n exampleKeySigningKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := aws.GetCallerIdentity(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Statement\": []interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"kms:DescribeKey\",\n\t\t\t\t\t\t\"kms:GetPublicKey\",\n\t\t\t\t\t\t\"kms:Sign\",\n\t\t\t\t\t\t\"kms:Verify\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"Service\": \"dnssec-route53.amazonaws.com\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t\t\"Sid\": \"Allow Route 53 DNSSEC Service\",\n\t\t\t\t},\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": \"kms:*\",\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": fmt.Sprintf(\"arn:aws:iam::%v:root\", current.AccountId),\n\t\t\t\t\t},\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t\t\"Sid\": \"Enable IAM User Permissions\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\texampleKey, err := kms.NewKey(ctx, \"exampleKey\", \u0026kms.KeyArgs{\n\t\t\tCustomerMasterKeySpec: pulumi.String(\"ECC_NIST_P256\"),\n\t\t\tDeletionWindowInDays: pulumi.Int(7),\n\t\t\tKeyUsage: pulumi.String(\"SIGN_VERIFY\"),\n\t\t\tPolicy: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleZone, err := route53.NewZone(ctx, \"exampleZone\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleKeySigningKey, err := route53.NewKeySigningKey(ctx, \"exampleKeySigningKey\", \u0026route53.KeySigningKeyArgs{\n\t\t\tHostedZoneId: exampleZone.ID(),\n\t\t\tKeyManagementServiceArn: exampleKey.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = route53.NewHostedZoneDnsSec(ctx, \"exampleHostedZoneDnsSec\", \u0026route53.HostedZoneDnsSecArgs{\n\t\t\tHostedZoneId: exampleKeySigningKey.HostedZoneId,\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\texampleKeySigningKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.AwsFunctions;\nimport com.pulumi.aws.inputs.GetCallerIdentityArgs;\nimport com.pulumi.aws.kms.Key;\nimport com.pulumi.aws.kms.KeyArgs;\nimport com.pulumi.aws.route53.Zone;\nimport com.pulumi.aws.route53.KeySigningKey;\nimport com.pulumi.aws.route53.KeySigningKeyArgs;\nimport com.pulumi.aws.route53.HostedZoneDnsSec;\nimport com.pulumi.aws.route53.HostedZoneDnsSecArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var current = AwsFunctions.getCallerIdentity();\n\n var exampleKey = new Key(\"exampleKey\", KeyArgs.builder() \n .customerMasterKeySpec(\"ECC_NIST_P256\")\n .deletionWindowInDays(7)\n .keyUsage(\"SIGN_VERIFY\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Statement\", jsonArray(\n jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"kms:DescribeKey\", \n \"kms:GetPublicKey\", \n \"kms:Sign\", \n \"kms:Verify\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"Service\", \"dnssec-route53.amazonaws.com\")\n )),\n jsonProperty(\"Resource\", \"*\"),\n jsonProperty(\"Sid\", \"Allow Route 53 DNSSEC Service\")\n ), \n jsonObject(\n jsonProperty(\"Action\", \"kms:*\"),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", String.format(\"arn:aws:iam::%s:root\", current.applyValue(getCallerIdentityResult -\u003e getCallerIdentityResult.accountId())))\n )),\n jsonProperty(\"Resource\", \"*\"),\n jsonProperty(\"Sid\", \"Enable IAM User Permissions\")\n )\n )),\n jsonProperty(\"Version\", \"2012-10-17\")\n )))\n .build());\n\n var exampleZone = new Zone(\"exampleZone\");\n\n var exampleKeySigningKey = new KeySigningKey(\"exampleKeySigningKey\", KeySigningKeyArgs.builder() \n .hostedZoneId(exampleZone.id())\n .keyManagementServiceArn(exampleKey.arn())\n .build());\n\n var exampleHostedZoneDnsSec = new HostedZoneDnsSec(\"exampleHostedZoneDnsSec\", HostedZoneDnsSecArgs.builder() \n .hostedZoneId(exampleKeySigningKey.hostedZoneId())\n .build(), CustomResourceOptions.builder()\n .dependsOn(exampleKeySigningKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleKey:\n type: aws:kms:Key\n properties:\n customerMasterKeySpec: ECC_NIST_P256\n deletionWindowInDays: 7\n keyUsage: SIGN_VERIFY\n policy:\n fn::toJSON:\n Statement:\n - Action:\n - kms:DescribeKey\n - kms:GetPublicKey\n - kms:Sign\n - kms:Verify\n Effect: Allow\n Principal:\n Service: dnssec-route53.amazonaws.com\n Resource: '*'\n Sid: Allow Route 53 DNSSEC Service\n - Action: kms:*\n Effect: Allow\n Principal:\n AWS: arn:aws:iam::${current.accountId}:root\n Resource: '*'\n Sid: Enable IAM User Permissions\n Version: 2012-10-17\n exampleZone:\n type: aws:route53:Zone\n exampleKeySigningKey:\n type: aws:route53:KeySigningKey\n properties:\n hostedZoneId: ${exampleZone.id}\n keyManagementServiceArn: ${exampleKey.arn}\n exampleHostedZoneDnsSec:\n type: aws:route53:HostedZoneDnsSec\n properties:\n hostedZoneId: ${exampleKeySigningKey.hostedZoneId}\n options:\n dependson:\n - ${exampleKeySigningKey}\nvariables:\n current:\n fn::invoke:\n Function: aws:getCallerIdentity\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import `aws_route53_hosted_zone_dnssec` resources using the Route 53 Hosted Zone identifier. For example:\n\n```sh\n $ pulumi import aws:route53/hostedZoneDnsSec:HostedZoneDnsSec example Z1D633PJN98FT9\n```\n ", "properties": { "hostedZoneId": { "type": "string", @@ -303753,11 +305501,11 @@ "properties": { "action": { "$ref": "#/types/aws:vpclattice/ListenerRuleAction:ListenerRuleAction", - "description": "The action for the default rule.\n" + "description": "The action for the listener rule.\n" }, "arn": { "type": "string", - "description": "ARN of the target group.\n" + "description": "The ARN for the listener rule.\n" }, "listenerIdentifier": { "type": "string", @@ -303777,7 +305525,7 @@ }, "ruleId": { "type": "string", - "description": "Unique identifier for the target group.\n" + "description": "Unique identifier for the listener rule.\n" }, "serviceIdentifier": { "type": "string", @@ -303814,7 +305562,7 @@ "inputProperties": { "action": { "$ref": "#/types/aws:vpclattice/ListenerRuleAction:ListenerRuleAction", - "description": "The action for the default rule.\n" + "description": "The action for the listener rule.\n" }, "listenerIdentifier": { "type": "string", @@ -303859,11 +305607,11 @@ "properties": { "action": { "$ref": "#/types/aws:vpclattice/ListenerRuleAction:ListenerRuleAction", - "description": "The action for the default rule.\n" + "description": "The action for the listener rule.\n" }, "arn": { "type": "string", - "description": "ARN of the target group.\n" + "description": "The ARN for the listener rule.\n" }, "listenerIdentifier": { "type": "string", @@ -303885,7 +305633,7 @@ }, "ruleId": { "type": "string", - "description": "Unique identifier for the target group.\n" + "description": "Unique identifier for the listener rule.\n" }, "serviceIdentifier": { "type": "string", @@ -304471,7 +306219,7 @@ } }, "aws:vpclattice/targetGroup:TargetGroup": { - "description": "Resource for managing an AWS VPC Lattice Target Group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {\n type: \"INSTANCE\",\n config: {\n port: 443,\n protocol: \"HTTPS\",\n vpcIdentifier: aws_vpc.example.id,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\",\n type=\"INSTANCE\",\n config=aws.vpclattice.TargetGroupConfigArgs(\n port=443,\n protocol=\"HTTPS\",\n vpc_identifier=aws_vpc[\"example\"][\"id\"],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"INSTANCE\",\n Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs\n {\n Port = 443,\n Protocol = \"HTTPS\",\n VpcIdentifier = aws_vpc.Example.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"INSTANCE\"),\n\t\t\tConfig: \u0026vpclattice.TargetGroupConfigArgs{\n\t\t\t\tPort: pulumi.Int(443),\n\t\t\t\tProtocol: pulumi.String(\"HTTPS\"),\n\t\t\t\tVpcIdentifier: pulumi.Any(aws_vpc.Example.Id),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"INSTANCE\")\n .config(TargetGroupConfigArgs.builder()\n .port(443)\n .protocol(\"HTTPS\")\n .vpcIdentifier(aws_vpc.example().id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: INSTANCE\n config:\n port: 443\n protocol: HTTPS\n vpcIdentifier: ${aws_vpc.example.id}\n```\n{{% /example %}}\n{{% example %}}\n### Basic usage with Health check\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {\n type: \"ALB\",\n config: {\n port: 443,\n protocol: \"HTTPS\",\n vpcIdentifier: aws_vpc.example.id,\n protocolVersion: \"HTTP1\",\n healthCheck: {\n enabled: true,\n healthCheckIntervalSeconds: 20,\n healthCheckTimeoutSeconds: 10,\n healthyThresholdCount: 7,\n unhealthyThresholdCount: 3,\n matcher: {\n value: \"200-299\",\n },\n path: \"/instance\",\n port: 80,\n protocol: \"HTTP\",\n protocolVersion: \"HTTP1\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\",\n type=\"ALB\",\n config=aws.vpclattice.TargetGroupConfigArgs(\n port=443,\n protocol=\"HTTPS\",\n vpc_identifier=aws_vpc[\"example\"][\"id\"],\n protocol_version=\"HTTP1\",\n health_check=aws.vpclattice.TargetGroupConfigHealthCheckArgs(\n enabled=True,\n health_check_interval_seconds=20,\n health_check_timeout_seconds=10,\n healthy_threshold_count=7,\n unhealthy_threshold_count=3,\n matcher=aws.vpclattice.TargetGroupConfigHealthCheckMatcherArgs(\n value=\"200-299\",\n ),\n path=\"/instance\",\n port=80,\n protocol=\"HTTP\",\n protocol_version=\"HTTP1\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"ALB\",\n Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs\n {\n Port = 443,\n Protocol = \"HTTPS\",\n VpcIdentifier = aws_vpc.Example.Id,\n ProtocolVersion = \"HTTP1\",\n HealthCheck = new Aws.VpcLattice.Inputs.TargetGroupConfigHealthCheckArgs\n {\n Enabled = true,\n HealthCheckIntervalSeconds = 20,\n HealthCheckTimeoutSeconds = 10,\n HealthyThresholdCount = 7,\n UnhealthyThresholdCount = 3,\n Matcher = new Aws.VpcLattice.Inputs.TargetGroupConfigHealthCheckMatcherArgs\n {\n Value = \"200-299\",\n },\n Path = \"/instance\",\n Port = 80,\n Protocol = \"HTTP\",\n ProtocolVersion = \"HTTP1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"ALB\"),\n\t\t\tConfig: \u0026vpclattice.TargetGroupConfigArgs{\n\t\t\t\tPort: pulumi.Int(443),\n\t\t\t\tProtocol: pulumi.String(\"HTTPS\"),\n\t\t\t\tVpcIdentifier: pulumi.Any(aws_vpc.Example.Id),\n\t\t\t\tProtocolVersion: pulumi.String(\"HTTP1\"),\n\t\t\t\tHealthCheck: \u0026vpclattice.TargetGroupConfigHealthCheckArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tHealthCheckIntervalSeconds: pulumi.Int(20),\n\t\t\t\t\tHealthCheckTimeoutSeconds: pulumi.Int(10),\n\t\t\t\t\tHealthyThresholdCount: pulumi.Int(7),\n\t\t\t\t\tUnhealthyThresholdCount: pulumi.Int(3),\n\t\t\t\t\tMatcher: \u0026vpclattice.TargetGroupConfigHealthCheckMatcherArgs{\n\t\t\t\t\t\tValue: pulumi.String(\"200-299\"),\n\t\t\t\t\t},\n\t\t\t\t\tPath: pulumi.String(\"/instance\"),\n\t\t\t\t\tPort: pulumi.Int(80),\n\t\t\t\t\tProtocol: pulumi.String(\"HTTP\"),\n\t\t\t\t\tProtocolVersion: pulumi.String(\"HTTP1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigHealthCheckArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigHealthCheckMatcherArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"ALB\")\n .config(TargetGroupConfigArgs.builder()\n .port(443)\n .protocol(\"HTTPS\")\n .vpcIdentifier(aws_vpc.example().id())\n .protocolVersion(\"HTTP1\")\n .healthCheck(TargetGroupConfigHealthCheckArgs.builder()\n .enabled(true)\n .healthCheckIntervalSeconds(20)\n .healthCheckTimeoutSeconds(10)\n .healthyThresholdCount(7)\n .unhealthyThresholdCount(3)\n .matcher(TargetGroupConfigHealthCheckMatcherArgs.builder()\n .value(\"200-299\")\n .build())\n .path(\"/instance\")\n .port(80)\n .protocol(\"HTTP\")\n .protocolVersion(\"HTTP1\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: ALB\n config:\n port: 443\n protocol: HTTPS\n vpcIdentifier: ${aws_vpc.example.id}\n protocolVersion: HTTP1\n healthCheck:\n enabled: true\n healthCheckIntervalSeconds: 20\n healthCheckTimeoutSeconds: 10\n healthyThresholdCount: 7\n unhealthyThresholdCount: 3\n matcher:\n value: 200-299\n path: /instance\n port: 80\n protocol: HTTP\n protocolVersion: HTTP1\n```\n{{% /example %}}\n{{% example %}}\n### Lambda\n\nIf the type is Lambda, `config` block is not supported.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {type: \"LAMBDA\"});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\", type=\"LAMBDA\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"LAMBDA\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"LAMBDA\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"LAMBDA\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: LAMBDA\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import VPC Lattice Target Group using the `id`. For example:\n\n```sh\n $ pulumi import aws:vpclattice/targetGroup:TargetGroup example tg-0c11d4dc16ed96bdb\n```\n ", + "description": "Resource for managing an AWS VPC Lattice Target Group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {\n type: \"INSTANCE\",\n config: {\n vpcIdentifier: aws_vpc.example.id,\n port: 443,\n protocol: \"HTTPS\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\",\n type=\"INSTANCE\",\n config=aws.vpclattice.TargetGroupConfigArgs(\n vpc_identifier=aws_vpc[\"example\"][\"id\"],\n port=443,\n protocol=\"HTTPS\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"INSTANCE\",\n Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs\n {\n VpcIdentifier = aws_vpc.Example.Id,\n Port = 443,\n Protocol = \"HTTPS\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"INSTANCE\"),\n\t\t\tConfig: \u0026vpclattice.TargetGroupConfigArgs{\n\t\t\t\tVpcIdentifier: pulumi.Any(aws_vpc.Example.Id),\n\t\t\t\tPort: pulumi.Int(443),\n\t\t\t\tProtocol: pulumi.String(\"HTTPS\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"INSTANCE\")\n .config(TargetGroupConfigArgs.builder()\n .vpcIdentifier(aws_vpc.example().id())\n .port(443)\n .protocol(\"HTTPS\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: INSTANCE\n config:\n vpcIdentifier: ${aws_vpc.example.id}\n port: 443\n protocol: HTTPS\n```\n{{% /example %}}\n{{% example %}}\n### Basic usage with Health check\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {\n type: \"IP\",\n config: {\n vpcIdentifier: aws_vpc.example.id,\n ipAddressType: \"IPV4\",\n port: 443,\n protocol: \"HTTPS\",\n protocolVersion: \"HTTP1\",\n healthCheck: {\n enabled: true,\n healthCheckIntervalSeconds: 20,\n healthCheckTimeoutSeconds: 10,\n healthyThresholdCount: 7,\n unhealthyThresholdCount: 3,\n matcher: {\n value: \"200-299\",\n },\n path: \"/instance\",\n port: 80,\n protocol: \"HTTP\",\n protocolVersion: \"HTTP1\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\",\n type=\"IP\",\n config=aws.vpclattice.TargetGroupConfigArgs(\n vpc_identifier=aws_vpc[\"example\"][\"id\"],\n ip_address_type=\"IPV4\",\n port=443,\n protocol=\"HTTPS\",\n protocol_version=\"HTTP1\",\n health_check=aws.vpclattice.TargetGroupConfigHealthCheckArgs(\n enabled=True,\n health_check_interval_seconds=20,\n health_check_timeout_seconds=10,\n healthy_threshold_count=7,\n unhealthy_threshold_count=3,\n matcher=aws.vpclattice.TargetGroupConfigHealthCheckMatcherArgs(\n value=\"200-299\",\n ),\n path=\"/instance\",\n port=80,\n protocol=\"HTTP\",\n protocol_version=\"HTTP1\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"IP\",\n Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs\n {\n VpcIdentifier = aws_vpc.Example.Id,\n IpAddressType = \"IPV4\",\n Port = 443,\n Protocol = \"HTTPS\",\n ProtocolVersion = \"HTTP1\",\n HealthCheck = new Aws.VpcLattice.Inputs.TargetGroupConfigHealthCheckArgs\n {\n Enabled = true,\n HealthCheckIntervalSeconds = 20,\n HealthCheckTimeoutSeconds = 10,\n HealthyThresholdCount = 7,\n UnhealthyThresholdCount = 3,\n Matcher = new Aws.VpcLattice.Inputs.TargetGroupConfigHealthCheckMatcherArgs\n {\n Value = \"200-299\",\n },\n Path = \"/instance\",\n Port = 80,\n Protocol = \"HTTP\",\n ProtocolVersion = \"HTTP1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"IP\"),\n\t\t\tConfig: \u0026vpclattice.TargetGroupConfigArgs{\n\t\t\t\tVpcIdentifier: pulumi.Any(aws_vpc.Example.Id),\n\t\t\t\tIpAddressType: pulumi.String(\"IPV4\"),\n\t\t\t\tPort: pulumi.Int(443),\n\t\t\t\tProtocol: pulumi.String(\"HTTPS\"),\n\t\t\t\tProtocolVersion: pulumi.String(\"HTTP1\"),\n\t\t\t\tHealthCheck: \u0026vpclattice.TargetGroupConfigHealthCheckArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tHealthCheckIntervalSeconds: pulumi.Int(20),\n\t\t\t\t\tHealthCheckTimeoutSeconds: pulumi.Int(10),\n\t\t\t\t\tHealthyThresholdCount: pulumi.Int(7),\n\t\t\t\t\tUnhealthyThresholdCount: pulumi.Int(3),\n\t\t\t\t\tMatcher: \u0026vpclattice.TargetGroupConfigHealthCheckMatcherArgs{\n\t\t\t\t\t\tValue: pulumi.String(\"200-299\"),\n\t\t\t\t\t},\n\t\t\t\t\tPath: pulumi.String(\"/instance\"),\n\t\t\t\t\tPort: pulumi.Int(80),\n\t\t\t\t\tProtocol: pulumi.String(\"HTTP\"),\n\t\t\t\t\tProtocolVersion: pulumi.String(\"HTTP1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigHealthCheckArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigHealthCheckMatcherArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"IP\")\n .config(TargetGroupConfigArgs.builder()\n .vpcIdentifier(aws_vpc.example().id())\n .ipAddressType(\"IPV4\")\n .port(443)\n .protocol(\"HTTPS\")\n .protocolVersion(\"HTTP1\")\n .healthCheck(TargetGroupConfigHealthCheckArgs.builder()\n .enabled(true)\n .healthCheckIntervalSeconds(20)\n .healthCheckTimeoutSeconds(10)\n .healthyThresholdCount(7)\n .unhealthyThresholdCount(3)\n .matcher(TargetGroupConfigHealthCheckMatcherArgs.builder()\n .value(\"200-299\")\n .build())\n .path(\"/instance\")\n .port(80)\n .protocol(\"HTTP\")\n .protocolVersion(\"HTTP1\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: IP\n config:\n vpcIdentifier: ${aws_vpc.example.id}\n ipAddressType: IPV4\n port: 443\n protocol: HTTPS\n protocolVersion: HTTP1\n healthCheck:\n enabled: true\n healthCheckIntervalSeconds: 20\n healthCheckTimeoutSeconds: 10\n healthyThresholdCount: 7\n unhealthyThresholdCount: 3\n matcher:\n value: 200-299\n path: /instance\n port: 80\n protocol: HTTP\n protocolVersion: HTTP1\n```\n{{% /example %}}\n{{% example %}}\n### ALB\n\nIf the type is ALB, `health_check` block is not supported.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {\n type: \"ALB\",\n config: {\n vpcIdentifier: aws_vpc.example.id,\n port: 443,\n protocol: \"HTTPS\",\n protocolVersion: \"HTTP1\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\",\n type=\"ALB\",\n config=aws.vpclattice.TargetGroupConfigArgs(\n vpc_identifier=aws_vpc[\"example\"][\"id\"],\n port=443,\n protocol=\"HTTPS\",\n protocol_version=\"HTTP1\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"ALB\",\n Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs\n {\n VpcIdentifier = aws_vpc.Example.Id,\n Port = 443,\n Protocol = \"HTTPS\",\n ProtocolVersion = \"HTTP1\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"ALB\"),\n\t\t\tConfig: \u0026vpclattice.TargetGroupConfigArgs{\n\t\t\t\tVpcIdentifier: pulumi.Any(aws_vpc.Example.Id),\n\t\t\t\tPort: pulumi.Int(443),\n\t\t\t\tProtocol: pulumi.String(\"HTTPS\"),\n\t\t\t\tProtocolVersion: pulumi.String(\"HTTP1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"ALB\")\n .config(TargetGroupConfigArgs.builder()\n .vpcIdentifier(aws_vpc.example().id())\n .port(443)\n .protocol(\"HTTPS\")\n .protocolVersion(\"HTTP1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: ALB\n config:\n vpcIdentifier: ${aws_vpc.example.id}\n port: 443\n protocol: HTTPS\n protocolVersion: HTTP1\n```\n{{% /example %}}\n{{% example %}}\n### Lambda\n\nIf the type is Lambda, `config` block is not supported.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.vpclattice.TargetGroup(\"example\", {type: \"LAMBDA\"});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.TargetGroup(\"example\", type=\"LAMBDA\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.VpcLattice.TargetGroup(\"example\", new()\n {\n Type = \"LAMBDA\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.NewTargetGroup(ctx, \"example\", \u0026vpclattice.TargetGroupArgs{\n\t\t\tType: pulumi.String(\"LAMBDA\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.TargetGroup;\nimport com.pulumi.aws.vpclattice.TargetGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new TargetGroup(\"example\", TargetGroupArgs.builder() \n .type(\"LAMBDA\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:vpclattice:TargetGroup\n properties:\n type: LAMBDA\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsing `pulumi import`, import VPC Lattice Target Group using the `id`. For example:\n\n```sh\n $ pulumi import aws:vpclattice/targetGroup:TargetGroup example tg-0c11d4dc16ed96bdb\n```\n ", "properties": { "arn": { "type": "string", @@ -315142,7 +316890,7 @@ }, "resourceType": { "type": "string", - "description": "A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`.\n" + "description": "A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`.\n" } }, "type": "object", @@ -332937,7 +334685,7 @@ } }, "aws:iot/getEndpoint:getEndpoint": { - "description": "Returns a unique endpoint specific to the AWS account making the call.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as kubernetes from \"@pulumi/kubernetes\";\n\nconst example = aws.iot.getEndpoint({});\nconst agent = new kubernetes.index.Kubernetes_pod(\"agent\", {\n metadata: [{\n name: \"my-device\",\n }],\n spec: [{\n container: [{\n image: \"gcr.io/my-project/image-name\",\n name: \"image-name\",\n env: [{\n name: \"IOT_ENDPOINT\",\n value: example.endpointAddress,\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_kubernetes as kubernetes\n\nexample = aws.iot.get_endpoint()\nagent = kubernetes.index.Kubernetes_pod(\"agent\",\n metadata=[{\n name: my-device,\n }],\n spec=[{\n container: [{\n image: gcr.io/my-project/image-name,\n name: image-name,\n env: [{\n name: IOT_ENDPOINT,\n value: example.endpoint_address,\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Kubernetes = Pulumi.Kubernetes;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Iot.GetEndpoint.Invoke();\n\n var agent = new Kubernetes.Index.Kubernetes_pod(\"agent\", new()\n {\n Metadata = new[]\n {\n \n {\n { \"name\", \"my-device\" },\n },\n },\n Spec = new[]\n {\n \n {\n { \"container\", new[]\n {\n \n {\n { \"image\", \"gcr.io/my-project/image-name\" },\n { \"name\", \"image-name\" },\n { \"env\", new[]\n {\n \n {\n { \"name\", \"IOT_ENDPOINT\" },\n { \"value\", example.Apply(getEndpointResult =\u003e getEndpointResult.EndpointAddress) },\n },\n } },\n },\n } },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot\"\n\t\"github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := iot.GetEndpoint(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = kubernetes.NewKubernetes_pod(ctx, \"agent\", \u0026kubernetes.Kubernetes_podArgs{\n\t\t\tMetadata: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"name\": \"my-device\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tSpec: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"container\": []map[string]interface{}{\n\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\"image\": \"gcr.io/my-project/image-name\",\n\t\t\t\t\t\t\t\"name\": \"image-name\",\n\t\t\t\t\t\t\t\"env\": []map[string]interface{}{\n\t\t\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\t\t\"name\": \"IOT_ENDPOINT\",\n\t\t\t\t\t\t\t\t\t\"value\": example.EndpointAddress,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iot.IotFunctions;\nimport com.pulumi.aws.iot.inputs.GetEndpointArgs;\nimport com.pulumi.kubernetes.kubernetes_pod;\nimport com.pulumi.kubernetes.Kubernetes_podArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = IotFunctions.getEndpoint();\n\n var agent = new Kubernetes_pod(\"agent\", Kubernetes_podArgs.builder() \n .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .spec(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n agent:\n type: kubernetes:kubernetes_pod\n properties:\n metadata:\n - name: my-device\n spec:\n - container:\n - image: gcr.io/my-project/image-name\n name: image-name\n env:\n - name: IOT_ENDPOINT\n value: ${example.endpointAddress}\nvariables:\n example:\n fn::invoke:\n Function: aws:iot:getEndpoint\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Returns a unique endpoint specific to the AWS account making the call.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as kubernetes from \"@pulumi/kubernetes\";\n\nconst example = aws.iot.getEndpoint({});\nconst agent = new kubernetes.index.Kubernetes_pod(\"agent\", {\n metadata: [{\n name: \"my-device\",\n }],\n spec: [{\n container: [{\n image: \"gcr.io/my-project/image-name\",\n name: \"image-name\",\n env: [{\n name: \"IOT_ENDPOINT\",\n value: example.endpointAddress,\n }],\n }],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_kubernetes as kubernetes\n\nexample = aws.iot.get_endpoint()\nagent = kubernetes.index.Kubernetes_pod(\"agent\",\n metadata=[{\n name: my-device,\n }],\n spec=[{\n container: [{\n image: gcr.io/my-project/image-name,\n name: image-name,\n env: [{\n name: IOT_ENDPOINT,\n value: example.endpoint_address,\n }],\n }],\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Kubernetes = Pulumi.Kubernetes;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.Iot.GetEndpoint.Invoke();\n\n var agent = new Kubernetes.Index.Kubernetes_pod(\"agent\", new()\n {\n Metadata = new[]\n {\n \n {\n { \"name\", \"my-device\" },\n },\n },\n Spec = new[]\n {\n \n {\n { \"container\", new[]\n {\n \n {\n { \"image\", \"gcr.io/my-project/image-name\" },\n { \"name\", \"image-name\" },\n { \"env\", new[]\n {\n \n {\n { \"name\", \"IOT_ENDPOINT\" },\n { \"value\", example.Apply(getEndpointResult =\u003e getEndpointResult.EndpointAddress) },\n },\n } },\n },\n } },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot\"\n\t\"github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := iot.GetEndpoint(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = kubernetes.NewKubernetes_pod(ctx, \"agent\", \u0026kubernetes.Kubernetes_podArgs{\n\t\t\tMetadata: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"name\": \"my-device\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tSpec: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"container\": []map[string]interface{}{\n\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\"image\": \"gcr.io/my-project/image-name\",\n\t\t\t\t\t\t\t\"name\": \"image-name\",\n\t\t\t\t\t\t\t\"env\": []map[string]interface{}{\n\t\t\t\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\t\t\t\"name\": \"IOT_ENDPOINT\",\n\t\t\t\t\t\t\t\t\t\"value\": example.EndpointAddress,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iot.IotFunctions;\nimport com.pulumi.aws.iot.inputs.GetEndpointArgs;\nimport com.pulumi.kubernetes.kubernetes_pod;\nimport com.pulumi.kubernetes.Kubernetes_podArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = IotFunctions.getEndpoint();\n\n var agent = new Kubernetes_pod(\"agent\", Kubernetes_podArgs.builder() \n .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .spec(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n agent:\n type: kubernetes:kubernetes_pod\n properties:\n metadata:\n - name: my-device\n spec:\n - container:\n - image: gcr.io/my-project/image-name\n name: image-name\n env:\n - name: IOT_ENDPOINT\n value: ${example.endpointAddress}\nvariables:\n example:\n fn::invoke:\n Function: aws:iot:getEndpoint\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getEndpoint.\n", "properties": { @@ -344951,7 +346699,7 @@ "additionalProperties": { "type": "string" }, - "description": "Map of metadata stored with the object in S3\n" + "description": "Map of metadata stored with the object in S3. Keys are always returned in lowercase.\n" }, "objectLockLegalHoldStatus": { "type": "string", @@ -345309,7 +347057,7 @@ "additionalProperties": { "type": "string" }, - "description": "Map of metadata stored with the object in S3\n" + "description": "Map of metadata stored with the object in S3. Keys are always returned in lowercase.\n" }, "objectLockLegalHoldStatus": { "type": "string", @@ -349141,7 +350889,7 @@ }, "serviceIdentifier": { "type": "string", - "description": "ID or Amazon Resource Name (ARN) of the service network.\n" + "description": "ID or Amazon Resource Name (ARN) of the service.\n" }, "tags": { "type": "object", @@ -349217,13 +350965,13 @@ } }, "aws:vpclattice/getServiceNetwork:getServiceNetwork": { - "description": "Data source for managing an AWS VPC Lattice Service Network.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = aws.vpclattice.getServiceNetwork({\n serviceNetworkIdentifier: \"\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.get_service_network(service_network_identifier=\"\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.VpcLattice.GetServiceNetwork.Invoke(new()\n {\n ServiceNetworkIdentifier = \"\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.LookupServiceNetwork(ctx, \u0026vpclattice.LookupServiceNetworkArgs{\n\t\t\tServiceNetworkIdentifier: \"\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.VpclatticeFunctions;\nimport com.pulumi.aws.vpclattice.inputs.GetServiceNetworkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder()\n .serviceNetworkIdentifier(\"\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: aws:vpclattice:getServiceNetwork\n Arguments:\n serviceNetworkIdentifier:\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Data source for managing an AWS VPC Lattice Service Network.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Basic Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = aws.vpclattice.getServiceNetwork({\n serviceNetworkIdentifier: \"snsa-01112223334445556\",\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.vpclattice.get_service_network(service_network_identifier=\"snsa-01112223334445556\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Aws.VpcLattice.GetServiceNetwork.Invoke(new()\n {\n ServiceNetworkIdentifier = \"snsa-01112223334445556\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vpclattice.LookupServiceNetwork(ctx, \u0026vpclattice.LookupServiceNetworkArgs{\n\t\t\tServiceNetworkIdentifier: \"snsa-01112223334445556\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.vpclattice.VpclatticeFunctions;\nimport com.pulumi.aws.vpclattice.inputs.GetServiceNetworkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder()\n .serviceNetworkIdentifier(\"snsa-01112223334445556\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: aws:vpclattice:getServiceNetwork\n Arguments:\n serviceNetworkIdentifier: snsa-01112223334445556\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getServiceNetwork.\n", "properties": { "serviceNetworkIdentifier": { "type": "string", - "description": "Identifier of the network service.\n" + "description": "Identifier of the service network.\n" }, "tags": { "type": "object", diff --git a/provider/go.mod b/provider/go.mod index a2956381536..a705c8b3089 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 - github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 + github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 github.com/hashicorp/terraform-provider-aws v1.60.1-0.20220923175450-ca71523cdc36 github.com/mitchellh/go-homedir v1.1.0 @@ -69,15 +69,15 @@ require ( github.com/armon/go-metrics v0.4.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go v1.45.14 // indirect + github.com/aws/aws-sdk-go v1.45.18 // indirect github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect - github.com/aws/aws-sdk-go-v2/config v1.18.41 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.13.39 // indirect - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85 // indirect + github.com/aws/aws-sdk-go-v2/config v1.18.42 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.13.40 // indirect + github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 // indirect + github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 // indirect github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 // indirect github.com/aws/aws-sdk-go-v2/service/accessanalyzer v1.21.0 // indirect github.com/aws/aws-sdk-go-v2/service/account v1.11.5 // indirect @@ -94,8 +94,9 @@ require ( github.com/aws/aws-sdk-go-v2/service/computeoptimizer v1.27.0 // indirect github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5 // indirect github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0 // indirect - github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5 // indirect + github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0 // indirect + github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0 // indirect github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0 // indirect github.com/aws/aws-sdk-go-v2/service/fis v1.16.0 // indirect github.com/aws/aws-sdk-go-v2/service/glacier v1.16.0 // indirect @@ -129,19 +130,20 @@ require ( github.com/aws/aws-sdk-go-v2/service/rds v1.54.0 // indirect github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5 // indirect github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0 // indirect - github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5 // indirect + github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6 // indirect github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3 // indirect - github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0 // indirect + github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 // indirect github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0 // indirect github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0 // indirect github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1 // indirect github.com/aws/aws-sdk-go-v2/service/signer v1.16.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5 // indirect + github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0 // indirect github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0 // indirect github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.14.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 // indirect github.com/aws/aws-sdk-go-v2/service/swf v1.17.3 // indirect github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.19.0 // indirect @@ -175,6 +177,8 @@ require ( github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.4.1 // indirect github.com/go-git/go-git/v5 v5.8.1 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt v3.2.1+incompatible // indirect @@ -195,7 +199,7 @@ require ( github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 // indirect github.com/hashicorp/aws-sdk-go-base v1.1.0 // indirect - github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 // indirect + github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 // indirect github.com/hashicorp/awspolicyequivalence v1.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect @@ -314,22 +318,24 @@ require ( github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/zclconf/go-cty v1.14.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/otel v1.16.0 // indirect - go.opentelemetry.io/otel/trace v1.16.0 // indirect + go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0 // indirect + go.opentelemetry.io/otel v1.18.0 // indirect + go.opentelemetry.io/otel/metric v1.18.0 // indirect + go.opentelemetry.io/otel/trace v1.18.0 // indirect go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect golang.org/x/crypto v0.13.0 // indirect - golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect + golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect + golang.org/x/net v0.15.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.12.0 // indirect golang.org/x/term v0.12.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect + golang.org/x/tools v0.13.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/provider/go.sum b/provider/go.sum index bb15684d537..0df003e34f3 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -832,8 +832,8 @@ github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4 github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.45.14 h1:/IPMEh9oelbK7506fdMHkbV9mq4a6f5aeiy9OT0PRKw= -github.com/aws/aws-sdk-go v1.45.14/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.45.18 h1:uSOGg4LFtpQH/bq9FsumMKfZHNl7BdH7WURHOqKXHNU= +github.com/aws/aws-sdk-go v1.45.18/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw= github.com/aws/aws-sdk-go-v2 v1.21.0 h1:gMT0IW+03wtYJhRqTVYn0wLzwdnK9sRMcxmtfGzRdJc= @@ -842,17 +842,17 @@ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3/go.mod h1:gNsR5CaXK github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 h1:OPLEkmhXf6xFPiz0bLeDArZIDx1NNS4oJyG4nv3Gct0= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13/go.mod h1:gpAbvyDGQFozTEmlTFO8XcQKHzubdq0LzRyJpG6MiXM= github.com/aws/aws-sdk-go-v2/config v1.15.15/go.mod h1:A1Lzyy/o21I5/s2FbyX5AevQfSVXpvvIDCoVFD0BC4E= -github.com/aws/aws-sdk-go-v2/config v1.18.41 h1:Go7z97YDsBJVNAaL7pDPKB6LeHEsAkHmFe+CeK30fUQ= -github.com/aws/aws-sdk-go-v2/config v1.18.41/go.mod h1:+yR45+A0LIMKT8bWOKo90Hy9rSrovEmEKoPKLmmVec8= +github.com/aws/aws-sdk-go-v2/config v1.18.42 h1:28jHROB27xZwU0CB88giDSjz7M1Sba3olb5JBGwina8= +github.com/aws/aws-sdk-go-v2/config v1.18.42/go.mod h1:4AZM3nMMxwlG+eZlxvBKqwVbkDLlnN2a4UGTL6HjaZI= github.com/aws/aws-sdk-go-v2/credentials v1.12.10/go.mod h1:g5eIM5XRs/OzIIK81QMBl+dAuDyoLN0VYaLP+tBqEOk= -github.com/aws/aws-sdk-go-v2/credentials v1.13.39 h1:UnwBXDIHKDaejSXaRzKR57IdGCizk+z1DEhnsFpus7Q= -github.com/aws/aws-sdk-go-v2/credentials v1.13.39/go.mod h1:OJ9P239A90TnglJEF3qofKiNeEM6PCV/m+aNGV5WC24= +github.com/aws/aws-sdk-go-v2/credentials v1.13.40 h1:s8yOkDh+5b1jUDhMBtngF6zKWLDs84chUk2Vk0c38Og= +github.com/aws/aws-sdk-go-v2/credentials v1.13.40/go.mod h1:VtEHVAAqDWASwdOqj/1huyT6uHbs5s8FUHfDQdky/Rs= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.9/go.mod h1:KDCCm4ONIdHtUloDcFvK2+vshZvx4Zmj7UMDfusuz5s= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 h1:uDZJF1hu0EVT/4bogChk8DyjSF6fof6uL/0Y26Ma7Fg= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11/go.mod h1:TEPP4tENqBGO99KwVpV9MlOX4NSrSLP8u3KRy2CDwA8= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.21/go.mod h1:iIYPrQ2rYfZiB/iADYlhj9HHZ9TTi6PqKQPAqygohbE= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85 h1:PH1OSkrdY8X+ENBz8ZhgWhR/975S05gcFPM4PxpAFrI= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.85/go.mod h1:4X3OaVfB/ZjZsB9eHpFLnNT00sw+ZE81kQ2E9FysTaU= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87 h1:e20ZrsgDPUXqg8+rZVuPwNSp6yniUN2Yr2tzFZ+Yvl0= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87/go.mod h1:0i0TAT6W+5i48QTlDU2KmY6U2hBZeY/LCP0wktya2oc= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.15/go.mod h1:pWrr2OoHlT7M/Pd2y4HV3gJyPb3qj5qMmnPkKSNPYK4= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 h1:22dGT7PneFMx4+b3pz7lMTRyN8ZKH7M2cW4GP9yUS2g= github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41/go.mod h1:CrObHAuPneJBlfEJ5T3szXOUkLEThaGfvnhTf33buas= @@ -860,8 +860,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.9/go.mod h1:08tUpeSGN33Q github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 h1:SijA0mgjV8E+8G45ltVHs0fvKpTj8xmZJ3VwhGKtUSI= github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35/go.mod h1:SJC1nEVVva1g3pHAIdCp7QsRIkMmLAgoDquQ9Rr8kYw= github.com/aws/aws-sdk-go-v2/internal/ini v1.3.16/go.mod h1:CYmI+7x03jjJih8kBEEFKRQc40UjUokT0k7GbvrhhTc= -github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 h1:GPUcE/Yq7Ur8YSUk6lVkoIMWnJNO0HT18GUzCWCgCI0= -github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo= +github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 h1:g+qlObJH4Kn4n21g69DjspU0hKTjWtq7naZ9OLCv0ew= +github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43/go.mod h1:rzfdUlfA+jdgLDmPKjd3Chq9V7LVLYo1Nz++Wb91aRo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.6/go.mod h1:O7Oc4peGZDEKlddivslfYFvAbgzvl/GH3J8j3JIGBXc= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 h1:6lJvvkQ9HmbHZ4h/IEwclwv2mrTW8Uq1SOB/kXy0mfw= github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4/go.mod h1:1PrKYwxTM+zjpw9Y41KFtoJCQrJ34Z47Y4VgVbfndjo= @@ -895,10 +895,12 @@ github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5 h1:prlnnmX0PYoho7c github.com/aws/aws-sdk-go-v2/service/directoryservice v1.18.5/go.mod h1:/kl14i35MzBB4oaVlmFVmTvdzTX5LiphIuRLyOJfoRU= github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0 h1:c9Ifajg9VU0b86Xd7B6KGpEUtbXbwAJj/8FAQN6ZBeg= github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.3.0/go.mod h1:XLn8/EbqX+qGri306t4IPUBi+VmphNcsR+OJRxPlGqg= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0 h1:oFrb1aQ07i+v63FOTywSG8xL/OYZbk+HmPE8FKSzkRk= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.119.0/go.mod h1:0FhI2Rzcv5BNM3dNnbcCx2qa2naFZoAidJi11cQgzL0= -github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5 h1:hhQPiPD696RlbY56NsMYVnVsS9ySrZc6eYC9yafauPk= -github.com/aws/aws-sdk-go-v2/service/emrserverless v1.10.5/go.mod h1:uRIY0k05TXMGGlHeRxDDhWT9oBqcGbbEBN3gqk9Njos= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5 h1:EeNQ3bDA6hlx3vifHf7LT/l9dh9w7D2XgCdaD11TRU4= +github.com/aws/aws-sdk-go-v2/service/dynamodb v1.21.5/go.mod h1:X3ThW5RPV19hi7bnQ0RMAiBjZbzxj4rZlj+qdctbMWY= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0 h1:o2W9Pwiun0hr2EL63sTK2ozw8/gkoAXRgFmSwy3DE7I= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.121.0/go.mod h1:0FhI2Rzcv5BNM3dNnbcCx2qa2naFZoAidJi11cQgzL0= +github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0 h1:bBoGKYUIf6sIFZh8SMuc8yMyYmgs5ofwgzqO02upSUY= +github.com/aws/aws-sdk-go-v2/service/emrserverless v1.11.0/go.mod h1:uRIY0k05TXMGGlHeRxDDhWT9oBqcGbbEBN3gqk9Njos= github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0 h1:qFaAEplUoebyUb2m0I3IgPK9hEZYL2zSDIW9lGMdfe4= github.com/aws/aws-sdk-go-v2/service/finspace v1.12.0/go.mod h1:+/mUh+9nZadnvEVL3h6wlIK96u3FCDy1X3wigdJhTYM= github.com/aws/aws-sdk-go-v2/service/fis v1.16.0 h1:whvtcGrg4PxHCg8pVBFvjuH+q7P3WNzwMM+IBN0eUKs= @@ -969,13 +971,13 @@ github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5 h1:iIRfLBX36lMn7vXdaVF github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.20.5/go.mod h1:q++QEMyKK3FcyuHOuab73F3mtkmP/Xu25VkMSEgqpE0= github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0 h1:v5feSZ0CwkDw4gk6On3i2IwEbTzX7bOEPI7pyecOcSA= github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 v1.4.0/go.mod h1:cP3b7+o+kmgjIKp9hXs+arRFIoh6lnYphtD3JsGmMeQ= -github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5 h1:tfmJZFDrma1cgraLRuEgfp643Gdaas2cxHnJxT7VVqk= -github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.5/go.mod h1:vXPkNV5GGPdMjRRNzO45nX3qsNTgB5lP19Tk4Go30xQ= +github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6 h1:2OKMYGgl8hi7BdtfgQlz5Or9nar+mAidpPjmgOZr3p4= +github.com/aws/aws-sdk-go-v2/service/rolesanywhere v1.3.6/go.mod h1:vXPkNV5GGPdMjRRNzO45nX3qsNTgB5lP19Tk4Go30xQ= github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3 h1:aaHlZb06fyEQ3uqEVJiN3hLt8syCzX+tWZiz40S4c0Y= github.com/aws/aws-sdk-go-v2/service/route53domains v1.17.3/go.mod h1:SK+5R1cYgVgSfBGi9T/gPGNIuLInF3eIRYNruia62rg= github.com/aws/aws-sdk-go-v2/service/s3 v1.27.2/go.mod h1:u+566cosFI+d+motIz3USXEh6sN8Nq4GrNXSg2RXVMo= -github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0 h1:VZ2WMkKLio5tVjYfThcy5+pb6YHGd6B6egq75FfM6hU= -github.com/aws/aws-sdk-go-v2/service/s3 v1.39.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM= +github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0 h1:wl5dxN1NONhTDQD9uaEvNsDRX29cBmGED/nl0jkWlt4= +github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0/go.mod h1:rDGMZA7f4pbmTtPOk5v5UM2lmX6UAbRnMDJeDvnH7AM= github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0 h1:f4qHghGTcns4L4F7u8AHH6pcVLwgtTMNkNZeRJZ5xlA= github.com/aws/aws-sdk-go-v2/service/s3control v1.33.0/go.mod h1:YSdqo9knBVm5H3JVmWDhx9Wts9828nColUJzL3OKXDk= github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0 h1:uzCEL2ILopsOcWvbmeMmmy3Sc0ybVh+nHMg5knnA0Rg= @@ -983,24 +985,26 @@ github.com/aws/aws-sdk-go-v2/service/scheduler v1.3.0/go.mod h1:cdpHC7Nd4Yvtf/rh github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.15.14/go.mod h1:xakbH8KMsQQKqzX87uyyzTHshc/0/Df8bsTneTS5pFU= github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0 h1:Ou2rjk3siybv09bzpi5fs+9zOYZACxT1LT0KkcDAtIs= github.com/aws/aws-sdk-go-v2/service/securitylake v1.7.0/go.mod h1:/MCawoN8Xib5q04k2HsIQ+K2cNtC3CHamrfLZXd6KmA= -github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0 h1:BVjuGDN2ek2gjSB46aIODXIYq3Aw/o0F/ZwBPP883GU= -github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.0/go.mod h1:qpAr/ear7teIUoBd1gaPbvavdICoo1XyAIHPVlyawQc= +github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1 h1:QxzS/Hr5kixvMyPIXTfspnRUiKgFJSTPrhnglAi2YLI= +github.com/aws/aws-sdk-go-v2/service/sesv2 v1.20.1/go.mod h1:qpAr/ear7teIUoBd1gaPbvavdICoo1XyAIHPVlyawQc= github.com/aws/aws-sdk-go-v2/service/signer v1.16.5 h1:nqZqDR44/ao9zQXyuCJI8L/C3QQIo4wtZyLtgwJfpEY= github.com/aws/aws-sdk-go-v2/service/signer v1.16.5/go.mod h1:gHTmxtN3p6WKxFhcOSvWBFfEbxDRFtwfxjj1S7shS64= github.com/aws/aws-sdk-go-v2/service/sns v1.17.10/go.mod h1:uITsRNVMeCB3MkWpXxXw0eDz8pW4TYLzj+eyQtbhSxM= github.com/aws/aws-sdk-go-v2/service/sqs v1.19.1/go.mod h1:A94o564Gj+Yn+7QO1eLFeI7UVv3riy/YBFOfICVqFvU= +github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5 h1:RyDpTOMEJO6ycxw1vU/6s0KLFaH3M0z/z9gXHSndPTk= +github.com/aws/aws-sdk-go-v2/service/sqs v1.24.5/go.mod h1:RZBu4jmYz3Nikzpu/VuVvRnTEJ5a+kf36WT2fcl5Q+Q= github.com/aws/aws-sdk-go-v2/service/ssm v1.27.6/go.mod h1:fiFzQgj4xNOg4/wqmAiPvzgDMXPD+cUEplX/CYn+0j0= -github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5 h1:s9QR0F1W5+11lq04OJ/mihpRpA2VDFIHmu+ktgAbNfg= -github.com/aws/aws-sdk-go-v2/service/ssm v1.37.5/go.mod h1:JjBzoceyKkpQY3v1GPIdg6kHqUFHRJ7SDlwtwoH0Qh8= +github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0 h1:JON9MBvwUlM8HXylfB2caZuH3VXz9RxO4SMp2+TNc3Q= +github.com/aws/aws-sdk-go-v2/service/ssm v1.38.0/go.mod h1:JjBzoceyKkpQY3v1GPIdg6kHqUFHRJ7SDlwtwoH0Qh8= github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0 h1:Edd9f7uEJkW6cWBqnXh93+s4tXUwojQrxiOZPnJ3/jg= github.com/aws/aws-sdk-go-v2/service/ssmcontacts v1.17.0/go.mod h1:g6xJdpynIx7D1UW9te8ul36qWGyuzIL6ATrJF6E6ygI= github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0 h1:JkzoHb2bl5y7guwjKrsER0050u29XEgg1+IUtG+6Rsw= github.com/aws/aws-sdk-go-v2/service/ssmincidents v1.23.0/go.mod h1:11Z2L2mDhJbRZo5rwRs1NPz1Vi37U5N1EiaazEoBGag= github.com/aws/aws-sdk-go-v2/service/sso v1.11.13/go.mod h1:d7ptRksDDgvXaUvxyHZ9SYh+iMDymm94JbVcgvSYSzU= -github.com/aws/aws-sdk-go-v2/service/sso v1.14.0 h1:AR/hlTsCyk1CwlyKnPFvIMvnONydRjDDRT9OGb0i+/g= -github.com/aws/aws-sdk-go-v2/service/sso v1.14.0/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0 h1:UniOmlPJelksyP5dGjfRoFTmLDy4/o0HH1lK2Op7zC8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.0/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4= +github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 h1:YkNzx1RLS0F5qdf9v1Q8Cuv9NXCL2TkosOxhzlUPV64= +github.com/aws/aws-sdk-go-v2/service/sso v1.14.1/go.mod h1:fIAwKQKBFu90pBxx07BFOMJLpRUGu8VOzLJakeY+0K4= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 h1:8lKOidPkmSmfUtiTgtdXWgaKItCZ/g75/jEk6Ql6GsA= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1/go.mod h1:yygr8ACQRY2PrEcy3xsUI357stq2AxnFM6DIsR9lij4= github.com/aws/aws-sdk-go-v2/service/sts v1.16.10/go.mod h1:cftkHYN6tCDNfkSasAmclSfl4l7cySoay8vz7p/ce0E= github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 h1:s4bioTgjSFRwOoyEFzAVCmFmoowBgjTR8gkrF/sQ4wk= github.com/aws/aws-sdk-go-v2/service/sts v1.22.0/go.mod h1:VC7JDqsqiwXukYEDjoHh9U0fOJtNWh04FPQz4ct4GGU= @@ -1411,7 +1415,10 @@ github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbV github.com/go-logr/logr v1.2.1/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.0/go.mod h1:YkVgnZu1ZjjL7xTxrfm/LLZBfkhTqSR1ydtm6jTKKwI= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= @@ -1696,10 +1703,10 @@ github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 h1:IUypt/ github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0/go.mod h1:cdTE6F2pCKQobug+RqRaQp7Kz9hIEqiSvpPmb6E5G1w= github.com/hashicorp/aws-sdk-go-base v1.1.0 h1:27urM3JAp6v+Oj/Ea5ULZwuFPK9cO1RUdEpV+rNdSAc= github.com/hashicorp/aws-sdk-go-base v1.1.0/go.mod h1:2fRjWDv3jJBeN6mVWFHV6hFTNeFBx2gpDLQaZNxUVAY= -github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35 h1:07rX0OEHNSmD4TXQzHcVnaZJGYXaSaJR4ZhN8/bBRY4= -github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.35/go.mod h1:cR5oVK+h10mSG4T9eHaBAYfacxUlYI5vNfJuIRMGfMA= -github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36 h1:xfEmtc8kXanlT5O9m1xqYXJRgsz5m1uBzeAFcq5wBh4= -github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.36/go.mod h1:AQknW73NE5hbAZn/ruNomae0OJUNf5xzsAi6yDndWgs= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36 h1:PeXF9Lm40Y54iEHlFoirPjwWGEJUocZgxFOAyeaeKg8= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.36/go.mod h1:CMRjoqBNDv6ic4UMXjyrUVss92suk8ANVnJxErubAQE= +github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37 h1:KniXhpwH0GC5v1YCSMrD2n1qW/aeSCJV6hzIQ03Jv9I= +github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.37/go.mod h1:nmFy7OOHTVqTYyckN4oTzLRYRheTbar4+92MXonc5BA= github.com/hashicorp/awspolicyequivalence v1.6.0 h1:7aadmkalbc5ewStC6g3rljx1iNvP4QyAhg2KsHx8bU8= github.com/hashicorp/awspolicyequivalence v1.6.0/go.mod h1:9IOaIHx+a7C0NfUNk1A93M7kHd5rJ19aoUx37LZGC14= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= @@ -2634,6 +2641,8 @@ go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= +go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0 h1:u2wxpWcQ6px9ACaIUX27ttNDx7B2OtTGRaIzvZOBsCQ= +go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.44.0/go.mod h1:BmbXHiVZH22QIi98PXQtfD8YEA3lmnaEotGBn1vJ/X4= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0/go.mod h1:vEhqr0m4eTc+DWxfsXoXue2GBgV2uUwVznkGIHW/e5w= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0/go.mod h1:2AboqHi0CiIZU0qwhtUfCYD1GeUzvvIXWNkhDt7ZMG4= @@ -2644,8 +2653,8 @@ go.opentelemetry.io/otel v1.3.0/go.mod h1:PWIKzi6JCp7sM0k9yZ43VX+T345uNbAkDKwHVj go.opentelemetry.io/otel v1.6.0/go.mod h1:bfJD2DZVw0LBxghOTlgnlI0CV3hLDu9XF/QKOUXMTQQ= go.opentelemetry.io/otel v1.6.1/go.mod h1:blzUabWHkX6LJewxvadmzafgh/wnvBSDBdOuwkAtrWQ= go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= -go.opentelemetry.io/otel v1.16.0 h1:Z7GVAX/UkAXPKsy94IU+i6thsQS4nb7LviLpnaNeW8s= -go.opentelemetry.io/otel v1.16.0/go.mod h1:vl0h9NUa1D5s1nv3A5vZOYWn8av4K8Ml6JDeHrT/bx4= +go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= +go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.3.0/go.mod h1:VpP4/RMn8bv8gNo9uK7/IMY4mtWLELsS+JIP0inH0h4= go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.6.1/go.mod h1:NEu79Xo32iVb+0gVNV8PMd7GoWqnyDXRlj04yFjqz40= @@ -2662,6 +2671,8 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.7.0/go.mod h1 go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= go.opentelemetry.io/otel/metric v0.28.0/go.mod h1:TrzsfQAmQaB1PDcdhBauLMk7nyyg9hm+GoQq/ekE9Iw= go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= +go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= +go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= go.opentelemetry.io/otel/sdk v1.3.0/go.mod h1:rIo4suHNhQwBIPg9axF8V9CA72Wz2mKF1teNrup8yzs= @@ -2674,8 +2685,8 @@ go.opentelemetry.io/otel/trace v1.3.0/go.mod h1:c/VDhno8888bvQYmbYLqe41/Ldmr/KKu go.opentelemetry.io/otel/trace v1.6.0/go.mod h1:qs7BrU5cZ8dXQHBGxHMOxwME/27YH2qEp4/+tZLLwJE= go.opentelemetry.io/otel/trace v1.6.1/go.mod h1:RkFRM1m0puWIq10oxImnGEduNBzxiN7TXluRBtE+5j0= go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= -go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs= -go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0= +go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= +go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v0.11.0/go.mod h1:QpEjXPrNQzrFDZgoTo49dgHR9RYRSrg3NAKnUGl9YpQ= go.opentelemetry.io/proto/otlp v0.12.1/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= @@ -2774,8 +2785,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ= -golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2918,8 +2929,8 @@ golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -3281,8 +3292,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 h1:Vve/L0v7CXXuxUmaMGIEK/dEeq7uiqb5qBgQrZzIE7E= -golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/sdk/dotnet/Batch/JobQueue.cs b/sdk/dotnet/Batch/JobQueue.cs index e72ce0d57a4..ac9485a587b 100644 --- a/sdk/dotnet/Batch/JobQueue.cs +++ b/sdk/dotnet/Batch/JobQueue.cs @@ -96,9 +96,8 @@ public partial class JobQueue : global::Pulumi.CustomResource public Output Arn { get; private set; } = null!; /// - /// Specifies the set of compute environments - /// mapped to a job queue and their order. The position of the compute environments - /// in the list will dictate the order. + /// List of compute environment ARNs mapped to a job queue. + /// The position of the compute environments in the list will dictate the order. /// [Output("computeEnvironments")] public Output> ComputeEnvironments { get; private set; } = null!; @@ -197,9 +196,8 @@ public sealed class JobQueueArgs : global::Pulumi.ResourceArgs private InputList? _computeEnvironments; /// - /// Specifies the set of compute environments - /// mapped to a job queue and their order. The position of the compute environments - /// in the list will dictate the order. + /// List of compute environment ARNs mapped to a job queue. + /// The position of the compute environments in the list will dictate the order. /// public InputList ComputeEnvironments { @@ -265,9 +263,8 @@ public sealed class JobQueueState : global::Pulumi.ResourceArgs private InputList? _computeEnvironments; /// - /// Specifies the set of compute environments - /// mapped to a job queue and their order. The position of the compute environments - /// in the list will dictate the order. + /// List of compute environment ARNs mapped to a job queue. + /// The position of the compute environments in the list will dictate the order. /// public InputList ComputeEnvironments { diff --git a/sdk/dotnet/CleanRooms/ConfiguredTable.cs b/sdk/dotnet/CleanRooms/ConfiguredTable.cs new file mode 100644 index 00000000000..cb40a642607 --- /dev/null +++ b/sdk/dotnet/CleanRooms/ConfiguredTable.cs @@ -0,0 +1,314 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.CleanRooms +{ + /// + /// Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. + /// + /// ## Example Usage + /// ### Configured table with tags + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var testConfiguredTable = new Aws.CleanRooms.ConfiguredTable("testConfiguredTable", new() + /// { + /// AllowedColumns = new[] + /// { + /// "column1", + /// "column2", + /// "column3", + /// }, + /// AnalysisMethod = "DIRECT_QUERY", + /// Description = "I made this table with TODO!", + /// TableReference = new Aws.CleanRooms.Inputs.ConfiguredTableTableReferenceArgs + /// { + /// DatabaseName = "example_database", + /// TableName = "example_table", + /// }, + /// Tags = + /// { + /// { "Project", "TODO" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { + /// + /// to = aws_cleanrooms_configured_table.table + /// + /// id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab + /// + [AwsResourceType("aws:cleanrooms/configuredTable:ConfiguredTable")] + public partial class ConfiguredTable : global::Pulumi.CustomResource + { + /// + /// The columns of the references table which will be included in the configured table. + /// + [Output("allowedColumns")] + public Output> AllowedColumns { get; private set; } = null!; + + /// + /// The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + /// + [Output("analysisMethod")] + public Output AnalysisMethod { get; private set; } = null!; + + /// + /// The ARN of the configured table. + /// + [Output("arn")] + public Output Arn { get; private set; } = null!; + + /// + /// The date and time the configured table was created. + /// + [Output("createTime")] + public Output CreateTime { get; private set; } = null!; + + /// + /// A description for the configured table. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The name of the configured table. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// A reference to the AWS Glue table which will be used to create the configured table. + /// * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + /// * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + /// + [Output("tableReference")] + public Output TableReference { get; private set; } = null!; + + /// + /// Key value pairs which tag the configured table. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + [Output("tagsAll")] + public Output> TagsAll { get; private set; } = null!; + + /// + /// The date and time the configured table was last updated. + /// + [Output("updateTime")] + public Output UpdateTime { get; private set; } = null!; + + + /// + /// Create a ConfiguredTable resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ConfiguredTable(string name, ConfiguredTableArgs args, CustomResourceOptions? options = null) + : base("aws:cleanrooms/configuredTable:ConfiguredTable", name, args ?? new ConfiguredTableArgs(), MakeResourceOptions(options, "")) + { + } + + private ConfiguredTable(string name, Input id, ConfiguredTableState? state = null, CustomResourceOptions? options = null) + : base("aws:cleanrooms/configuredTable:ConfiguredTable", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + AdditionalSecretOutputs = + { + "tagsAll", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ConfiguredTable resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ConfiguredTable Get(string name, Input id, ConfiguredTableState? state = null, CustomResourceOptions? options = null) + { + return new ConfiguredTable(name, id, state, options); + } + } + + public sealed class ConfiguredTableArgs : global::Pulumi.ResourceArgs + { + [Input("allowedColumns", required: true)] + private InputList? _allowedColumns; + + /// + /// The columns of the references table which will be included in the configured table. + /// + public InputList AllowedColumns + { + get => _allowedColumns ?? (_allowedColumns = new InputList()); + set => _allowedColumns = value; + } + + /// + /// The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + /// + [Input("analysisMethod", required: true)] + public Input AnalysisMethod { get; set; } = null!; + + /// + /// A description for the configured table. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the configured table. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// A reference to the AWS Glue table which will be used to create the configured table. + /// * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + /// * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + /// + [Input("tableReference", required: true)] + public Input TableReference { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// Key value pairs which tag the configured table. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public ConfiguredTableArgs() + { + } + public static new ConfiguredTableArgs Empty => new ConfiguredTableArgs(); + } + + public sealed class ConfiguredTableState : global::Pulumi.ResourceArgs + { + [Input("allowedColumns")] + private InputList? _allowedColumns; + + /// + /// The columns of the references table which will be included in the configured table. + /// + public InputList AllowedColumns + { + get => _allowedColumns ?? (_allowedColumns = new InputList()); + set => _allowedColumns = value; + } + + /// + /// The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + /// + [Input("analysisMethod")] + public Input? AnalysisMethod { get; set; } + + /// + /// The ARN of the configured table. + /// + [Input("arn")] + public Input? Arn { get; set; } + + /// + /// The date and time the configured table was created. + /// + [Input("createTime")] + public Input? CreateTime { get; set; } + + /// + /// A description for the configured table. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the configured table. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// A reference to the AWS Glue table which will be used to create the configured table. + /// * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + /// * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + /// + [Input("tableReference")] + public Input? TableReference { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// Key value pairs which tag the configured table. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("tagsAll")] + private InputMap? _tagsAll; + [Obsolete(@"Please use `tags` instead.")] + public InputMap TagsAll + { + get => _tagsAll ?? (_tagsAll = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _tagsAll = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + + /// + /// The date and time the configured table was last updated. + /// + [Input("updateTime")] + public Input? UpdateTime { get; set; } + + public ConfiguredTableState() + { + } + public static new ConfiguredTableState Empty => new ConfiguredTableState(); + } +} diff --git a/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceArgs.cs b/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceArgs.cs new file mode 100644 index 00000000000..92231bb26fa --- /dev/null +++ b/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.CleanRooms.Inputs +{ + + public sealed class ConfiguredTableTableReferenceArgs : global::Pulumi.ResourceArgs + { + [Input("databaseName", required: true)] + public Input DatabaseName { get; set; } = null!; + + [Input("tableName", required: true)] + public Input TableName { get; set; } = null!; + + public ConfiguredTableTableReferenceArgs() + { + } + public static new ConfiguredTableTableReferenceArgs Empty => new ConfiguredTableTableReferenceArgs(); + } +} diff --git a/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceGetArgs.cs b/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceGetArgs.cs new file mode 100644 index 00000000000..b3c5739f1aa --- /dev/null +++ b/sdk/dotnet/CleanRooms/Inputs/ConfiguredTableTableReferenceGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.CleanRooms.Inputs +{ + + public sealed class ConfiguredTableTableReferenceGetArgs : global::Pulumi.ResourceArgs + { + [Input("databaseName", required: true)] + public Input DatabaseName { get; set; } = null!; + + [Input("tableName", required: true)] + public Input TableName { get; set; } = null!; + + public ConfiguredTableTableReferenceGetArgs() + { + } + public static new ConfiguredTableTableReferenceGetArgs Empty => new ConfiguredTableTableReferenceGetArgs(); + } +} diff --git a/sdk/dotnet/CleanRooms/Outputs/ConfiguredTableTableReference.cs b/sdk/dotnet/CleanRooms/Outputs/ConfiguredTableTableReference.cs new file mode 100644 index 00000000000..86d067bb8f5 --- /dev/null +++ b/sdk/dotnet/CleanRooms/Outputs/ConfiguredTableTableReference.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.CleanRooms.Outputs +{ + + [OutputType] + public sealed class ConfiguredTableTableReference + { + public readonly string DatabaseName; + public readonly string TableName; + + [OutputConstructor] + private ConfiguredTableTableReference( + string databaseName, + + string tableName) + { + DatabaseName = databaseName; + TableName = tableName; + } + } +} diff --git a/sdk/dotnet/Cloud9/EnvironmentEC2.cs b/sdk/dotnet/Cloud9/EnvironmentEC2.cs index 2eb7f141501..b13455ade4b 100644 --- a/sdk/dotnet/Cloud9/EnvironmentEC2.cs +++ b/sdk/dotnet/Cloud9/EnvironmentEC2.cs @@ -144,9 +144,11 @@ public partial class EnvironmentEC2 : global::Pulumi.CustomResource /// * `amazonlinux-1-x86_64` /// * `amazonlinux-2-x86_64` /// * `ubuntu-18.04-x86_64` + /// * `ubuntu-22.04-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` /// [Output("imageId")] public Output ImageId { get; private set; } = null!; @@ -266,9 +268,11 @@ public sealed class EnvironmentEC2Args : global::Pulumi.ResourceArgs /// * `amazonlinux-1-x86_64` /// * `amazonlinux-2-x86_64` /// * `ubuntu-18.04-x86_64` + /// * `ubuntu-22.04-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` /// [Input("imageId")] public Input? ImageId { get; set; } @@ -346,9 +350,11 @@ public sealed class EnvironmentEC2State : global::Pulumi.ResourceArgs /// * `amazonlinux-1-x86_64` /// * `amazonlinux-2-x86_64` /// * `ubuntu-18.04-x86_64` + /// * `ubuntu-22.04-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + /// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` /// [Input("imageId")] public Input? ImageId { get; set; } diff --git a/sdk/dotnet/CloudFront/Distribution.cs b/sdk/dotnet/CloudFront/Distribution.cs index fbfec55d8d6..44f2e1b217b 100644 --- a/sdk/dotnet/CloudFront/Distribution.cs +++ b/sdk/dotnet/CloudFront/Distribution.cs @@ -373,7 +373,7 @@ public partial class Distribution : global::Pulumi.CustomResource /// Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `aws.cloudfront.ContinuousDeploymentPolicy` resource for additional details. /// [Output("continuousDeploymentPolicyId")] - public Output ContinuousDeploymentPolicyId { get; private set; } = null!; + public Output ContinuousDeploymentPolicyId { get; private set; } = null!; /// /// One or more custom error response elements (multiples allowed). diff --git a/sdk/dotnet/CloudFront/Inputs/DistributionOriginArgs.cs b/sdk/dotnet/CloudFront/Inputs/DistributionOriginArgs.cs index 611f61e9038..da2ebc68360 100644 --- a/sdk/dotnet/CloudFront/Inputs/DistributionOriginArgs.cs +++ b/sdk/dotnet/CloudFront/Inputs/DistributionOriginArgs.cs @@ -67,13 +67,13 @@ public InputList CustomHeaders public Input? OriginPath { get; set; } /// - /// The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + /// CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. /// [Input("originShield")] public Input? OriginShield { get; set; } /// - /// The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + /// CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. /// [Input("s3OriginConfig")] public Input? S3OriginConfig { get; set; } diff --git a/sdk/dotnet/CloudFront/Inputs/DistributionOriginGetArgs.cs b/sdk/dotnet/CloudFront/Inputs/DistributionOriginGetArgs.cs index 5ecb49607b3..4fec0bc4fd3 100644 --- a/sdk/dotnet/CloudFront/Inputs/DistributionOriginGetArgs.cs +++ b/sdk/dotnet/CloudFront/Inputs/DistributionOriginGetArgs.cs @@ -67,13 +67,13 @@ public InputList CustomHeaders public Input? OriginPath { get; set; } /// - /// The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + /// CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. /// [Input("originShield")] public Input? OriginShield { get; set; } /// - /// The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + /// CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. /// [Input("s3OriginConfig")] public Input? S3OriginConfig { get; set; } diff --git a/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldArgs.cs b/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldArgs.cs index c49a3e843e0..71a2f67e12b 100644 --- a/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldArgs.cs +++ b/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldArgs.cs @@ -19,10 +19,10 @@ public sealed class DistributionOriginOriginShieldArgs : global::Pulumi.Resource public Input Enabled { get; set; } = null!; /// - /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. /// - [Input("originShieldRegion", required: true)] - public Input OriginShieldRegion { get; set; } = null!; + [Input("originShieldRegion")] + public Input? OriginShieldRegion { get; set; } public DistributionOriginOriginShieldArgs() { diff --git a/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldGetArgs.cs b/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldGetArgs.cs index aa68836e2f8..d5c823e09a3 100644 --- a/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldGetArgs.cs +++ b/sdk/dotnet/CloudFront/Inputs/DistributionOriginOriginShieldGetArgs.cs @@ -19,10 +19,10 @@ public sealed class DistributionOriginOriginShieldGetArgs : global::Pulumi.Resou public Input Enabled { get; set; } = null!; /// - /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. /// - [Input("originShieldRegion", required: true)] - public Input OriginShieldRegion { get; set; } = null!; + [Input("originShieldRegion")] + public Input? OriginShieldRegion { get; set; } public DistributionOriginOriginShieldGetArgs() { diff --git a/sdk/dotnet/CloudFront/Outputs/DistributionOrigin.cs b/sdk/dotnet/CloudFront/Outputs/DistributionOrigin.cs index b7eaef44f22..bfc4f34ddaa 100644 --- a/sdk/dotnet/CloudFront/Outputs/DistributionOrigin.cs +++ b/sdk/dotnet/CloudFront/Outputs/DistributionOrigin.cs @@ -46,11 +46,11 @@ public sealed class DistributionOrigin /// public readonly string? OriginPath; /// - /// The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + /// CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. /// public readonly Outputs.DistributionOriginOriginShield? OriginShield; /// - /// The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + /// CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. /// public readonly Outputs.DistributionOriginS3OriginConfig? S3OriginConfig; diff --git a/sdk/dotnet/CloudFront/Outputs/DistributionOriginOriginShield.cs b/sdk/dotnet/CloudFront/Outputs/DistributionOriginOriginShield.cs index a41815c4ff7..7ce8007c8ed 100644 --- a/sdk/dotnet/CloudFront/Outputs/DistributionOriginOriginShield.cs +++ b/sdk/dotnet/CloudFront/Outputs/DistributionOriginOriginShield.cs @@ -18,15 +18,15 @@ public sealed class DistributionOriginOriginShield /// public readonly bool Enabled; /// - /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + /// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. /// - public readonly string OriginShieldRegion; + public readonly string? OriginShieldRegion; [OutputConstructor] private DistributionOriginOriginShield( bool enabled, - string originShieldRegion) + string? originShieldRegion) { Enabled = enabled; OriginShieldRegion = originShieldRegion; diff --git a/sdk/dotnet/Connect/GetInstanceStorageConfig.cs b/sdk/dotnet/Connect/GetInstanceStorageConfig.cs index 552b4a90612..fd6662f02ab 100644 --- a/sdk/dotnet/Connect/GetInstanceStorageConfig.cs +++ b/sdk/dotnet/Connect/GetInstanceStorageConfig.cs @@ -88,7 +88,7 @@ public sealed class GetInstanceStorageConfigArgs : global::Pulumi.InvokeArgs public string InstanceId { get; set; } = null!; /// - /// A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. /// [Input("resourceType", required: true)] public string ResourceType { get; set; } = null!; @@ -114,7 +114,7 @@ public sealed class GetInstanceStorageConfigInvokeArgs : global::Pulumi.InvokeAr public Input InstanceId { get; set; } = null!; /// - /// A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. /// [Input("resourceType", required: true)] public Input ResourceType { get; set; } = null!; diff --git a/sdk/dotnet/Connect/InstanceStorageConfig.cs b/sdk/dotnet/Connect/InstanceStorageConfig.cs index 316554cad2d..ae3d49855be 100644 --- a/sdk/dotnet/Connect/InstanceStorageConfig.cs +++ b/sdk/dotnet/Connect/InstanceStorageConfig.cs @@ -182,7 +182,7 @@ public partial class InstanceStorageConfig : global::Pulumi.CustomResource public Output InstanceId { get; private set; } = null!; /// - /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. /// [Output("resourceType")] public Output ResourceType { get; private set; } = null!; @@ -246,7 +246,7 @@ public sealed class InstanceStorageConfigArgs : global::Pulumi.ResourceArgs public Input InstanceId { get; set; } = null!; /// - /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. /// [Input("resourceType", required: true)] public Input ResourceType { get; set; } = null!; @@ -278,7 +278,7 @@ public sealed class InstanceStorageConfigState : global::Pulumi.ResourceArgs public Input? InstanceId { get; set; } /// - /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + /// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. /// [Input("resourceType")] public Input? ResourceType { get; set; } diff --git a/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigArgs.cs b/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigArgs.cs new file mode 100644 index 00000000000..c9a8b84296e --- /dev/null +++ b/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigArgs.cs @@ -0,0 +1,85 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Dms.Inputs +{ + + public sealed class ReplicationConfigComputeConfigArgs : global::Pulumi.ResourceArgs + { + /// + /// The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + /// + [Input("availabilityZone")] + public Input? AvailabilityZone { get; set; } + + /// + /// A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + /// + [Input("dnsNameServers")] + public Input? DnsNameServers { get; set; } + + /// + /// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + /// + [Input("kmsKeyId")] + public Input? KmsKeyId { get; set; } + + /// + /// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + /// + [Input("maxCapacityUnits")] + public Input? MaxCapacityUnits { get; set; } + + /// + /// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + /// + [Input("minCapacityUnits")] + public Input? MinCapacityUnits { get; set; } + + /// + /// Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + /// + [Input("multiAz")] + public Input? MultiAz { get; set; } + + /// + /// The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + /// + /// - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + /// - Format: `ddd:hh24:mi-ddd:hh24:mi` + /// - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + /// - Constraints: Minimum 30-minute window. + /// + [Input("preferredMaintenanceWindow")] + public Input? PreferredMaintenanceWindow { get; set; } + + /// + /// Specifies a subnet group identifier to associate with the DMS Serverless replication. + /// + [Input("replicationSubnetGroupId", required: true)] + public Input ReplicationSubnetGroupId { get; set; } = null!; + + [Input("vpcSecurityGroupIds")] + private InputList? _vpcSecurityGroupIds; + + /// + /// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + /// + public InputList VpcSecurityGroupIds + { + get => _vpcSecurityGroupIds ?? (_vpcSecurityGroupIds = new InputList()); + set => _vpcSecurityGroupIds = value; + } + + public ReplicationConfigComputeConfigArgs() + { + } + public static new ReplicationConfigComputeConfigArgs Empty => new ReplicationConfigComputeConfigArgs(); + } +} diff --git a/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigGetArgs.cs b/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigGetArgs.cs new file mode 100644 index 00000000000..35c31fc6687 --- /dev/null +++ b/sdk/dotnet/Dms/Inputs/ReplicationConfigComputeConfigGetArgs.cs @@ -0,0 +1,85 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Dms.Inputs +{ + + public sealed class ReplicationConfigComputeConfigGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + /// + [Input("availabilityZone")] + public Input? AvailabilityZone { get; set; } + + /// + /// A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + /// + [Input("dnsNameServers")] + public Input? DnsNameServers { get; set; } + + /// + /// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + /// + [Input("kmsKeyId")] + public Input? KmsKeyId { get; set; } + + /// + /// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + /// + [Input("maxCapacityUnits")] + public Input? MaxCapacityUnits { get; set; } + + /// + /// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + /// + [Input("minCapacityUnits")] + public Input? MinCapacityUnits { get; set; } + + /// + /// Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + /// + [Input("multiAz")] + public Input? MultiAz { get; set; } + + /// + /// The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + /// + /// - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + /// - Format: `ddd:hh24:mi-ddd:hh24:mi` + /// - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + /// - Constraints: Minimum 30-minute window. + /// + [Input("preferredMaintenanceWindow")] + public Input? PreferredMaintenanceWindow { get; set; } + + /// + /// Specifies a subnet group identifier to associate with the DMS Serverless replication. + /// + [Input("replicationSubnetGroupId", required: true)] + public Input ReplicationSubnetGroupId { get; set; } = null!; + + [Input("vpcSecurityGroupIds")] + private InputList? _vpcSecurityGroupIds; + + /// + /// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + /// + public InputList VpcSecurityGroupIds + { + get => _vpcSecurityGroupIds ?? (_vpcSecurityGroupIds = new InputList()); + set => _vpcSecurityGroupIds = value; + } + + public ReplicationConfigComputeConfigGetArgs() + { + } + public static new ReplicationConfigComputeConfigGetArgs Empty => new ReplicationConfigComputeConfigGetArgs(); + } +} diff --git a/sdk/dotnet/Dms/Outputs/ReplicationConfigComputeConfig.cs b/sdk/dotnet/Dms/Outputs/ReplicationConfigComputeConfig.cs new file mode 100644 index 00000000000..199d000f064 --- /dev/null +++ b/sdk/dotnet/Dms/Outputs/ReplicationConfigComputeConfig.cs @@ -0,0 +1,89 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Dms.Outputs +{ + + [OutputType] + public sealed class ReplicationConfigComputeConfig + { + /// + /// The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + /// + public readonly string? AvailabilityZone; + /// + /// A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + /// + public readonly string? DnsNameServers; + /// + /// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + /// + public readonly string? KmsKeyId; + /// + /// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + /// + public readonly int? MaxCapacityUnits; + /// + /// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + /// + public readonly int? MinCapacityUnits; + /// + /// Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + /// + public readonly bool? MultiAz; + /// + /// The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + /// + /// - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + /// - Format: `ddd:hh24:mi-ddd:hh24:mi` + /// - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + /// - Constraints: Minimum 30-minute window. + /// + public readonly string? PreferredMaintenanceWindow; + /// + /// Specifies a subnet group identifier to associate with the DMS Serverless replication. + /// + public readonly string ReplicationSubnetGroupId; + /// + /// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + /// + public readonly ImmutableArray VpcSecurityGroupIds; + + [OutputConstructor] + private ReplicationConfigComputeConfig( + string? availabilityZone, + + string? dnsNameServers, + + string? kmsKeyId, + + int? maxCapacityUnits, + + int? minCapacityUnits, + + bool? multiAz, + + string? preferredMaintenanceWindow, + + string replicationSubnetGroupId, + + ImmutableArray vpcSecurityGroupIds) + { + AvailabilityZone = availabilityZone; + DnsNameServers = dnsNameServers; + KmsKeyId = kmsKeyId; + MaxCapacityUnits = maxCapacityUnits; + MinCapacityUnits = minCapacityUnits; + MultiAz = multiAz; + PreferredMaintenanceWindow = preferredMaintenanceWindow; + ReplicationSubnetGroupId = replicationSubnetGroupId; + VpcSecurityGroupIds = vpcSecurityGroupIds; + } + } +} diff --git a/sdk/dotnet/Dms/ReplicationConfig.cs b/sdk/dotnet/Dms/ReplicationConfig.cs new file mode 100644 index 00000000000..bd43b71b98d --- /dev/null +++ b/sdk/dotnet/Dms/ReplicationConfig.cs @@ -0,0 +1,370 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Dms +{ + /// + /// Provides a DMS Serverless replication config resource. + /// + /// > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `start_replication` to resume the replication afterwards. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var name = new Aws.Dms.ReplicationConfig("name", new() + /// { + /// ReplicationConfigIdentifier = "test-dms-serverless-replication-tf", + /// ResourceIdentifier = "test-dms-serverless-replication-tf", + /// ReplicationType = "cdc", + /// SourceEndpointArn = aws_dms_endpoint.Source.Endpoint_arn, + /// TargetEndpointArn = aws_dms_endpoint.Target.Endpoint_arn, + /// TableMappings = @" { + /// ""rules"":[{""rule-type"":""selection"",""rule-id"":""1"",""rule-name"":""1"",""object-locator"":{""schema-name"":""%%"",""table-name"":""%%"", ""rule-action"":""include""}] + /// } + /// ", + /// StartReplication = true, + /// ComputeConfig = new Aws.Dms.Inputs.ReplicationConfigComputeConfigArgs + /// { + /// ReplicationSubnetGroupId = aws_dms_replication_subnet_group.Default.Replication_subnet_group_id, + /// MaxCapacityUnits = 64, + /// MinCapacityUnits = 2, + /// PreferredMaintenanceWindow = "sun:23:45-mon:00:30", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { + /// + /// to = aws_dms_replication_config.example + /// + /// id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI + /// + [AwsResourceType("aws:dms/replicationConfig:ReplicationConfig")] + public partial class ReplicationConfig : global::Pulumi.CustomResource + { + /// + /// The Amazon Resource Name (ARN) for the serverless replication config. + /// + [Output("arn")] + public Output Arn { get; private set; } = null!; + + /// + /// Configuration block for provisioning an DMS Serverless replication. + /// + [Output("computeConfig")] + public Output ComputeConfig { get; private set; } = null!; + + /// + /// Unique identifier that you want to use to create the config. + /// + [Output("replicationConfigIdentifier")] + public Output ReplicationConfigIdentifier { get; private set; } = null!; + + /// + /// An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + /// + [Output("replicationSettings")] + public Output ReplicationSettings { get; private set; } = null!; + + /// + /// The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + /// + [Output("replicationType")] + public Output ReplicationType { get; private set; } = null!; + + /// + /// Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + /// + [Output("resourceIdentifier")] + public Output ResourceIdentifier { get; private set; } = null!; + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + /// + [Output("sourceEndpointArn")] + public Output SourceEndpointArn { get; private set; } = null!; + + /// + /// Whether to run or stop the serverless replication, default is false. + /// + [Output("startReplication")] + public Output StartReplication { get; private set; } = null!; + + /// + /// JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + /// + [Output("supplementalSettings")] + public Output SupplementalSettings { get; private set; } = null!; + + /// + /// An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + /// + [Output("tableMappings")] + public Output TableMappings { get; private set; } = null!; + + /// + /// A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + /// + /// A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + /// + [Output("tagsAll")] + public Output> TagsAll { get; private set; } = null!; + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + /// + [Output("targetEndpointArn")] + public Output TargetEndpointArn { get; private set; } = null!; + + + /// + /// Create a ReplicationConfig resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ReplicationConfig(string name, ReplicationConfigArgs args, CustomResourceOptions? options = null) + : base("aws:dms/replicationConfig:ReplicationConfig", name, args ?? new ReplicationConfigArgs(), MakeResourceOptions(options, "")) + { + } + + private ReplicationConfig(string name, Input id, ReplicationConfigState? state = null, CustomResourceOptions? options = null) + : base("aws:dms/replicationConfig:ReplicationConfig", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + AdditionalSecretOutputs = + { + "tagsAll", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ReplicationConfig resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ReplicationConfig Get(string name, Input id, ReplicationConfigState? state = null, CustomResourceOptions? options = null) + { + return new ReplicationConfig(name, id, state, options); + } + } + + public sealed class ReplicationConfigArgs : global::Pulumi.ResourceArgs + { + /// + /// Configuration block for provisioning an DMS Serverless replication. + /// + [Input("computeConfig", required: true)] + public Input ComputeConfig { get; set; } = null!; + + /// + /// Unique identifier that you want to use to create the config. + /// + [Input("replicationConfigIdentifier", required: true)] + public Input ReplicationConfigIdentifier { get; set; } = null!; + + /// + /// An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + /// + [Input("replicationSettings")] + public Input? ReplicationSettings { get; set; } + + /// + /// The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + /// + [Input("replicationType", required: true)] + public Input ReplicationType { get; set; } = null!; + + /// + /// Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + /// + [Input("resourceIdentifier")] + public Input? ResourceIdentifier { get; set; } + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + /// + [Input("sourceEndpointArn", required: true)] + public Input SourceEndpointArn { get; set; } = null!; + + /// + /// Whether to run or stop the serverless replication, default is false. + /// + [Input("startReplication")] + public Input? StartReplication { get; set; } + + /// + /// JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + /// + [Input("supplementalSettings")] + public Input? SupplementalSettings { get; set; } + + /// + /// An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + /// + [Input("tableMappings", required: true)] + public Input TableMappings { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + /// + [Input("targetEndpointArn", required: true)] + public Input TargetEndpointArn { get; set; } = null!; + + public ReplicationConfigArgs() + { + } + public static new ReplicationConfigArgs Empty => new ReplicationConfigArgs(); + } + + public sealed class ReplicationConfigState : global::Pulumi.ResourceArgs + { + /// + /// The Amazon Resource Name (ARN) for the serverless replication config. + /// + [Input("arn")] + public Input? Arn { get; set; } + + /// + /// Configuration block for provisioning an DMS Serverless replication. + /// + [Input("computeConfig")] + public Input? ComputeConfig { get; set; } + + /// + /// Unique identifier that you want to use to create the config. + /// + [Input("replicationConfigIdentifier")] + public Input? ReplicationConfigIdentifier { get; set; } + + /// + /// An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + /// + [Input("replicationSettings")] + public Input? ReplicationSettings { get; set; } + + /// + /// The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + /// + [Input("replicationType")] + public Input? ReplicationType { get; set; } + + /// + /// Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + /// + [Input("resourceIdentifier")] + public Input? ResourceIdentifier { get; set; } + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + /// + [Input("sourceEndpointArn")] + public Input? SourceEndpointArn { get; set; } + + /// + /// Whether to run or stop the serverless replication, default is false. + /// + [Input("startReplication")] + public Input? StartReplication { get; set; } + + /// + /// JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + /// + [Input("supplementalSettings")] + public Input? SupplementalSettings { get; set; } + + /// + /// An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + /// + [Input("tableMappings")] + public Input? TableMappings { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("tagsAll")] + private InputMap? _tagsAll; + + /// + /// A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + /// + [Obsolete(@"Please use `tags` instead.")] + public InputMap TagsAll + { + get => _tagsAll ?? (_tagsAll = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _tagsAll = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + + /// + /// The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + /// + [Input("targetEndpointArn")] + public Input? TargetEndpointArn { get; set; } + + public ReplicationConfigState() + { + } + public static new ReplicationConfigState Empty => new ReplicationConfigState(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationArgs.cs new file mode 100644 index 00000000000..c93321f8544 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationArgs.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationArgs : global::Pulumi.ResourceArgs + { + /// + /// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + [Input("auditLogVolume")] + public Input? AuditLogVolume { get; set; } + + /// + /// The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + /// + [Input("autocommitPeriod")] + public Input? AutocommitPeriod { get; set; } + + /// + /// Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + /// + [Input("privilegedDelete")] + public Input? PrivilegedDelete { get; set; } + + /// + /// The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + /// + [Input("retentionPeriod")] + public Input? RetentionPeriod { get; set; } + + /// + /// Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + /// + [Input("snaplockType", required: true)] + public Input SnaplockType { get; set; } = null!; + + /// + /// Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + [Input("volumeAppendModeEnabled")] + public Input? VolumeAppendModeEnabled { get; set; } + + public OntapVolumeSnaplockConfigurationArgs() + { + } + public static new OntapVolumeSnaplockConfigurationArgs Empty => new OntapVolumeSnaplockConfigurationArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.cs new file mode 100644 index 00000000000..ccf89dbc46e --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationAutocommitPeriodArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationAutocommitPeriodArgs() + { + } + public static new OntapVolumeSnaplockConfigurationAutocommitPeriodArgs Empty => new OntapVolumeSnaplockConfigurationAutocommitPeriodArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs.cs new file mode 100644 index 00000000000..87956969061 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs Empty => new OntapVolumeSnaplockConfigurationAutocommitPeriodGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationGetArgs.cs new file mode 100644 index 00000000000..10c7f35c2b3 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationGetArgs.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + [Input("auditLogVolume")] + public Input? AuditLogVolume { get; set; } + + /// + /// The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + /// + [Input("autocommitPeriod")] + public Input? AutocommitPeriod { get; set; } + + /// + /// Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + /// + [Input("privilegedDelete")] + public Input? PrivilegedDelete { get; set; } + + /// + /// The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + /// + [Input("retentionPeriod")] + public Input? RetentionPeriod { get; set; } + + /// + /// Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + /// + [Input("snaplockType", required: true)] + public Input SnaplockType { get; set; } = null!; + + /// + /// Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + [Input("volumeAppendModeEnabled")] + public Input? VolumeAppendModeEnabled { get; set; } + + public OntapVolumeSnaplockConfigurationGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationGetArgs Empty => new OntapVolumeSnaplockConfigurationGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.cs new file mode 100644 index 00000000000..d86a296b958 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodArgs : global::Pulumi.ResourceArgs + { + /// + /// The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + /// + [Input("defaultRetention")] + public Input? DefaultRetention { get; set; } + + /// + /// The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + [Input("maximumRetention")] + public Input? MaximumRetention { get; set; } + + /// + /// The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + [Input("minimumRetention")] + public Input? MinimumRetention { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.cs new file mode 100644 index 00000000000..64bf94183d7 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs.cs new file mode 100644 index 00000000000..753a895843d --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs.cs new file mode 100644 index 00000000000..c143a24e87b --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + /// + [Input("defaultRetention")] + public Input? DefaultRetention { get; set; } + + /// + /// The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + [Input("maximumRetention")] + public Input? MaximumRetention { get; set; } + + /// + /// The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + [Input("minimumRetention")] + public Input? MinimumRetention { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.cs new file mode 100644 index 00000000000..7e253d2c3dd --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs.cs new file mode 100644 index 00000000000..4d66f7d1cd6 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.cs new file mode 100644 index 00000000000..67ec49efc9a --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs(); + } +} diff --git a/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs.cs b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs.cs new file mode 100644 index 00000000000..a1471ddf5f7 --- /dev/null +++ b/sdk/dotnet/Fsx/Inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Inputs +{ + + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + [Input("type")] + public Input? Type { get; set; } + + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + [Input("value")] + public Input? Value { get; set; } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs() + { + } + public static new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs Empty => new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionGetArgs(); + } +} diff --git a/sdk/dotnet/Fsx/OntapFileSystem.cs b/sdk/dotnet/Fsx/OntapFileSystem.cs index 7d8536dd921..416405e8813 100644 --- a/sdk/dotnet/Fsx/OntapFileSystem.cs +++ b/sdk/dotnet/Fsx/OntapFileSystem.cs @@ -76,7 +76,7 @@ public partial class OntapFileSystem : global::Pulumi.CustomResource public Output DeploymentType { get; private set; } = null!; /// - /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. /// [Output("diskIopsConfiguration")] public Output DiskIopsConfiguration { get; private set; } = null!; @@ -259,7 +259,7 @@ public sealed class OntapFileSystemArgs : global::Pulumi.ResourceArgs public Input DeploymentType { get; set; } = null!; /// - /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. /// [Input("diskIopsConfiguration")] public Input? DiskIopsConfiguration { get; set; } @@ -403,7 +403,7 @@ public sealed class OntapFileSystemState : global::Pulumi.ResourceArgs public Input? DeploymentType { get; set; } /// - /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + /// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. /// [Input("diskIopsConfiguration")] public Input? DiskIopsConfiguration { get; set; } diff --git a/sdk/dotnet/Fsx/OntapVolume.cs b/sdk/dotnet/Fsx/OntapVolume.cs index 47dd86d932b..a3c909be2f2 100644 --- a/sdk/dotnet/Fsx/OntapVolume.cs +++ b/sdk/dotnet/Fsx/OntapVolume.cs @@ -79,6 +79,18 @@ public partial class OntapVolume : global::Pulumi.CustomResource [Output("arn")] public Output Arn { get; private set; } = null!; + /// + /// Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + /// + [Output("bypassSnaplockEnterpriseRetention")] + public Output BypassSnaplockEnterpriseRetention { get; private set; } = null!; + + /// + /// A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + /// + [Output("copyTagsToBackups")] + public Output CopyTagsToBackups { get; private set; } = null!; + /// /// Describes the file system for the volume, e.g. `fs-12345679` /// @@ -127,6 +139,18 @@ public partial class OntapVolume : global::Pulumi.CustomResource [Output("skipFinalBackup")] public Output SkipFinalBackup { get; private set; } = null!; + /// + /// The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + /// + [Output("snaplockConfiguration")] + public Output SnaplockConfiguration { get; private set; } = null!; + + /// + /// Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + /// + [Output("snapshotPolicy")] + public Output SnapshotPolicy { get; private set; } = null!; + /// /// Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. /// @@ -151,6 +175,9 @@ public partial class OntapVolume : global::Pulumi.CustomResource [Output("tagsAll")] public Output> TagsAll { get; private set; } = null!; + /// + /// The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + /// [Output("tieringPolicy")] public Output TieringPolicy { get; private set; } = null!; @@ -216,6 +243,18 @@ public static OntapVolume Get(string name, Input id, OntapVolumeState? s public sealed class OntapVolumeArgs : global::Pulumi.ResourceArgs { + /// + /// Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + /// + [Input("bypassSnaplockEnterpriseRetention")] + public Input? BypassSnaplockEnterpriseRetention { get; set; } + + /// + /// A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + /// + [Input("copyTagsToBackups")] + public Input? CopyTagsToBackups { get; set; } + /// /// Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` /// @@ -252,6 +291,18 @@ public sealed class OntapVolumeArgs : global::Pulumi.ResourceArgs [Input("skipFinalBackup")] public Input? SkipFinalBackup { get; set; } + /// + /// The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + /// + [Input("snaplockConfiguration")] + public Input? SnaplockConfiguration { get; set; } + + /// + /// Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + /// + [Input("snapshotPolicy")] + public Input? SnapshotPolicy { get; set; } + /// /// Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. /// @@ -276,6 +327,9 @@ public InputMap Tags set => _tags = value; } + /// + /// The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + /// [Input("tieringPolicy")] public Input? TieringPolicy { get; set; } @@ -299,6 +353,18 @@ public sealed class OntapVolumeState : global::Pulumi.ResourceArgs [Input("arn")] public Input? Arn { get; set; } + /// + /// Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + /// + [Input("bypassSnaplockEnterpriseRetention")] + public Input? BypassSnaplockEnterpriseRetention { get; set; } + + /// + /// A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + /// + [Input("copyTagsToBackups")] + public Input? CopyTagsToBackups { get; set; } + /// /// Describes the file system for the volume, e.g. `fs-12345679` /// @@ -347,6 +413,18 @@ public sealed class OntapVolumeState : global::Pulumi.ResourceArgs [Input("skipFinalBackup")] public Input? SkipFinalBackup { get; set; } + /// + /// The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + /// + [Input("snaplockConfiguration")] + public Input? SnaplockConfiguration { get; set; } + + /// + /// Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + /// + [Input("snapshotPolicy")] + public Input? SnapshotPolicy { get; set; } + /// /// Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. /// @@ -388,6 +466,9 @@ public InputMap TagsAll } } + /// + /// The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + /// [Input("tieringPolicy")] public Input? TieringPolicy { get; set; } diff --git a/sdk/dotnet/Fsx/OpenZfsVolume.cs b/sdk/dotnet/Fsx/OpenZfsVolume.cs index 3bacc3812fc..c1ae2f157c6 100644 --- a/sdk/dotnet/Fsx/OpenZfsVolume.cs +++ b/sdk/dotnet/Fsx/OpenZfsVolume.cs @@ -60,6 +60,12 @@ public partial class OpenZfsVolume : global::Pulumi.CustomResource [Output("dataCompressionType")] public Output DataCompressionType { get; private set; } = null!; + /// + /// Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + /// + [Output("deleteVolumeOptions")] + public Output DeleteVolumeOptions { get; private set; } = null!; + /// /// The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. /// @@ -191,6 +197,12 @@ public sealed class OpenZfsVolumeArgs : global::Pulumi.ResourceArgs [Input("dataCompressionType")] public Input? DataCompressionType { get; set; } + /// + /// Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + /// + [Input("deleteVolumeOptions")] + public Input? DeleteVolumeOptions { get; set; } + /// /// The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. /// @@ -292,6 +304,12 @@ public sealed class OpenZfsVolumeState : global::Pulumi.ResourceArgs [Input("dataCompressionType")] public Input? DataCompressionType { get; set; } + /// + /// Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + /// + [Input("deleteVolumeOptions")] + public Input? DeleteVolumeOptions { get; set; } + /// /// The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. /// diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfiguration.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfiguration.cs new file mode 100644 index 00000000000..df603d97123 --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfiguration.cs @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfiguration + { + /// + /// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + public readonly bool? AuditLogVolume; + /// + /// The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + /// + public readonly Outputs.OntapVolumeSnaplockConfigurationAutocommitPeriod? AutocommitPeriod; + /// + /// Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + /// + public readonly string? PrivilegedDelete; + /// + /// The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + /// + public readonly Outputs.OntapVolumeSnaplockConfigurationRetentionPeriod? RetentionPeriod; + /// + /// Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + /// + public readonly string SnaplockType; + /// + /// Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + /// + public readonly bool? VolumeAppendModeEnabled; + + [OutputConstructor] + private OntapVolumeSnaplockConfiguration( + bool? auditLogVolume, + + Outputs.OntapVolumeSnaplockConfigurationAutocommitPeriod? autocommitPeriod, + + string? privilegedDelete, + + Outputs.OntapVolumeSnaplockConfigurationRetentionPeriod? retentionPeriod, + + string snaplockType, + + bool? volumeAppendModeEnabled) + { + AuditLogVolume = auditLogVolume; + AutocommitPeriod = autocommitPeriod; + PrivilegedDelete = privilegedDelete; + RetentionPeriod = retentionPeriod; + SnaplockType = snaplockType; + VolumeAppendModeEnabled = volumeAppendModeEnabled; + } + } +} diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.cs new file mode 100644 index 00000000000..3c324c610d8 --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfigurationAutocommitPeriod + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + public readonly string? Type; + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + public readonly int? Value; + + [OutputConstructor] + private OntapVolumeSnaplockConfigurationAutocommitPeriod( + string? type, + + int? value) + { + Type = type; + Value = value; + } + } +} diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.cs new file mode 100644 index 00000000000..f76adc1c8ff --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriod + { + /// + /// The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + /// + public readonly Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention? DefaultRetention; + /// + /// The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + public readonly Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention? MaximumRetention; + /// + /// The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + /// + public readonly Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention? MinimumRetention; + + [OutputConstructor] + private OntapVolumeSnaplockConfigurationRetentionPeriod( + Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention? defaultRetention, + + Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention? maximumRetention, + + Outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention? minimumRetention) + { + DefaultRetention = defaultRetention; + MaximumRetention = maximumRetention; + MinimumRetention = minimumRetention; + } + } +} diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.cs new file mode 100644 index 00000000000..833cc321165 --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + public readonly string? Type; + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + public readonly int? Value; + + [OutputConstructor] + private OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention( + string? type, + + int? value) + { + Type = type; + Value = value; + } + } +} diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.cs new file mode 100644 index 00000000000..e342bbf39bf --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + public readonly string? Type; + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + public readonly int? Value; + + [OutputConstructor] + private OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention( + string? type, + + int? value) + { + Type = type; + Value = value; + } + } +} diff --git a/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.cs b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.cs new file mode 100644 index 00000000000..33a43e2ae4b --- /dev/null +++ b/sdk/dotnet/Fsx/Outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Fsx.Outputs +{ + + [OutputType] + public sealed class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention + { + /// + /// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + /// + public readonly string? Type; + /// + /// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + /// + public readonly int? Value; + + [OutputConstructor] + private OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention( + string? type, + + int? value) + { + Type = type; + Value = value; + } + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyArgs.cs new file mode 100644 index 00000000000..b36c3a81214 --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotDataPrivacyArgs : global::Pulumi.ResourceArgs + { + /// + /// (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + /// + [Input("childDirected", required: true)] + public Input ChildDirected { get; set; } = null!; + + public V2modelsBotDataPrivacyArgs() + { + } + public static new V2modelsBotDataPrivacyArgs Empty => new V2modelsBotDataPrivacyArgs(); + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyGetArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyGetArgs.cs new file mode 100644 index 00000000000..fe4e7087341 --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotDataPrivacyGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotDataPrivacyGetArgs : global::Pulumi.ResourceArgs + { + /// + /// (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + /// + [Input("childDirected", required: true)] + public Input ChildDirected { get; set; } = null!; + + public V2modelsBotDataPrivacyGetArgs() + { + } + public static new V2modelsBotDataPrivacyGetArgs Empty => new V2modelsBotDataPrivacyGetArgs(); + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotMemberArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotMemberArgs.cs new file mode 100644 index 00000000000..85bdf709e5c --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotMemberArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotMemberArgs : global::Pulumi.ResourceArgs + { + /// + /// (Required) - Alias ID of a bot that is a member of this network of bots. + /// + [Input("aliasId", required: true)] + public Input AliasId { get; set; } = null!; + + /// + /// (Required) - Alias name of a bot that is a member of this network of bots. + /// + [Input("aliasName", required: true)] + public Input AliasName { get; set; } = null!; + + /// + /// (Required) - Unique ID of a bot that is a member of this network of bots. + /// + [Input("id", required: true)] + public Input Id { get; set; } = null!; + + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// (Required) - Version of a bot that is a member of this network of bots. + /// + [Input("version", required: true)] + public Input Version { get; set; } = null!; + + public V2modelsBotMemberArgs() + { + } + public static new V2modelsBotMemberArgs Empty => new V2modelsBotMemberArgs(); + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotMemberGetArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotMemberGetArgs.cs new file mode 100644 index 00000000000..1d377aee221 --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotMemberGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotMemberGetArgs : global::Pulumi.ResourceArgs + { + /// + /// (Required) - Alias ID of a bot that is a member of this network of bots. + /// + [Input("aliasId", required: true)] + public Input AliasId { get; set; } = null!; + + /// + /// (Required) - Alias name of a bot that is a member of this network of bots. + /// + [Input("aliasName", required: true)] + public Input AliasName { get; set; } = null!; + + /// + /// (Required) - Unique ID of a bot that is a member of this network of bots. + /// + [Input("id", required: true)] + public Input Id { get; set; } = null!; + + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// (Required) - Version of a bot that is a member of this network of bots. + /// + [Input("version", required: true)] + public Input Version { get; set; } = null!; + + public V2modelsBotMemberGetArgs() + { + } + public static new V2modelsBotMemberGetArgs Empty => new V2modelsBotMemberGetArgs(); + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsArgs.cs new file mode 100644 index 00000000000..859212c1122 --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotTimeoutsArgs : global::Pulumi.ResourceArgs + { + [Input("create")] + public Input? Create { get; set; } + + [Input("delete")] + public Input? Delete { get; set; } + + [Input("update")] + public Input? Update { get; set; } + + public V2modelsBotTimeoutsArgs() + { + } + public static new V2modelsBotTimeoutsArgs Empty => new V2modelsBotTimeoutsArgs(); + } +} diff --git a/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsGetArgs.cs b/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsGetArgs.cs new file mode 100644 index 00000000000..ad160b4afe9 --- /dev/null +++ b/sdk/dotnet/Lex/Inputs/V2modelsBotTimeoutsGetArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Inputs +{ + + public sealed class V2modelsBotTimeoutsGetArgs : global::Pulumi.ResourceArgs + { + [Input("create")] + public Input? Create { get; set; } + + [Input("delete")] + public Input? Delete { get; set; } + + [Input("update")] + public Input? Update { get; set; } + + public V2modelsBotTimeoutsGetArgs() + { + } + public static new V2modelsBotTimeoutsGetArgs Empty => new V2modelsBotTimeoutsGetArgs(); + } +} diff --git a/sdk/dotnet/Lex/Outputs/V2modelsBotDataPrivacy.cs b/sdk/dotnet/Lex/Outputs/V2modelsBotDataPrivacy.cs new file mode 100644 index 00000000000..56b95266c43 --- /dev/null +++ b/sdk/dotnet/Lex/Outputs/V2modelsBotDataPrivacy.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Outputs +{ + + [OutputType] + public sealed class V2modelsBotDataPrivacy + { + /// + /// (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + /// + public readonly bool ChildDirected; + + [OutputConstructor] + private V2modelsBotDataPrivacy(bool childDirected) + { + ChildDirected = childDirected; + } + } +} diff --git a/sdk/dotnet/Lex/Outputs/V2modelsBotMember.cs b/sdk/dotnet/Lex/Outputs/V2modelsBotMember.cs new file mode 100644 index 00000000000..acd953130f4 --- /dev/null +++ b/sdk/dotnet/Lex/Outputs/V2modelsBotMember.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Outputs +{ + + [OutputType] + public sealed class V2modelsBotMember + { + /// + /// (Required) - Alias ID of a bot that is a member of this network of bots. + /// + public readonly string AliasId; + /// + /// (Required) - Alias name of a bot that is a member of this network of bots. + /// + public readonly string AliasName; + /// + /// (Required) - Unique ID of a bot that is a member of this network of bots. + /// + public readonly string Id; + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + public readonly string Name; + /// + /// (Required) - Version of a bot that is a member of this network of bots. + /// + public readonly string Version; + + [OutputConstructor] + private V2modelsBotMember( + string aliasId, + + string aliasName, + + string id, + + string name, + + string version) + { + AliasId = aliasId; + AliasName = aliasName; + Id = id; + Name = name; + Version = version; + } + } +} diff --git a/sdk/dotnet/Lex/Outputs/V2modelsBotTimeouts.cs b/sdk/dotnet/Lex/Outputs/V2modelsBotTimeouts.cs new file mode 100644 index 00000000000..1dd41a1a6cb --- /dev/null +++ b/sdk/dotnet/Lex/Outputs/V2modelsBotTimeouts.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex.Outputs +{ + + [OutputType] + public sealed class V2modelsBotTimeouts + { + public readonly string? Create; + public readonly string? Delete; + public readonly string? Update; + + [OutputConstructor] + private V2modelsBotTimeouts( + string? create, + + string? delete, + + string? update) + { + Create = create; + Delete = delete; + Update = update; + } + } +} diff --git a/sdk/dotnet/Lex/V2modelsBot.cs b/sdk/dotnet/Lex/V2modelsBot.cs new file mode 100644 index 00000000000..e6876cfe9d4 --- /dev/null +++ b/sdk/dotnet/Lex/V2modelsBot.cs @@ -0,0 +1,343 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Lex +{ + /// + /// Resource for managing an AWS Lex V2 Models Bot. + /// + /// ## Example Usage + /// ### Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Aws.Lex.V2modelsBot("example", new() + /// { + /// DataPrivacies = new[] + /// { + /// new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs + /// { + /// ChildDirected = "boolean", + /// }, + /// }, + /// IdleSessionTtlInSeconds = 10, + /// RoleArn = "bot_example_arn", + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { + /// + /// to = aws_lexv2models_bot.example + /// + /// id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 + /// + [AwsResourceType("aws:lex/v2modelsBot:V2modelsBot")] + public partial class V2modelsBot : global::Pulumi.CustomResource + { + [Output("arn")] + public Output Arn { get; private set; } = null!; + + /// + /// Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + /// + [Output("dataPrivacies")] + public Output> DataPrivacies { get; private set; } = null!; + + /// + /// Description of the bot. It appears in lists to help you identify a particular bot. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + /// + [Output("idleSessionTtlInSeconds")] + public Output IdleSessionTtlInSeconds { get; private set; } = null!; + + /// + /// List of bot members in a network to be created. See `bot_members`. + /// + [Output("members")] + public Output> Members { get; private set; } = null!; + + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// ARN of an IAM role that has permission to access the bot. + /// + /// The following arguments are optional: + /// + [Output("roleArn")] + public Output RoleArn { get; private set; } = null!; + + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + [Output("tagsAll")] + public Output> TagsAll { get; private set; } = null!; + + /// + /// List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + /// + [Output("testBotAliasTags")] + public Output?> TestBotAliasTags { get; private set; } = null!; + + [Output("timeouts")] + public Output Timeouts { get; private set; } = null!; + + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a V2modelsBot resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public V2modelsBot(string name, V2modelsBotArgs args, CustomResourceOptions? options = null) + : base("aws:lex/v2modelsBot:V2modelsBot", name, args ?? new V2modelsBotArgs(), MakeResourceOptions(options, "")) + { + } + + private V2modelsBot(string name, Input id, V2modelsBotState? state = null, CustomResourceOptions? options = null) + : base("aws:lex/v2modelsBot:V2modelsBot", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + AdditionalSecretOutputs = + { + "tagsAll", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing V2modelsBot resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static V2modelsBot Get(string name, Input id, V2modelsBotState? state = null, CustomResourceOptions? options = null) + { + return new V2modelsBot(name, id, state, options); + } + } + + public sealed class V2modelsBotArgs : global::Pulumi.ResourceArgs + { + [Input("dataPrivacies")] + private InputList? _dataPrivacies; + + /// + /// Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + /// + public InputList DataPrivacies + { + get => _dataPrivacies ?? (_dataPrivacies = new InputList()); + set => _dataPrivacies = value; + } + + /// + /// Description of the bot. It appears in lists to help you identify a particular bot. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + /// + [Input("idleSessionTtlInSeconds", required: true)] + public Input IdleSessionTtlInSeconds { get; set; } = null!; + + [Input("members")] + private InputList? _members; + + /// + /// List of bot members in a network to be created. See `bot_members`. + /// + public InputList Members + { + get => _members ?? (_members = new InputList()); + set => _members = value; + } + + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// ARN of an IAM role that has permission to access the bot. + /// + /// The following arguments are optional: + /// + [Input("roleArn", required: true)] + public Input RoleArn { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("testBotAliasTags")] + private InputMap? _testBotAliasTags; + + /// + /// List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + /// + public InputMap TestBotAliasTags + { + get => _testBotAliasTags ?? (_testBotAliasTags = new InputMap()); + set => _testBotAliasTags = value; + } + + [Input("timeouts")] + public Input? Timeouts { get; set; } + + [Input("type")] + public Input? Type { get; set; } + + public V2modelsBotArgs() + { + } + public static new V2modelsBotArgs Empty => new V2modelsBotArgs(); + } + + public sealed class V2modelsBotState : global::Pulumi.ResourceArgs + { + [Input("arn")] + public Input? Arn { get; set; } + + [Input("dataPrivacies")] + private InputList? _dataPrivacies; + + /// + /// Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + /// + public InputList DataPrivacies + { + get => _dataPrivacies ?? (_dataPrivacies = new InputList()); + set => _dataPrivacies = value; + } + + /// + /// Description of the bot. It appears in lists to help you identify a particular bot. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + /// + [Input("idleSessionTtlInSeconds")] + public Input? IdleSessionTtlInSeconds { get; set; } + + [Input("members")] + private InputList? _members; + + /// + /// List of bot members in a network to be created. See `bot_members`. + /// + public InputList Members + { + get => _members ?? (_members = new InputList()); + set => _members = value; + } + + /// + /// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// ARN of an IAM role that has permission to access the bot. + /// + /// The following arguments are optional: + /// + [Input("roleArn")] + public Input? RoleArn { get; set; } + + [Input("tags")] + private InputMap? _tags; + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("tagsAll")] + private InputMap? _tagsAll; + [Obsolete(@"Please use `tags` instead.")] + public InputMap TagsAll + { + get => _tagsAll ?? (_tagsAll = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _tagsAll = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + + [Input("testBotAliasTags")] + private InputMap? _testBotAliasTags; + + /// + /// List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + /// + public InputMap TestBotAliasTags + { + get => _testBotAliasTags ?? (_testBotAliasTags = new InputMap()); + set => _testBotAliasTags = value; + } + + [Input("timeouts")] + public Input? Timeouts { get; set; } + + [Input("type")] + public Input? Type { get; set; } + + public V2modelsBotState() + { + } + public static new V2modelsBotState Empty => new V2modelsBotState(); + } +} diff --git a/sdk/dotnet/LightSail/Bucket.cs b/sdk/dotnet/LightSail/Bucket.cs index 1a2ce24f2b0..eb1c2a191d1 100644 --- a/sdk/dotnet/LightSail/Bucket.cs +++ b/sdk/dotnet/LightSail/Bucket.cs @@ -65,6 +65,12 @@ public partial class Bucket : global::Pulumi.CustomResource [Output("createdAt")] public Output CreatedAt { get; private set; } = null!; + /// + /// Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + /// + [Output("forceDelete")] + public Output ForceDelete { get; private set; } = null!; + /// /// The name for the bucket. /// @@ -154,6 +160,12 @@ public sealed class BucketArgs : global::Pulumi.ResourceArgs [Input("bundleId", required: true)] public Input BundleId { get; set; } = null!; + /// + /// Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + /// + [Input("forceDelete")] + public Input? ForceDelete { get; set; } + /// /// The name for the bucket. /// @@ -204,6 +216,12 @@ public sealed class BucketState : global::Pulumi.ResourceArgs [Input("createdAt")] public Input? CreatedAt { get; set; } + /// + /// Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + /// + [Input("forceDelete")] + public Input? ForceDelete { get; set; } + /// /// The name for the bucket. /// diff --git a/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesArgs.cs b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesArgs.cs new file mode 100644 index 00000000000..ce05f51f9bb --- /dev/null +++ b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Inputs +{ + + public sealed class OutboundConnectionConnectionPropertiesArgs : global::Pulumi.ResourceArgs + { + /// + /// Configuration block for cross cluster search. + /// + [Input("crossClusterSearch")] + public Input? CrossClusterSearch { get; set; } + + /// + /// The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + /// + [Input("endpoint")] + public Input? Endpoint { get; set; } + + public OutboundConnectionConnectionPropertiesArgs() + { + } + public static new OutboundConnectionConnectionPropertiesArgs Empty => new OutboundConnectionConnectionPropertiesArgs(); + } +} diff --git a/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.cs b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.cs new file mode 100644 index 00000000000..7c7d35e818f --- /dev/null +++ b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Inputs +{ + + public sealed class OutboundConnectionConnectionPropertiesCrossClusterSearchArgs : global::Pulumi.ResourceArgs + { + /// + /// Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + /// + [Input("skipUnavailable")] + public Input? SkipUnavailable { get; set; } + + public OutboundConnectionConnectionPropertiesCrossClusterSearchArgs() + { + } + public static new OutboundConnectionConnectionPropertiesCrossClusterSearchArgs Empty => new OutboundConnectionConnectionPropertiesCrossClusterSearchArgs(); + } +} diff --git a/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs.cs b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs.cs new file mode 100644 index 00000000000..9ae32897eb9 --- /dev/null +++ b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Inputs +{ + + public sealed class OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + /// + [Input("skipUnavailable")] + public Input? SkipUnavailable { get; set; } + + public OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs() + { + } + public static new OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs Empty => new OutboundConnectionConnectionPropertiesCrossClusterSearchGetArgs(); + } +} diff --git a/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesGetArgs.cs b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesGetArgs.cs new file mode 100644 index 00000000000..8cd5bd329d5 --- /dev/null +++ b/sdk/dotnet/OpenSearch/Inputs/OutboundConnectionConnectionPropertiesGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Inputs +{ + + public sealed class OutboundConnectionConnectionPropertiesGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Configuration block for cross cluster search. + /// + [Input("crossClusterSearch")] + public Input? CrossClusterSearch { get; set; } + + /// + /// The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + /// + [Input("endpoint")] + public Input? Endpoint { get; set; } + + public OutboundConnectionConnectionPropertiesGetArgs() + { + } + public static new OutboundConnectionConnectionPropertiesGetArgs Empty => new OutboundConnectionConnectionPropertiesGetArgs(); + } +} diff --git a/sdk/dotnet/OpenSearch/OutboundConnection.cs b/sdk/dotnet/OpenSearch/OutboundConnection.cs index 0d103e735e2..f8913d88690 100644 --- a/sdk/dotnet/OpenSearch/OutboundConnection.cs +++ b/sdk/dotnet/OpenSearch/OutboundConnection.cs @@ -30,6 +30,7 @@ namespace Pulumi.Aws.OpenSearch /// var foo = new Aws.OpenSearch.OutboundConnection("foo", new() /// { /// ConnectionAlias = "outbound_connection", + /// ConnectionMode = "DIRECT", /// LocalDomainInfo = new Aws.OpenSearch.Inputs.OutboundConnectionLocalDomainInfoArgs /// { /// OwnerId = currentCallerIdentity.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId), @@ -58,12 +59,30 @@ namespace Pulumi.Aws.OpenSearch [AwsResourceType("aws:opensearch/outboundConnection:OutboundConnection")] public partial class OutboundConnection : global::Pulumi.CustomResource { + /// + /// Accepts the connection. + /// + [Output("acceptConnection")] + public Output AcceptConnection { get; private set; } = null!; + /// /// Specifies the connection alias that will be used by the customer for this connection. /// [Output("connectionAlias")] public Output ConnectionAlias { get; private set; } = null!; + /// + /// Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + /// + [Output("connectionMode")] + public Output ConnectionMode { get; private set; } = null!; + + /// + /// Configuration block for the outbound connection. + /// + [Output("connectionProperties")] + public Output ConnectionProperties { get; private set; } = null!; + /// /// Status of the connection request. /// @@ -128,12 +147,30 @@ public static OutboundConnection Get(string name, Input id, OutboundConn public sealed class OutboundConnectionArgs : global::Pulumi.ResourceArgs { + /// + /// Accepts the connection. + /// + [Input("acceptConnection")] + public Input? AcceptConnection { get; set; } + /// /// Specifies the connection alias that will be used by the customer for this connection. /// [Input("connectionAlias", required: true)] public Input ConnectionAlias { get; set; } = null!; + /// + /// Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + /// + [Input("connectionMode")] + public Input? ConnectionMode { get; set; } + + /// + /// Configuration block for the outbound connection. + /// + [Input("connectionProperties")] + public Input? ConnectionProperties { get; set; } + /// /// Configuration block for the local Opensearch domain. /// @@ -154,12 +191,30 @@ public OutboundConnectionArgs() public sealed class OutboundConnectionState : global::Pulumi.ResourceArgs { + /// + /// Accepts the connection. + /// + [Input("acceptConnection")] + public Input? AcceptConnection { get; set; } + /// /// Specifies the connection alias that will be used by the customer for this connection. /// [Input("connectionAlias")] public Input? ConnectionAlias { get; set; } + /// + /// Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + /// + [Input("connectionMode")] + public Input? ConnectionMode { get; set; } + + /// + /// Configuration block for the outbound connection. + /// + [Input("connectionProperties")] + public Input? ConnectionProperties { get; set; } + /// /// Status of the connection request. /// diff --git a/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionProperties.cs b/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionProperties.cs new file mode 100644 index 00000000000..68fe472acde --- /dev/null +++ b/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionProperties.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Outputs +{ + + [OutputType] + public sealed class OutboundConnectionConnectionProperties + { + /// + /// Configuration block for cross cluster search. + /// + public readonly Outputs.OutboundConnectionConnectionPropertiesCrossClusterSearch? CrossClusterSearch; + /// + /// The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + /// + public readonly string? Endpoint; + + [OutputConstructor] + private OutboundConnectionConnectionProperties( + Outputs.OutboundConnectionConnectionPropertiesCrossClusterSearch? crossClusterSearch, + + string? endpoint) + { + CrossClusterSearch = crossClusterSearch; + Endpoint = endpoint; + } + } +} diff --git a/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.cs b/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.cs new file mode 100644 index 00000000000..5f0da85e67b --- /dev/null +++ b/sdk/dotnet/OpenSearch/Outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.OpenSearch.Outputs +{ + + [OutputType] + public sealed class OutboundConnectionConnectionPropertiesCrossClusterSearch + { + /// + /// Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + /// + public readonly string? SkipUnavailable; + + [OutputConstructor] + private OutboundConnectionConnectionPropertiesCrossClusterSearch(string? skipUnavailable) + { + SkipUnavailable = skipUnavailable; + } + } +} diff --git a/sdk/dotnet/Rds/CustomDbEngineVersion.cs b/sdk/dotnet/Rds/CustomDbEngineVersion.cs new file mode 100644 index 00000000000..a0acc8c97dd --- /dev/null +++ b/sdk/dotnet/Rds/CustomDbEngineVersion.cs @@ -0,0 +1,539 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.Rds +{ + /// + /// Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). + /// + /// ## Example Usage + /// ### RDS Custom for Oracle Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleKey = new Aws.Kms.Key("exampleKey", new() + /// { + /// Description = "KMS symmetric key for RDS Custom for Oracle", + /// }); + /// + /// var exampleCustomDbEngineVersion = new Aws.Rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", new() + /// { + /// DatabaseInstallationFilesS3BucketName = "DOC-EXAMPLE-BUCKET", + /// DatabaseInstallationFilesS3Prefix = "1915_GI/", + /// Engine = "custom-oracle-ee-cdb", + /// EngineVersion = "19.cdb_cev1", + /// KmsKeyId = exampleKey.Arn, + /// Manifest = @" { + /// ""databaseInstallationFileNames"":[""V982063-01.zip""] + /// } + /// ", + /// Tags = + /// { + /// { "Name", "example" }, + /// { "Key", "value" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// ### RDS Custom for Oracle External Manifest Usage + /// + /// ```csharp + /// using System; + /// using System.Collections.Generic; + /// using System.IO; + /// using System.Linq; + /// using System.Security.Cryptography; + /// using System.Text; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// private static string ComputeFileBase64Sha256(string path) { + /// var fileData = System.Text.Encoding.UTF8.GetBytes(File.ReadAllText(path)); + /// var hashData = SHA256.Create().ComputeHash(fileData); + /// return Convert.ToBase64String(hashData); + /// } + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleKey = new Aws.Kms.Key("exampleKey", new() + /// { + /// Description = "KMS symmetric key for RDS Custom for Oracle", + /// }); + /// + /// var exampleCustomDbEngineVersion = new Aws.Rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", new() + /// { + /// DatabaseInstallationFilesS3BucketName = "DOC-EXAMPLE-BUCKET", + /// DatabaseInstallationFilesS3Prefix = "1915_GI/", + /// Engine = "custom-oracle-ee-cdb", + /// EngineVersion = "19.cdb_cev1", + /// KmsKeyId = exampleKey.Arn, + /// Filename = "manifest_1915_GI.json", + /// ManifestHash = ComputeFileBase64Sha256(manifest_1915_GI.Json), + /// Tags = + /// { + /// { "Name", "example" }, + /// { "Key", "value" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// ### RDS Custom for SQL Server Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // CEV creation requires an AMI owned by the operator + /// var test = new Aws.Rds.CustomDbEngineVersion("test", new() + /// { + /// Engine = "custom-sqlserver-se", + /// EngineVersion = "15.00.4249.2.cev-1", + /// SourceImageId = "ami-0aa12345678a12ab1", + /// }); + /// + /// }); + /// ``` + /// ### RDS Custom for SQL Server Usage with AMI from another region + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Aws.Ec2.AmiCopy("example", new() + /// { + /// Description = "A copy of ami-xxxxxxxx", + /// SourceAmiId = "ami-xxxxxxxx", + /// SourceAmiRegion = "us-east-1", + /// }); + /// + /// // CEV creation requires an AMI owned by the operator + /// var test = new Aws.Rds.CustomDbEngineVersion("test", new() + /// { + /// Engine = "custom-sqlserver-se", + /// EngineVersion = "15.00.4249.2.cev-1", + /// SourceImageId = example.Id, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { + /// + /// to = aws_rds_custom_db_engine_version.example + /// + /// id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 + /// + [AwsResourceType("aws:rds/customDbEngineVersion:CustomDbEngineVersion")] + public partial class CustomDbEngineVersion : global::Pulumi.CustomResource + { + /// + /// The Amazon Resource Name (ARN) for the custom engine version. + /// + [Output("arn")] + public Output Arn { get; private set; } = null!; + + /// + /// The date and time that the CEV was created. + /// + [Output("createTime")] + public Output CreateTime { get; private set; } = null!; + + /// + /// The name of the Amazon S3 bucket that contains the database installation files. + /// + [Output("databaseInstallationFilesS3BucketName")] + public Output DatabaseInstallationFilesS3BucketName { get; private set; } = null!; + + /// + /// The prefix for the Amazon S3 bucket that contains the database installation files. + /// + [Output("databaseInstallationFilesS3Prefix")] + public Output DatabaseInstallationFilesS3Prefix { get; private set; } = null!; + + /// + /// The name of the DB parameter group family for the CEV. + /// + [Output("dbParameterGroupFamily")] + public Output DbParameterGroupFamily { get; private set; } = null!; + + /// + /// The description of the CEV. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + /// + [Output("engine")] + public Output Engine { get; private set; } = null!; + + /// + /// The version of the database engine. + /// + [Output("engineVersion")] + public Output EngineVersion { get; private set; } = null!; + + /// + /// The name of the manifest file within the local filesystem. Conflicts with `manifest`. + /// + [Output("filename")] + public Output Filename { get; private set; } = null!; + + /// + /// The ID of the AMI that was created with the CEV. + /// + [Output("imageId")] + public Output ImageId { get; private set; } = null!; + + /// + /// The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + /// + [Output("kmsKeyId")] + public Output KmsKeyId { get; private set; } = null!; + + /// + /// The major version of the database engine. + /// + [Output("majorEngineVersion")] + public Output MajorEngineVersion { get; private set; } = null!; + + /// + /// The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + /// + [Output("manifest")] + public Output Manifest { get; private set; } = null!; + + /// + /// The returned manifest file, in JSON format, service generated and often different from input `manifest`. + /// + [Output("manifestComputed")] + public Output ManifestComputed { get; private set; } = null!; + + /// + /// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + /// + [Output("manifestHash")] + public Output ManifestHash { get; private set; } = null!; + + /// + /// The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + /// + [Output("sourceImageId")] + public Output SourceImageId { get; private set; } = null!; + + /// + /// The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + /// + [Output("status")] + public Output Status { get; private set; } = null!; + + /// + /// A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + /// + /// A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + /// + [Output("tagsAll")] + public Output> TagsAll { get; private set; } = null!; + + + /// + /// Create a CustomDbEngineVersion resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public CustomDbEngineVersion(string name, CustomDbEngineVersionArgs args, CustomResourceOptions? options = null) + : base("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, args ?? new CustomDbEngineVersionArgs(), MakeResourceOptions(options, "")) + { + } + + private CustomDbEngineVersion(string name, Input id, CustomDbEngineVersionState? state = null, CustomResourceOptions? options = null) + : base("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + AdditionalSecretOutputs = + { + "tagsAll", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing CustomDbEngineVersion resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static CustomDbEngineVersion Get(string name, Input id, CustomDbEngineVersionState? state = null, CustomResourceOptions? options = null) + { + return new CustomDbEngineVersion(name, id, state, options); + } + } + + public sealed class CustomDbEngineVersionArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Amazon S3 bucket that contains the database installation files. + /// + [Input("databaseInstallationFilesS3BucketName")] + public Input? DatabaseInstallationFilesS3BucketName { get; set; } + + /// + /// The prefix for the Amazon S3 bucket that contains the database installation files. + /// + [Input("databaseInstallationFilesS3Prefix")] + public Input? DatabaseInstallationFilesS3Prefix { get; set; } + + /// + /// The description of the CEV. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + /// + [Input("engine", required: true)] + public Input Engine { get; set; } = null!; + + /// + /// The version of the database engine. + /// + [Input("engineVersion", required: true)] + public Input EngineVersion { get; set; } = null!; + + /// + /// The name of the manifest file within the local filesystem. Conflicts with `manifest`. + /// + [Input("filename")] + public Input? Filename { get; set; } + + /// + /// The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + /// + [Input("kmsKeyId")] + public Input? KmsKeyId { get; set; } + + /// + /// The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + /// + [Input("manifest")] + public Input? Manifest { get; set; } + + /// + /// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + /// + [Input("manifestHash")] + public Input? ManifestHash { get; set; } + + /// + /// The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + /// + [Input("sourceImageId")] + public Input? SourceImageId { get; set; } + + /// + /// The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + /// + [Input("status")] + public Input? Status { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public CustomDbEngineVersionArgs() + { + } + public static new CustomDbEngineVersionArgs Empty => new CustomDbEngineVersionArgs(); + } + + public sealed class CustomDbEngineVersionState : global::Pulumi.ResourceArgs + { + /// + /// The Amazon Resource Name (ARN) for the custom engine version. + /// + [Input("arn")] + public Input? Arn { get; set; } + + /// + /// The date and time that the CEV was created. + /// + [Input("createTime")] + public Input? CreateTime { get; set; } + + /// + /// The name of the Amazon S3 bucket that contains the database installation files. + /// + [Input("databaseInstallationFilesS3BucketName")] + public Input? DatabaseInstallationFilesS3BucketName { get; set; } + + /// + /// The prefix for the Amazon S3 bucket that contains the database installation files. + /// + [Input("databaseInstallationFilesS3Prefix")] + public Input? DatabaseInstallationFilesS3Prefix { get; set; } + + /// + /// The name of the DB parameter group family for the CEV. + /// + [Input("dbParameterGroupFamily")] + public Input? DbParameterGroupFamily { get; set; } + + /// + /// The description of the CEV. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + /// + [Input("engine")] + public Input? Engine { get; set; } + + /// + /// The version of the database engine. + /// + [Input("engineVersion")] + public Input? EngineVersion { get; set; } + + /// + /// The name of the manifest file within the local filesystem. Conflicts with `manifest`. + /// + [Input("filename")] + public Input? Filename { get; set; } + + /// + /// The ID of the AMI that was created with the CEV. + /// + [Input("imageId")] + public Input? ImageId { get; set; } + + /// + /// The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + /// + [Input("kmsKeyId")] + public Input? KmsKeyId { get; set; } + + /// + /// The major version of the database engine. + /// + [Input("majorEngineVersion")] + public Input? MajorEngineVersion { get; set; } + + /// + /// The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + /// + [Input("manifest")] + public Input? Manifest { get; set; } + + /// + /// The returned manifest file, in JSON format, service generated and often different from input `manifest`. + /// + [Input("manifestComputed")] + public Input? ManifestComputed { get; set; } + + /// + /// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + /// + [Input("manifestHash")] + public Input? ManifestHash { get; set; } + + /// + /// The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + /// + [Input("sourceImageId")] + public Input? SourceImageId { get; set; } + + /// + /// The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + /// + [Input("status")] + public Input? Status { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + [Input("tagsAll")] + private InputMap? _tagsAll; + + /// + /// A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + /// + [Obsolete(@"Please use `tags` instead.")] + public InputMap TagsAll + { + get => _tagsAll ?? (_tagsAll = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _tagsAll = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + + public CustomDbEngineVersionState() + { + } + public static new CustomDbEngineVersionState Empty => new CustomDbEngineVersionState(); + } +} diff --git a/sdk/dotnet/Route53/HostedZoneDnsSec.cs b/sdk/dotnet/Route53/HostedZoneDnsSec.cs index c8b6bdf1a6b..c72191238ae 100644 --- a/sdk/dotnet/Route53/HostedZoneDnsSec.cs +++ b/sdk/dotnet/Route53/HostedZoneDnsSec.cs @@ -14,6 +14,8 @@ namespace Pulumi.Aws.Route53 /// /// !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. /// + /// > **Note:** Route53 hosted zones are global resources, and as such any `aws.kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `aws.kms.Key` resource as described in the provider alias documentation. + /// /// ## Example Usage /// /// ```csharp diff --git a/sdk/dotnet/S3/GetBucketObject.cs b/sdk/dotnet/S3/GetBucketObject.cs index b4e3f578b13..918bd45db82 100644 --- a/sdk/dotnet/S3/GetBucketObject.cs +++ b/sdk/dotnet/S3/GetBucketObject.cs @@ -306,7 +306,7 @@ public sealed class GetBucketObjectResult /// public readonly string LastModified; /// - /// Map of metadata stored with the object in S3 + /// Map of metadata stored with the object in S3. Keys are always returned in lowercase. /// public readonly ImmutableDictionary Metadata; /// diff --git a/sdk/dotnet/S3/GetObject.cs b/sdk/dotnet/S3/GetObject.cs index 2405ad95a63..08e1de33f4b 100644 --- a/sdk/dotnet/S3/GetObject.cs +++ b/sdk/dotnet/S3/GetObject.cs @@ -331,7 +331,7 @@ public sealed class GetObjectResult /// public readonly string LastModified; /// - /// Map of metadata stored with the object in S3 + /// Map of metadata stored with the object in S3. Keys are always returned in lowercase. /// public readonly ImmutableDictionary Metadata; /// diff --git a/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationArgs.cs b/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationArgs.cs index 1a56a773e33..da8f2f91d13 100644 --- a/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationArgs.cs +++ b/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationArgs.cs @@ -13,15 +13,13 @@ namespace Pulumi.Aws.Sfn.Inputs public sealed class AliasRoutingConfigurationArgs : global::Pulumi.ResourceArgs { /// - /// A version of the state machine. + /// The Amazon Resource Name (ARN) of the state machine version. /// [Input("stateMachineVersionArn", required: true)] public Input StateMachineVersionArn { get; set; } = null!; /// /// Percentage of traffic routed to the state machine version. - /// - /// The following arguments are optional: /// [Input("weight", required: true)] public Input Weight { get; set; } = null!; diff --git a/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationGetArgs.cs b/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationGetArgs.cs index 691658d0b21..2d484d0e866 100644 --- a/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationGetArgs.cs +++ b/sdk/dotnet/Sfn/Inputs/AliasRoutingConfigurationGetArgs.cs @@ -13,15 +13,13 @@ namespace Pulumi.Aws.Sfn.Inputs public sealed class AliasRoutingConfigurationGetArgs : global::Pulumi.ResourceArgs { /// - /// A version of the state machine. + /// The Amazon Resource Name (ARN) of the state machine version. /// [Input("stateMachineVersionArn", required: true)] public Input StateMachineVersionArn { get; set; } = null!; /// /// Percentage of traffic routed to the state machine version. - /// - /// The following arguments are optional: /// [Input("weight", required: true)] public Input Weight { get; set; } = null!; diff --git a/sdk/dotnet/Sfn/Outputs/AliasRoutingConfiguration.cs b/sdk/dotnet/Sfn/Outputs/AliasRoutingConfiguration.cs index 30cc9c27b5c..f63d49191a4 100644 --- a/sdk/dotnet/Sfn/Outputs/AliasRoutingConfiguration.cs +++ b/sdk/dotnet/Sfn/Outputs/AliasRoutingConfiguration.cs @@ -14,13 +14,11 @@ namespace Pulumi.Aws.Sfn.Outputs public sealed class AliasRoutingConfiguration { /// - /// A version of the state machine. + /// The Amazon Resource Name (ARN) of the state machine version. /// public readonly string StateMachineVersionArn; /// /// Percentage of traffic routed to the state machine version. - /// - /// The following arguments are optional: /// public readonly int Weight; diff --git a/sdk/dotnet/VpcLattice/GetService.cs b/sdk/dotnet/VpcLattice/GetService.cs index 4b5f61fd99a..735b6884c9c 100644 --- a/sdk/dotnet/VpcLattice/GetService.cs +++ b/sdk/dotnet/VpcLattice/GetService.cs @@ -80,7 +80,7 @@ public sealed class GetServiceArgs : global::Pulumi.InvokeArgs public string? Name { get; set; } /// - /// ID or Amazon Resource Name (ARN) of the service network. + /// ID or Amazon Resource Name (ARN) of the service. /// [Input("serviceIdentifier")] public string? ServiceIdentifier { get; set; } @@ -112,7 +112,7 @@ public sealed class GetServiceInvokeArgs : global::Pulumi.InvokeArgs public Input? Name { get; set; } /// - /// ID or Amazon Resource Name (ARN) of the service network. + /// ID or Amazon Resource Name (ARN) of the service. /// [Input("serviceIdentifier")] public Input? ServiceIdentifier { get; set; } diff --git a/sdk/dotnet/VpcLattice/GetServiceNetwork.cs b/sdk/dotnet/VpcLattice/GetServiceNetwork.cs index 79ea20b8da1..daea730a1b6 100644 --- a/sdk/dotnet/VpcLattice/GetServiceNetwork.cs +++ b/sdk/dotnet/VpcLattice/GetServiceNetwork.cs @@ -29,7 +29,7 @@ public static class GetServiceNetwork /// { /// var example = Aws.VpcLattice.GetServiceNetwork.Invoke(new() /// { - /// ServiceNetworkIdentifier = "", + /// ServiceNetworkIdentifier = "snsa-01112223334445556", /// }); /// /// }); @@ -58,7 +58,7 @@ public static Task InvokeAsync(GetServiceNetworkArgs ar /// { /// var example = Aws.VpcLattice.GetServiceNetwork.Invoke(new() /// { - /// ServiceNetworkIdentifier = "", + /// ServiceNetworkIdentifier = "snsa-01112223334445556", /// }); /// /// }); @@ -74,7 +74,7 @@ public static Output Invoke(GetServiceNetworkInvokeArgs public sealed class GetServiceNetworkArgs : global::Pulumi.InvokeArgs { /// - /// Identifier of the network service. + /// Identifier of the service network. /// [Input("serviceNetworkIdentifier", required: true)] public string ServiceNetworkIdentifier { get; set; } = null!; @@ -96,7 +96,7 @@ public GetServiceNetworkArgs() public sealed class GetServiceNetworkInvokeArgs : global::Pulumi.InvokeArgs { /// - /// Identifier of the network service. + /// Identifier of the service network. /// [Input("serviceNetworkIdentifier", required: true)] public Input ServiceNetworkIdentifier { get; set; } = null!; diff --git a/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetArgs.cs b/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetArgs.cs index bba6ea236a1..340d059774c 100644 --- a/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetArgs.cs +++ b/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetArgs.cs @@ -19,7 +19,7 @@ public sealed class TargetGroupAttachmentTargetArgs : global::Pulumi.ResourceArg public Input Id { get; set; } = null!; /// - /// The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + /// This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. /// [Input("port")] public Input? Port { get; set; } diff --git a/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetGetArgs.cs b/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetGetArgs.cs index 97c20761cac..694c09733ef 100644 --- a/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetGetArgs.cs +++ b/sdk/dotnet/VpcLattice/Inputs/TargetGroupAttachmentTargetGetArgs.cs @@ -19,7 +19,7 @@ public sealed class TargetGroupAttachmentTargetGetArgs : global::Pulumi.Resource public Input Id { get; set; } = null!; /// - /// The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + /// This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. /// [Input("port")] public Input? Port { get; set; } diff --git a/sdk/dotnet/VpcLattice/ListenerRule.cs b/sdk/dotnet/VpcLattice/ListenerRule.cs index 066168aa2f4..a195486aecc 100644 --- a/sdk/dotnet/VpcLattice/ListenerRule.cs +++ b/sdk/dotnet/VpcLattice/ListenerRule.cs @@ -129,13 +129,13 @@ namespace Pulumi.Aws.VpcLattice public partial class ListenerRule : global::Pulumi.CustomResource { /// - /// The action for the default rule. + /// The action for the listener rule. /// [Output("action")] public Output Action { get; private set; } = null!; /// - /// ARN of the target group. + /// The ARN for the listener rule. /// [Output("arn")] public Output Arn { get; private set; } = null!; @@ -167,7 +167,7 @@ public partial class ListenerRule : global::Pulumi.CustomResource public Output Priority { get; private set; } = null!; /// - /// Unique identifier for the target group. + /// Unique identifier for the listener rule. /// [Output("ruleId")] public Output RuleId { get; private set; } = null!; @@ -241,7 +241,7 @@ public static ListenerRule Get(string name, Input id, ListenerRuleState? public sealed class ListenerRuleArgs : global::Pulumi.ResourceArgs { /// - /// The action for the default rule. + /// The action for the listener rule. /// [Input("action", required: true)] public Input Action { get; set; } = null!; @@ -299,13 +299,13 @@ public ListenerRuleArgs() public sealed class ListenerRuleState : global::Pulumi.ResourceArgs { /// - /// The action for the default rule. + /// The action for the listener rule. /// [Input("action")] public Input? Action { get; set; } /// - /// ARN of the target group. + /// The ARN for the listener rule. /// [Input("arn")] public Input? Arn { get; set; } @@ -337,7 +337,7 @@ public sealed class ListenerRuleState : global::Pulumi.ResourceArgs public Input? Priority { get; set; } /// - /// Unique identifier for the target group. + /// Unique identifier for the listener rule. /// [Input("ruleId")] public Input? RuleId { get; set; } diff --git a/sdk/dotnet/VpcLattice/Outputs/TargetGroupAttachmentTarget.cs b/sdk/dotnet/VpcLattice/Outputs/TargetGroupAttachmentTarget.cs index aa531af55d1..6e917f5b3d2 100644 --- a/sdk/dotnet/VpcLattice/Outputs/TargetGroupAttachmentTarget.cs +++ b/sdk/dotnet/VpcLattice/Outputs/TargetGroupAttachmentTarget.cs @@ -18,7 +18,7 @@ public sealed class TargetGroupAttachmentTarget /// public readonly string Id; /// - /// The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + /// This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. /// public readonly int? Port; diff --git a/sdk/dotnet/VpcLattice/TargetGroup.cs b/sdk/dotnet/VpcLattice/TargetGroup.cs index 639110b9cb7..485db32cd2b 100644 --- a/sdk/dotnet/VpcLattice/TargetGroup.cs +++ b/sdk/dotnet/VpcLattice/TargetGroup.cs @@ -28,9 +28,9 @@ namespace Pulumi.Aws.VpcLattice /// Type = "INSTANCE", /// Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs /// { + /// VpcIdentifier = aws_vpc.Example.Id, /// Port = 443, /// Protocol = "HTTPS", - /// VpcIdentifier = aws_vpc.Example.Id, /// }, /// }); /// @@ -48,12 +48,13 @@ namespace Pulumi.Aws.VpcLattice /// { /// var example = new Aws.VpcLattice.TargetGroup("example", new() /// { - /// Type = "ALB", + /// Type = "IP", /// Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs /// { + /// VpcIdentifier = aws_vpc.Example.Id, + /// IpAddressType = "IPV4", /// Port = 443, /// Protocol = "HTTPS", - /// VpcIdentifier = aws_vpc.Example.Id, /// ProtocolVersion = "HTTP1", /// HealthCheck = new Aws.VpcLattice.Inputs.TargetGroupConfigHealthCheckArgs /// { @@ -76,6 +77,32 @@ namespace Pulumi.Aws.VpcLattice /// /// }); /// ``` + /// ### ALB + /// + /// If the type is ALB, `health_check` block is not supported. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Aws.VpcLattice.TargetGroup("example", new() + /// { + /// Type = "ALB", + /// Config = new Aws.VpcLattice.Inputs.TargetGroupConfigArgs + /// { + /// VpcIdentifier = aws_vpc.Example.Id, + /// Port = 443, + /// Protocol = "HTTPS", + /// ProtocolVersion = "HTTP1", + /// }, + /// }); + /// + /// }); + /// ``` /// ### Lambda /// /// If the type is Lambda, `config` block is not supported. diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementArgs.cs index b80a869385a..a5504ec1b4b 100644 --- a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementArgs.cs @@ -13,11 +13,23 @@ namespace Pulumi.Aws.WafV2.Inputs public sealed class RuleGroupRuleStatementRateBasedStatementArgs : global::Pulumi.ResourceArgs { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. /// [Input("aggregateKeyType")] public Input? AggregateKeyType { get; set; } + [Input("customKeys")] + private InputList? _customKeys; + + /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public InputList CustomKeys + { + get => _customKeys ?? (_customKeys = new InputList()); + set => _customKeys = value; + } + /// /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. /// diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.cs new file mode 100644 index 00000000000..c1e78d207aa --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyArgs : global::Pulumi.ResourceArgs + { + /// + /// (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + [Input("cookie")] + public Input? Cookie { get; set; } + + /// + /// (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + [Input("forwardedIp")] + public Input? ForwardedIp { get; set; } + + /// + /// (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + [Input("header")] + public Input? Header { get; set; } + + /// + /// (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + [Input("httpMethod")] + public Input? HttpMethod { get; set; } + + /// + /// (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + [Input("ip")] + public Input? Ip { get; set; } + + /// + /// (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + [Input("labelNamespace")] + public Input? LabelNamespace { get; set; } + + /// + /// (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + [Input("queryArgument")] + public Input? QueryArgument { get; set; } + + /// + /// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + /// + [Input("queryString")] + public Input? QueryString { get; set; } + + /// + /// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + /// + [Input("uriPath")] + public Input? UriPath { get; set; } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.cs new file mode 100644 index 00000000000..a297d632a37 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs new file mode 100644 index 00000000000..eaa51316f14 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs new file mode 100644 index 00000000000..8fd3ee84d0e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs new file mode 100644 index 00000000000..ae93616006e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs new file mode 100644 index 00000000000..724b2a0cc4d --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs new file mode 100644 index 00000000000..6c51a81dc5a --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs.cs new file mode 100644 index 00000000000..ca353c48586 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs : global::Pulumi.ResourceArgs + { + /// + /// (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + [Input("cookie")] + public Input? Cookie { get; set; } + + /// + /// (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + [Input("forwardedIp")] + public Input? ForwardedIp { get; set; } + + /// + /// (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + [Input("header")] + public Input? Header { get; set; } + + /// + /// (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + [Input("httpMethod")] + public Input? HttpMethod { get; set; } + + /// + /// (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + [Input("ip")] + public Input? Ip { get; set; } + + /// + /// (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + [Input("labelNamespace")] + public Input? LabelNamespace { get; set; } + + /// + /// (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + [Input("queryArgument")] + public Input? QueryArgument { get; set; } + + /// + /// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + /// + [Input("queryString")] + public Input? QueryString { get; set; } + + /// + /// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + /// + [Input("uriPath")] + public Input? UriPath { get; set; } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs new file mode 100644 index 00000000000..473f687d73e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs new file mode 100644 index 00000000000..774311a23f9 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs new file mode 100644 index 00000000000..d4f9c5fff34 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs new file mode 100644 index 00000000000..2d776c90b53 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs new file mode 100644 index 00000000000..0c52e547513 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs new file mode 100644 index 00000000000..8c46c04831a --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.cs new file mode 100644 index 00000000000..86c2ffc7481 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs new file mode 100644 index 00000000000..db9c4c8d159 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs : global::Pulumi.ResourceArgs + { + public RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyIpGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs new file mode 100644 index 00000000000..811fbdf279d --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs : global::Pulumi.ResourceArgs + { + /// + /// The namespace to use for aggregation + /// + [Input("namespace", required: true)] + public Input Namespace { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs new file mode 100644 index 00000000000..97cd45eb4b0 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The namespace to use for aggregation + /// + [Input("namespace", required: true)] + public Input Namespace { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs new file mode 100644 index 00000000000..ace76c4b3cc --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs new file mode 100644 index 00000000000..c29fda0d64c --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs : global::Pulumi.ResourceArgs + { + /// + /// A friendly name of the rule group. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs new file mode 100644 index 00000000000..ec3bccca394 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs new file mode 100644 index 00000000000..297359e5cc2 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs new file mode 100644 index 00000000000..d7692f4bfd8 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs new file mode 100644 index 00000000000..0da7e2fca60 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs new file mode 100644 index 00000000000..d454bfbc97b --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs new file mode 100644 index 00000000000..19226d6f0e4 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs new file mode 100644 index 00000000000..7259cb78c63 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs new file mode 100644 index 00000000000..b9e5aeb672e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs new file mode 100644 index 00000000000..d2218e78cc8 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs new file mode 100644 index 00000000000..feac19cf9ce --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs() + { + } + public static new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs Empty => new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementGetArgs.cs b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementGetArgs.cs index cac0cc14764..5e9026e7637 100644 --- a/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementGetArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/RuleGroupRuleStatementRateBasedStatementGetArgs.cs @@ -13,11 +13,23 @@ namespace Pulumi.Aws.WafV2.Inputs public sealed class RuleGroupRuleStatementRateBasedStatementGetArgs : global::Pulumi.ResourceArgs { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. /// [Input("aggregateKeyType")] public Input? AggregateKeyType { get; set; } + [Input("customKeys")] + private InputList? _customKeys; + + /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public InputList CustomKeys + { + get => _customKeys ?? (_customKeys = new InputList()); + set => _customKeys = value; + } + /// /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. /// diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.cs index ae323a300bb..93d15709273 100644 --- a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.cs @@ -25,7 +25,7 @@ public InputList FailureValues } /// - /// The name of the header to match against. The name must be an exact match, including case. + /// The name of the header to use. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderGetArgs.cs index 8ff7b5094f7..31e21b7eb76 100644 --- a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderGetArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderGetArgs.cs @@ -25,7 +25,7 @@ public InputList FailureValues } /// - /// The name of the header to match against. The name must be an exact match, including case. + /// The name of the header to use. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementArgs.cs index 2369baf1ba8..3dbf32ad9b0 100644 --- a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementArgs.cs @@ -13,11 +13,23 @@ namespace Pulumi.Aws.WafV2.Inputs public sealed class WebAclRuleStatementRateBasedStatementArgs : global::Pulumi.ResourceArgs { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. /// [Input("aggregateKeyType")] public Input? AggregateKeyType { get; set; } + [Input("customKeys")] + private InputList? _customKeys; + + /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public InputList CustomKeys + { + get => _customKeys ?? (_customKeys = new InputList()); + set => _customKeys = value; + } + /// /// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. /// diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.cs new file mode 100644 index 00000000000..5152084bfda --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyArgs : global::Pulumi.ResourceArgs + { + /// + /// Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + [Input("cookie")] + public Input? Cookie { get; set; } + + /// + /// Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + [Input("forwardedIp")] + public Input? ForwardedIp { get; set; } + + /// + /// Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + [Input("header")] + public Input? Header { get; set; } + + /// + /// Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + [Input("httpMethod")] + public Input? HttpMethod { get; set; } + + /// + /// Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + [Input("ip")] + public Input? Ip { get; set; } + + /// + /// Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + [Input("labelNamespace")] + public Input? LabelNamespace { get; set; } + + /// + /// Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + [Input("queryArgument")] + public Input? QueryArgument { get; set; } + + /// + /// Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + /// + [Input("queryString")] + public Input? QueryString { get; set; } + + /// + /// Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + /// + [Input("uriPath")] + public Input? UriPath { get; set; } + + public WebAclRuleStatementRateBasedStatementCustomKeyArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.cs new file mode 100644 index 00000000000..d9a1c43dcb6 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the cookie to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs new file mode 100644 index 00000000000..ec0d1ad339b --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the cookie to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyCookieGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs new file mode 100644 index 00000000000..b66b14bbf27 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs new file mode 100644 index 00000000000..da97897e208 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs new file mode 100644 index 00000000000..70c0cce26c2 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs new file mode 100644 index 00000000000..b21884c8786 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyGetArgs.cs new file mode 100644 index 00000000000..56054d1ace3 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyGetArgs.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + [Input("cookie")] + public Input? Cookie { get; set; } + + /// + /// Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + [Input("forwardedIp")] + public Input? ForwardedIp { get; set; } + + /// + /// Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + [Input("header")] + public Input? Header { get; set; } + + /// + /// Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + [Input("httpMethod")] + public Input? HttpMethod { get; set; } + + /// + /// Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + [Input("ip")] + public Input? Ip { get; set; } + + /// + /// Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + [Input("labelNamespace")] + public Input? LabelNamespace { get; set; } + + /// + /// Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + [Input("queryArgument")] + public Input? QueryArgument { get; set; } + + /// + /// Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + /// + [Input("queryString")] + public Input? QueryString { get; set; } + + /// + /// Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + /// + [Input("uriPath")] + public Input? UriPath { get; set; } + + public WebAclRuleStatementRateBasedStatementCustomKeyGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs new file mode 100644 index 00000000000..47e2023c38e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the header to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs new file mode 100644 index 00000000000..b778ac21e67 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the header to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHeaderGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs new file mode 100644 index 00000000000..e6d59bc868d --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs new file mode 100644 index 00000000000..1322bd6197a --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs new file mode 100644 index 00000000000..32dcfc084b0 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs new file mode 100644 index 00000000000..ca0b6e18df5 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.cs new file mode 100644 index 00000000000..128bf5f2ba4 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyIpArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyIpArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyIpArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyIpArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs new file mode 100644 index 00000000000..d90a0fd81ae --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs.cs @@ -0,0 +1,20 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs : global::Pulumi.ResourceArgs + { + public WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyIpGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs new file mode 100644 index 00000000000..4b512ef3a58 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs : global::Pulumi.ResourceArgs + { + /// + /// The namespace to use for aggregation + /// + [Input("namespace", required: true)] + public Input Namespace { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs new file mode 100644 index 00000000000..52252dbb910 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The namespace to use for aggregation + /// + [Input("namespace", required: true)] + public Input Namespace { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs new file mode 100644 index 00000000000..4ab6b413817 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the query argument to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs new file mode 100644 index 00000000000..fe40c57b0af --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the query argument to use. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs new file mode 100644 index 00000000000..0f6221b88bc --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs new file mode 100644 index 00000000000..4f63c45e8d0 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs new file mode 100644 index 00000000000..6371f812487 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs new file mode 100644 index 00000000000..74721c91c0e --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs new file mode 100644 index 00000000000..046cc626343 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs new file mode 100644 index 00000000000..0560f407392 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs new file mode 100644 index 00000000000..31d2939725f --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs new file mode 100644 index 00000000000..100f565d290 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs : global::Pulumi.ResourceArgs + { + [Input("textTransformations", required: true)] + private InputList? _textTransformations; + + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public InputList TextTransformations + { + get => _textTransformations ?? (_textTransformations = new InputList()); + set => _textTransformations = value; + } + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyUriPathGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs new file mode 100644 index 00000000000..d91db5857af --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs new file mode 100644 index 00000000000..1a8deb0afc7 --- /dev/null +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Inputs +{ + + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + [Input("priority", required: true)] + public Input Priority { get; set; } = null!; + + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + [Input("type", required: true)] + public Input Type { get; set; } = null!; + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs() + { + } + public static new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs Empty => new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationGetArgs(); + } +} diff --git a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementGetArgs.cs b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementGetArgs.cs index 0c40a33becc..f57838a24b6 100644 --- a/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementGetArgs.cs +++ b/sdk/dotnet/WafV2/Inputs/WebAclRuleStatementRateBasedStatementGetArgs.cs @@ -13,11 +13,23 @@ namespace Pulumi.Aws.WafV2.Inputs public sealed class WebAclRuleStatementRateBasedStatementGetArgs : global::Pulumi.ResourceArgs { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. /// [Input("aggregateKeyType")] public Input? AggregateKeyType { get; set; } + [Input("customKeys")] + private InputList? _customKeys; + + /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public InputList CustomKeys + { + get => _customKeys ?? (_customKeys = new InputList()); + set => _customKeys = value; + } + /// /// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. /// diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatement.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatement.cs index bad8d3ef06e..bbb002b97db 100644 --- a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatement.cs +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatement.cs @@ -14,10 +14,14 @@ namespace Pulumi.Aws.WafV2.Outputs public sealed class RuleGroupRuleStatementRateBasedStatement { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. /// public readonly string? AggregateKeyType; /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public readonly ImmutableArray CustomKeys; + /// /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. /// public readonly Outputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfig? ForwardedIpConfig; @@ -34,6 +38,8 @@ public sealed class RuleGroupRuleStatementRateBasedStatement private RuleGroupRuleStatementRateBasedStatement( string? aggregateKeyType, + ImmutableArray customKeys, + Outputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfig? forwardedIpConfig, int limit, @@ -41,6 +47,7 @@ private RuleGroupRuleStatementRateBasedStatement( Outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatement? scopeDownStatement) { AggregateKeyType = aggregateKeyType; + CustomKeys = customKeys; ForwardedIpConfig = forwardedIpConfig; Limit = limit; ScopeDownStatement = scopeDownStatement; diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.cs new file mode 100644 index 00000000000..24ae00e56c6 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.cs @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKey + { + /// + /// (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie? Cookie; + /// + /// (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp? ForwardedIp; + /// + /// (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader? Header; + /// + /// (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod? HttpMethod; + /// + /// (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIp? Ip; + /// + /// (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace? LabelNamespace; + /// + /// (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument? QueryArgument; + /// + /// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString? QueryString; + /// + /// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + /// + public readonly Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath? UriPath; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKey( + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie? cookie, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp? forwardedIp, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader? header, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod? httpMethod, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIp? ip, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace? labelNamespace, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument? queryArgument, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString? queryString, + + Outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath? uriPath) + { + Cookie = cookie; + ForwardedIp = forwardedIp; + Header = header; + HttpMethod = httpMethod; + Ip = ip; + LabelNamespace = labelNamespace; + QueryArgument = queryArgument; + QueryString = queryString; + UriPath = uriPath; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.cs new file mode 100644 index 00000000000..627cad96c3e --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.cs @@ -0,0 +1,47 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookie + { + /// + /// A friendly name of the rule group. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookie( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs new file mode 100644 index 00000000000..2c18e18c455 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.cs new file mode 100644 index 00000000000..143ebe6534c --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp + { + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.cs new file mode 100644 index 00000000000..8a6f5a38e1c --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.cs @@ -0,0 +1,47 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeader + { + /// + /// A friendly name of the rule group. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeader( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs new file mode 100644 index 00000000000..d4598348b37 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.cs new file mode 100644 index 00000000000..ff3c73ff004 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod + { + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.cs new file mode 100644 index 00000000000..e2c9027dd7b --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyIp + { + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyIp() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs new file mode 100644 index 00000000000..f28006b2dda --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace + { + /// + /// The namespace to use for aggregation + /// + public readonly string Namespace; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace(string @namespace) + { + Namespace = @namespace; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.cs new file mode 100644 index 00000000000..32689ebfe60 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.cs @@ -0,0 +1,47 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument + { + /// + /// A friendly name of the rule group. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs new file mode 100644 index 00000000000..9210455333a --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.cs new file mode 100644 index 00000000000..4dbda515c8d --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString + { + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString(ImmutableArray textTransformations) + { + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs new file mode 100644 index 00000000000..0264977489d --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.cs new file mode 100644 index 00000000000..085313d8581 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath + { + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// At least one required. + /// See Text Transformation below for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath(ImmutableArray textTransformations) + { + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs new file mode 100644 index 00000000000..46dc35be357 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation + { + /// + /// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.cs index 07e1a46be50..1429bcb1d41 100644 --- a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.cs +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.cs @@ -18,7 +18,7 @@ public sealed class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroup /// public readonly ImmutableArray FailureValues; /// - /// The name of the header to match against. The name must be an exact match, including case. + /// The name of the header to use. /// public readonly string Name; /// diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatement.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatement.cs index 541db6196ed..19bbde83a0f 100644 --- a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatement.cs +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatement.cs @@ -14,10 +14,14 @@ namespace Pulumi.Aws.WafV2.Outputs public sealed class WebAclRuleStatementRateBasedStatement { /// - /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + /// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. /// public readonly string? AggregateKeyType; /// + /// Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + /// + public readonly ImmutableArray CustomKeys; + /// /// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. /// public readonly Outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig? ForwardedIpConfig; @@ -34,6 +38,8 @@ public sealed class WebAclRuleStatementRateBasedStatement private WebAclRuleStatementRateBasedStatement( string? aggregateKeyType, + ImmutableArray customKeys, + Outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig? forwardedIpConfig, int limit, @@ -41,6 +47,7 @@ private WebAclRuleStatementRateBasedStatement( Outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement? scopeDownStatement) { AggregateKeyType = aggregateKeyType; + CustomKeys = customKeys; ForwardedIpConfig = forwardedIpConfig; Limit = limit; ScopeDownStatement = scopeDownStatement; diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKey.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKey.cs new file mode 100644 index 00000000000..97df325bac9 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKey.cs @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKey + { + /// + /// Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie? Cookie; + /// + /// Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp? ForwardedIp; + /// + /// Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeader? Header; + /// + /// Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod? HttpMethod; + /// + /// Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyIp? Ip; + /// + /// Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace? LabelNamespace; + /// + /// Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument? QueryArgument; + /// + /// Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryString? QueryString; + /// + /// Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + /// + public readonly Outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPath? UriPath; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKey( + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie? cookie, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp? forwardedIp, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeader? header, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod? httpMethod, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyIp? ip, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace? labelNamespace, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument? queryArgument, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryString? queryString, + + Outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPath? uriPath) + { + Cookie = cookie; + ForwardedIp = forwardedIp; + Header = header; + HttpMethod = httpMethod; + Ip = ip; + LabelNamespace = labelNamespace; + QueryArgument = queryArgument; + QueryString = queryString; + UriPath = uriPath; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.cs new file mode 100644 index 00000000000..88b395e6b61 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookie + { + /// + /// The name of the cookie to use. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyCookie( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs new file mode 100644 index 00000000000..3049685dd8b --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.cs new file mode 100644 index 00000000000..203f8b1e594 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp + { + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.cs new file mode 100644 index 00000000000..28466bcabb1 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeader + { + /// + /// The name of the header to use. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyHeader( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs new file mode 100644 index 00000000000..646889c4bc7 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.cs new file mode 100644 index 00000000000..a091ff34d61 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod + { + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.cs new file mode 100644 index 00000000000..03803996b44 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.cs @@ -0,0 +1,21 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyIp + { + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyIp() + { + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs new file mode 100644 index 00000000000..d00c98dcc71 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace + { + /// + /// The namespace to use for aggregation + /// + public readonly string Namespace; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace(string @namespace) + { + Namespace = @namespace; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.cs new file mode 100644 index 00000000000..0fc4940775d --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument + { + /// + /// The name of the query argument to use. + /// + public readonly string Name; + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument( + string name, + + ImmutableArray textTransformations) + { + Name = name; + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs new file mode 100644 index 00000000000..fcdf962110d --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.cs new file mode 100644 index 00000000000..57886208379 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryString + { + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyQueryString(ImmutableArray textTransformations) + { + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs new file mode 100644 index 00000000000..bef21d09040 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.cs new file mode 100644 index 00000000000..d1d48a44b54 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPath + { + /// + /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + /// + public readonly ImmutableArray TextTransformations; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyUriPath(ImmutableArray textTransformations) + { + TextTransformations = textTransformations; + } + } +} diff --git a/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs new file mode 100644 index 00000000000..28851080b37 --- /dev/null +++ b/sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Aws.WafV2.Outputs +{ + + [OutputType] + public sealed class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation + { + /// + /// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + /// + public readonly int Priority; + /// + /// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + /// + public readonly string Type; + + [OutputConstructor] + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation( + int priority, + + string type) + { + Priority = priority; + Type = type; + } + } +} diff --git a/sdk/go/aws/batch/jobQueue.go b/sdk/go/aws/batch/jobQueue.go index db203398c70..16ad87433d5 100644 --- a/sdk/go/aws/batch/jobQueue.go +++ b/sdk/go/aws/batch/jobQueue.go @@ -107,9 +107,8 @@ type JobQueue struct { // The Amazon Resource Name of the job queue. Arn pulumi.StringOutput `pulumi:"arn"` - // Specifies the set of compute environments - // mapped to a job queue and their order. The position of the compute environments - // in the list will dictate the order. + // List of compute environment ARNs mapped to a job queue. + // The position of the compute environments in the list will dictate the order. ComputeEnvironments pulumi.StringArrayOutput `pulumi:"computeEnvironments"` // Specifies the name of the job queue. Name pulumi.StringOutput `pulumi:"name"` @@ -174,9 +173,8 @@ func GetJobQueue(ctx *pulumi.Context, type jobQueueState struct { // The Amazon Resource Name of the job queue. Arn *string `pulumi:"arn"` - // Specifies the set of compute environments - // mapped to a job queue and their order. The position of the compute environments - // in the list will dictate the order. + // List of compute environment ARNs mapped to a job queue. + // The position of the compute environments in the list will dictate the order. ComputeEnvironments []string `pulumi:"computeEnvironments"` // Specifies the name of the job queue. Name *string `pulumi:"name"` @@ -199,9 +197,8 @@ type jobQueueState struct { type JobQueueState struct { // The Amazon Resource Name of the job queue. Arn pulumi.StringPtrInput - // Specifies the set of compute environments - // mapped to a job queue and their order. The position of the compute environments - // in the list will dictate the order. + // List of compute environment ARNs mapped to a job queue. + // The position of the compute environments in the list will dictate the order. ComputeEnvironments pulumi.StringArrayInput // Specifies the name of the job queue. Name pulumi.StringPtrInput @@ -226,9 +223,8 @@ func (JobQueueState) ElementType() reflect.Type { } type jobQueueArgs struct { - // Specifies the set of compute environments - // mapped to a job queue and their order. The position of the compute environments - // in the list will dictate the order. + // List of compute environment ARNs mapped to a job queue. + // The position of the compute environments in the list will dictate the order. ComputeEnvironments []string `pulumi:"computeEnvironments"` // Specifies the name of the job queue. Name *string `pulumi:"name"` @@ -246,9 +242,8 @@ type jobQueueArgs struct { // The set of arguments for constructing a JobQueue resource. type JobQueueArgs struct { - // Specifies the set of compute environments - // mapped to a job queue and their order. The position of the compute environments - // in the list will dictate the order. + // List of compute environment ARNs mapped to a job queue. + // The position of the compute environments in the list will dictate the order. ComputeEnvironments pulumi.StringArrayInput // Specifies the name of the job queue. Name pulumi.StringPtrInput @@ -380,9 +375,8 @@ func (o JobQueueOutput) Arn() pulumi.StringOutput { return o.ApplyT(func(v *JobQueue) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) } -// Specifies the set of compute environments -// mapped to a job queue and their order. The position of the compute environments -// in the list will dictate the order. +// List of compute environment ARNs mapped to a job queue. +// The position of the compute environments in the list will dictate the order. func (o JobQueueOutput) ComputeEnvironments() pulumi.StringArrayOutput { return o.ApplyT(func(v *JobQueue) pulumi.StringArrayOutput { return v.ComputeEnvironments }).(pulumi.StringArrayOutput) } diff --git a/sdk/go/aws/cleanrooms/configuredTable.go b/sdk/go/aws/cleanrooms/configuredTable.go new file mode 100644 index 00000000000..7ec46aa9b00 --- /dev/null +++ b/sdk/go/aws/cleanrooms/configuredTable.go @@ -0,0 +1,445 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package cleanrooms + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" +) + +// Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. +// +// ## Example Usage +// ### Configured table with tags +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := cleanrooms.NewConfiguredTable(ctx, "testConfiguredTable", &cleanrooms.ConfiguredTableArgs{ +// AllowedColumns: pulumi.StringArray{ +// pulumi.String("column1"), +// pulumi.String("column2"), +// pulumi.String("column3"), +// }, +// AnalysisMethod: pulumi.String("DIRECT_QUERY"), +// Description: pulumi.String("I made this table with TODO!"), +// TableReference: &cleanrooms.ConfiguredTableTableReferenceArgs{ +// DatabaseName: pulumi.String("example_database"), +// TableName: pulumi.String("example_table"), +// }, +// Tags: pulumi.StringMap{ +// "Project": pulumi.String("TODO"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { +// +// to = aws_cleanrooms_configured_table.table +// +// id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab +type ConfiguredTable struct { + pulumi.CustomResourceState + + // The columns of the references table which will be included in the configured table. + AllowedColumns pulumi.StringArrayOutput `pulumi:"allowedColumns"` + // The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + AnalysisMethod pulumi.StringOutput `pulumi:"analysisMethod"` + // The ARN of the configured table. + Arn pulumi.StringOutput `pulumi:"arn"` + // The date and time the configured table was created. + CreateTime pulumi.StringOutput `pulumi:"createTime"` + // A description for the configured table. + Description pulumi.StringPtrOutput `pulumi:"description"` + // The name of the configured table. + Name pulumi.StringOutput `pulumi:"name"` + // A reference to the AWS Glue table which will be used to create the configured table. + // * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + // * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + TableReference ConfiguredTableTableReferenceOutput `pulumi:"tableReference"` + // Key value pairs which tag the configured table. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` + // The date and time the configured table was last updated. + UpdateTime pulumi.StringOutput `pulumi:"updateTime"` +} + +// NewConfiguredTable registers a new resource with the given unique name, arguments, and options. +func NewConfiguredTable(ctx *pulumi.Context, + name string, args *ConfiguredTableArgs, opts ...pulumi.ResourceOption) (*ConfiguredTable, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AllowedColumns == nil { + return nil, errors.New("invalid value for required argument 'AllowedColumns'") + } + if args.AnalysisMethod == nil { + return nil, errors.New("invalid value for required argument 'AnalysisMethod'") + } + if args.TableReference == nil { + return nil, errors.New("invalid value for required argument 'TableReference'") + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "tagsAll", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource ConfiguredTable + err := ctx.RegisterResource("aws:cleanrooms/configuredTable:ConfiguredTable", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetConfiguredTable gets an existing ConfiguredTable resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetConfiguredTable(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ConfiguredTableState, opts ...pulumi.ResourceOption) (*ConfiguredTable, error) { + var resource ConfiguredTable + err := ctx.ReadResource("aws:cleanrooms/configuredTable:ConfiguredTable", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ConfiguredTable resources. +type configuredTableState struct { + // The columns of the references table which will be included in the configured table. + AllowedColumns []string `pulumi:"allowedColumns"` + // The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + AnalysisMethod *string `pulumi:"analysisMethod"` + // The ARN of the configured table. + Arn *string `pulumi:"arn"` + // The date and time the configured table was created. + CreateTime *string `pulumi:"createTime"` + // A description for the configured table. + Description *string `pulumi:"description"` + // The name of the configured table. + Name *string `pulumi:"name"` + // A reference to the AWS Glue table which will be used to create the configured table. + // * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + // * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + TableReference *ConfiguredTableTableReference `pulumi:"tableReference"` + // Key value pairs which tag the configured table. + Tags map[string]string `pulumi:"tags"` + // Deprecated: Please use `tags` instead. + TagsAll map[string]string `pulumi:"tagsAll"` + // The date and time the configured table was last updated. + UpdateTime *string `pulumi:"updateTime"` +} + +type ConfiguredTableState struct { + // The columns of the references table which will be included in the configured table. + AllowedColumns pulumi.StringArrayInput + // The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + AnalysisMethod pulumi.StringPtrInput + // The ARN of the configured table. + Arn pulumi.StringPtrInput + // The date and time the configured table was created. + CreateTime pulumi.StringPtrInput + // A description for the configured table. + Description pulumi.StringPtrInput + // The name of the configured table. + Name pulumi.StringPtrInput + // A reference to the AWS Glue table which will be used to create the configured table. + // * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + // * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + TableReference ConfiguredTableTableReferencePtrInput + // Key value pairs which tag the configured table. + Tags pulumi.StringMapInput + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapInput + // The date and time the configured table was last updated. + UpdateTime pulumi.StringPtrInput +} + +func (ConfiguredTableState) ElementType() reflect.Type { + return reflect.TypeOf((*configuredTableState)(nil)).Elem() +} + +type configuredTableArgs struct { + // The columns of the references table which will be included in the configured table. + AllowedColumns []string `pulumi:"allowedColumns"` + // The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + AnalysisMethod string `pulumi:"analysisMethod"` + // A description for the configured table. + Description *string `pulumi:"description"` + // The name of the configured table. + Name *string `pulumi:"name"` + // A reference to the AWS Glue table which will be used to create the configured table. + // * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + // * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + TableReference ConfiguredTableTableReference `pulumi:"tableReference"` + // Key value pairs which tag the configured table. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a ConfiguredTable resource. +type ConfiguredTableArgs struct { + // The columns of the references table which will be included in the configured table. + AllowedColumns pulumi.StringArrayInput + // The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + AnalysisMethod pulumi.StringInput + // A description for the configured table. + Description pulumi.StringPtrInput + // The name of the configured table. + Name pulumi.StringPtrInput + // A reference to the AWS Glue table which will be used to create the configured table. + // * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + // * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + TableReference ConfiguredTableTableReferenceInput + // Key value pairs which tag the configured table. + Tags pulumi.StringMapInput +} + +func (ConfiguredTableArgs) ElementType() reflect.Type { + return reflect.TypeOf((*configuredTableArgs)(nil)).Elem() +} + +type ConfiguredTableInput interface { + pulumi.Input + + ToConfiguredTableOutput() ConfiguredTableOutput + ToConfiguredTableOutputWithContext(ctx context.Context) ConfiguredTableOutput +} + +func (*ConfiguredTable) ElementType() reflect.Type { + return reflect.TypeOf((**ConfiguredTable)(nil)).Elem() +} + +func (i *ConfiguredTable) ToConfiguredTableOutput() ConfiguredTableOutput { + return i.ToConfiguredTableOutputWithContext(context.Background()) +} + +func (i *ConfiguredTable) ToConfiguredTableOutputWithContext(ctx context.Context) ConfiguredTableOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableOutput) +} + +func (i *ConfiguredTable) ToOutput(ctx context.Context) pulumix.Output[*ConfiguredTable] { + return pulumix.Output[*ConfiguredTable]{ + OutputState: i.ToConfiguredTableOutputWithContext(ctx).OutputState, + } +} + +// ConfiguredTableArrayInput is an input type that accepts ConfiguredTableArray and ConfiguredTableArrayOutput values. +// You can construct a concrete instance of `ConfiguredTableArrayInput` via: +// +// ConfiguredTableArray{ ConfiguredTableArgs{...} } +type ConfiguredTableArrayInput interface { + pulumi.Input + + ToConfiguredTableArrayOutput() ConfiguredTableArrayOutput + ToConfiguredTableArrayOutputWithContext(context.Context) ConfiguredTableArrayOutput +} + +type ConfiguredTableArray []ConfiguredTableInput + +func (ConfiguredTableArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ConfiguredTable)(nil)).Elem() +} + +func (i ConfiguredTableArray) ToConfiguredTableArrayOutput() ConfiguredTableArrayOutput { + return i.ToConfiguredTableArrayOutputWithContext(context.Background()) +} + +func (i ConfiguredTableArray) ToConfiguredTableArrayOutputWithContext(ctx context.Context) ConfiguredTableArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableArrayOutput) +} + +func (i ConfiguredTableArray) ToOutput(ctx context.Context) pulumix.Output[[]*ConfiguredTable] { + return pulumix.Output[[]*ConfiguredTable]{ + OutputState: i.ToConfiguredTableArrayOutputWithContext(ctx).OutputState, + } +} + +// ConfiguredTableMapInput is an input type that accepts ConfiguredTableMap and ConfiguredTableMapOutput values. +// You can construct a concrete instance of `ConfiguredTableMapInput` via: +// +// ConfiguredTableMap{ "key": ConfiguredTableArgs{...} } +type ConfiguredTableMapInput interface { + pulumi.Input + + ToConfiguredTableMapOutput() ConfiguredTableMapOutput + ToConfiguredTableMapOutputWithContext(context.Context) ConfiguredTableMapOutput +} + +type ConfiguredTableMap map[string]ConfiguredTableInput + +func (ConfiguredTableMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ConfiguredTable)(nil)).Elem() +} + +func (i ConfiguredTableMap) ToConfiguredTableMapOutput() ConfiguredTableMapOutput { + return i.ToConfiguredTableMapOutputWithContext(context.Background()) +} + +func (i ConfiguredTableMap) ToConfiguredTableMapOutputWithContext(ctx context.Context) ConfiguredTableMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableMapOutput) +} + +func (i ConfiguredTableMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*ConfiguredTable] { + return pulumix.Output[map[string]*ConfiguredTable]{ + OutputState: i.ToConfiguredTableMapOutputWithContext(ctx).OutputState, + } +} + +type ConfiguredTableOutput struct{ *pulumi.OutputState } + +func (ConfiguredTableOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ConfiguredTable)(nil)).Elem() +} + +func (o ConfiguredTableOutput) ToConfiguredTableOutput() ConfiguredTableOutput { + return o +} + +func (o ConfiguredTableOutput) ToConfiguredTableOutputWithContext(ctx context.Context) ConfiguredTableOutput { + return o +} + +func (o ConfiguredTableOutput) ToOutput(ctx context.Context) pulumix.Output[*ConfiguredTable] { + return pulumix.Output[*ConfiguredTable]{ + OutputState: o.OutputState, + } +} + +// The columns of the references table which will be included in the configured table. +func (o ConfiguredTableOutput) AllowedColumns() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringArrayOutput { return v.AllowedColumns }).(pulumi.StringArrayOutput) +} + +// The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. +func (o ConfiguredTableOutput) AnalysisMethod() pulumi.StringOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringOutput { return v.AnalysisMethod }).(pulumi.StringOutput) +} + +// The ARN of the configured table. +func (o ConfiguredTableOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) +} + +// The date and time the configured table was created. +func (o ConfiguredTableOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) +} + +// A description for the configured table. +func (o ConfiguredTableOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// The name of the configured table. +func (o ConfiguredTableOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// A reference to the AWS Glue table which will be used to create the configured table. +// * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. +// * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. +func (o ConfiguredTableOutput) TableReference() ConfiguredTableTableReferenceOutput { + return o.ApplyT(func(v *ConfiguredTable) ConfiguredTableTableReferenceOutput { return v.TableReference }).(ConfiguredTableTableReferenceOutput) +} + +// Key value pairs which tag the configured table. +func (o ConfiguredTableOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +// Deprecated: Please use `tags` instead. +func (o ConfiguredTableOutput) TagsAll() pulumi.StringMapOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) +} + +// The date and time the configured table was last updated. +func (o ConfiguredTableOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v *ConfiguredTable) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput) +} + +type ConfiguredTableArrayOutput struct{ *pulumi.OutputState } + +func (ConfiguredTableArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ConfiguredTable)(nil)).Elem() +} + +func (o ConfiguredTableArrayOutput) ToConfiguredTableArrayOutput() ConfiguredTableArrayOutput { + return o +} + +func (o ConfiguredTableArrayOutput) ToConfiguredTableArrayOutputWithContext(ctx context.Context) ConfiguredTableArrayOutput { + return o +} + +func (o ConfiguredTableArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*ConfiguredTable] { + return pulumix.Output[[]*ConfiguredTable]{ + OutputState: o.OutputState, + } +} + +func (o ConfiguredTableArrayOutput) Index(i pulumi.IntInput) ConfiguredTableOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ConfiguredTable { + return vs[0].([]*ConfiguredTable)[vs[1].(int)] + }).(ConfiguredTableOutput) +} + +type ConfiguredTableMapOutput struct{ *pulumi.OutputState } + +func (ConfiguredTableMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ConfiguredTable)(nil)).Elem() +} + +func (o ConfiguredTableMapOutput) ToConfiguredTableMapOutput() ConfiguredTableMapOutput { + return o +} + +func (o ConfiguredTableMapOutput) ToConfiguredTableMapOutputWithContext(ctx context.Context) ConfiguredTableMapOutput { + return o +} + +func (o ConfiguredTableMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*ConfiguredTable] { + return pulumix.Output[map[string]*ConfiguredTable]{ + OutputState: o.OutputState, + } +} + +func (o ConfiguredTableMapOutput) MapIndex(k pulumi.StringInput) ConfiguredTableOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ConfiguredTable { + return vs[0].(map[string]*ConfiguredTable)[vs[1].(string)] + }).(ConfiguredTableOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ConfiguredTableInput)(nil)).Elem(), &ConfiguredTable{}) + pulumi.RegisterInputType(reflect.TypeOf((*ConfiguredTableArrayInput)(nil)).Elem(), ConfiguredTableArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ConfiguredTableMapInput)(nil)).Elem(), ConfiguredTableMap{}) + pulumi.RegisterOutputType(ConfiguredTableOutput{}) + pulumi.RegisterOutputType(ConfiguredTableArrayOutput{}) + pulumi.RegisterOutputType(ConfiguredTableMapOutput{}) +} diff --git a/sdk/go/aws/cleanrooms/init.go b/sdk/go/aws/cleanrooms/init.go index 148d0e4d263..0486bb9fb1b 100644 --- a/sdk/go/aws/cleanrooms/init.go +++ b/sdk/go/aws/cleanrooms/init.go @@ -23,6 +23,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi switch typ { case "aws:cleanrooms/collaboration:Collaboration": r = &Collaboration{} + case "aws:cleanrooms/configuredTable:ConfiguredTable": + r = &ConfiguredTable{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -41,4 +43,9 @@ func init() { "cleanrooms/collaboration", &module{version}, ) + pulumi.RegisterResourceModule( + "aws", + "cleanrooms/configuredTable", + &module{version}, + ) } diff --git a/sdk/go/aws/cleanrooms/pulumiTypes.go b/sdk/go/aws/cleanrooms/pulumiTypes.go index 1e8ad837d16..9ca717c3cb3 100644 --- a/sdk/go/aws/cleanrooms/pulumiTypes.go +++ b/sdk/go/aws/cleanrooms/pulumiTypes.go @@ -352,13 +352,189 @@ func (o CollaborationMemberArrayOutput) Index(i pulumi.IntInput) CollaborationMe }).(CollaborationMemberOutput) } +type ConfiguredTableTableReference struct { + DatabaseName string `pulumi:"databaseName"` + TableName string `pulumi:"tableName"` +} + +// ConfiguredTableTableReferenceInput is an input type that accepts ConfiguredTableTableReferenceArgs and ConfiguredTableTableReferenceOutput values. +// You can construct a concrete instance of `ConfiguredTableTableReferenceInput` via: +// +// ConfiguredTableTableReferenceArgs{...} +type ConfiguredTableTableReferenceInput interface { + pulumi.Input + + ToConfiguredTableTableReferenceOutput() ConfiguredTableTableReferenceOutput + ToConfiguredTableTableReferenceOutputWithContext(context.Context) ConfiguredTableTableReferenceOutput +} + +type ConfiguredTableTableReferenceArgs struct { + DatabaseName pulumi.StringInput `pulumi:"databaseName"` + TableName pulumi.StringInput `pulumi:"tableName"` +} + +func (ConfiguredTableTableReferenceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ConfiguredTableTableReference)(nil)).Elem() +} + +func (i ConfiguredTableTableReferenceArgs) ToConfiguredTableTableReferenceOutput() ConfiguredTableTableReferenceOutput { + return i.ToConfiguredTableTableReferenceOutputWithContext(context.Background()) +} + +func (i ConfiguredTableTableReferenceArgs) ToConfiguredTableTableReferenceOutputWithContext(ctx context.Context) ConfiguredTableTableReferenceOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableTableReferenceOutput) +} + +func (i ConfiguredTableTableReferenceArgs) ToOutput(ctx context.Context) pulumix.Output[ConfiguredTableTableReference] { + return pulumix.Output[ConfiguredTableTableReference]{ + OutputState: i.ToConfiguredTableTableReferenceOutputWithContext(ctx).OutputState, + } +} + +func (i ConfiguredTableTableReferenceArgs) ToConfiguredTableTableReferencePtrOutput() ConfiguredTableTableReferencePtrOutput { + return i.ToConfiguredTableTableReferencePtrOutputWithContext(context.Background()) +} + +func (i ConfiguredTableTableReferenceArgs) ToConfiguredTableTableReferencePtrOutputWithContext(ctx context.Context) ConfiguredTableTableReferencePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableTableReferenceOutput).ToConfiguredTableTableReferencePtrOutputWithContext(ctx) +} + +// ConfiguredTableTableReferencePtrInput is an input type that accepts ConfiguredTableTableReferenceArgs, ConfiguredTableTableReferencePtr and ConfiguredTableTableReferencePtrOutput values. +// You can construct a concrete instance of `ConfiguredTableTableReferencePtrInput` via: +// +// ConfiguredTableTableReferenceArgs{...} +// +// or: +// +// nil +type ConfiguredTableTableReferencePtrInput interface { + pulumi.Input + + ToConfiguredTableTableReferencePtrOutput() ConfiguredTableTableReferencePtrOutput + ToConfiguredTableTableReferencePtrOutputWithContext(context.Context) ConfiguredTableTableReferencePtrOutput +} + +type configuredTableTableReferencePtrType ConfiguredTableTableReferenceArgs + +func ConfiguredTableTableReferencePtr(v *ConfiguredTableTableReferenceArgs) ConfiguredTableTableReferencePtrInput { + return (*configuredTableTableReferencePtrType)(v) +} + +func (*configuredTableTableReferencePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ConfiguredTableTableReference)(nil)).Elem() +} + +func (i *configuredTableTableReferencePtrType) ToConfiguredTableTableReferencePtrOutput() ConfiguredTableTableReferencePtrOutput { + return i.ToConfiguredTableTableReferencePtrOutputWithContext(context.Background()) +} + +func (i *configuredTableTableReferencePtrType) ToConfiguredTableTableReferencePtrOutputWithContext(ctx context.Context) ConfiguredTableTableReferencePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ConfiguredTableTableReferencePtrOutput) +} + +func (i *configuredTableTableReferencePtrType) ToOutput(ctx context.Context) pulumix.Output[*ConfiguredTableTableReference] { + return pulumix.Output[*ConfiguredTableTableReference]{ + OutputState: i.ToConfiguredTableTableReferencePtrOutputWithContext(ctx).OutputState, + } +} + +type ConfiguredTableTableReferenceOutput struct{ *pulumi.OutputState } + +func (ConfiguredTableTableReferenceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ConfiguredTableTableReference)(nil)).Elem() +} + +func (o ConfiguredTableTableReferenceOutput) ToConfiguredTableTableReferenceOutput() ConfiguredTableTableReferenceOutput { + return o +} + +func (o ConfiguredTableTableReferenceOutput) ToConfiguredTableTableReferenceOutputWithContext(ctx context.Context) ConfiguredTableTableReferenceOutput { + return o +} + +func (o ConfiguredTableTableReferenceOutput) ToConfiguredTableTableReferencePtrOutput() ConfiguredTableTableReferencePtrOutput { + return o.ToConfiguredTableTableReferencePtrOutputWithContext(context.Background()) +} + +func (o ConfiguredTableTableReferenceOutput) ToConfiguredTableTableReferencePtrOutputWithContext(ctx context.Context) ConfiguredTableTableReferencePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ConfiguredTableTableReference) *ConfiguredTableTableReference { + return &v + }).(ConfiguredTableTableReferencePtrOutput) +} + +func (o ConfiguredTableTableReferenceOutput) ToOutput(ctx context.Context) pulumix.Output[ConfiguredTableTableReference] { + return pulumix.Output[ConfiguredTableTableReference]{ + OutputState: o.OutputState, + } +} + +func (o ConfiguredTableTableReferenceOutput) DatabaseName() pulumi.StringOutput { + return o.ApplyT(func(v ConfiguredTableTableReference) string { return v.DatabaseName }).(pulumi.StringOutput) +} + +func (o ConfiguredTableTableReferenceOutput) TableName() pulumi.StringOutput { + return o.ApplyT(func(v ConfiguredTableTableReference) string { return v.TableName }).(pulumi.StringOutput) +} + +type ConfiguredTableTableReferencePtrOutput struct{ *pulumi.OutputState } + +func (ConfiguredTableTableReferencePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ConfiguredTableTableReference)(nil)).Elem() +} + +func (o ConfiguredTableTableReferencePtrOutput) ToConfiguredTableTableReferencePtrOutput() ConfiguredTableTableReferencePtrOutput { + return o +} + +func (o ConfiguredTableTableReferencePtrOutput) ToConfiguredTableTableReferencePtrOutputWithContext(ctx context.Context) ConfiguredTableTableReferencePtrOutput { + return o +} + +func (o ConfiguredTableTableReferencePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ConfiguredTableTableReference] { + return pulumix.Output[*ConfiguredTableTableReference]{ + OutputState: o.OutputState, + } +} + +func (o ConfiguredTableTableReferencePtrOutput) Elem() ConfiguredTableTableReferenceOutput { + return o.ApplyT(func(v *ConfiguredTableTableReference) ConfiguredTableTableReference { + if v != nil { + return *v + } + var ret ConfiguredTableTableReference + return ret + }).(ConfiguredTableTableReferenceOutput) +} + +func (o ConfiguredTableTableReferencePtrOutput) DatabaseName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ConfiguredTableTableReference) *string { + if v == nil { + return nil + } + return &v.DatabaseName + }).(pulumi.StringPtrOutput) +} + +func (o ConfiguredTableTableReferencePtrOutput) TableName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ConfiguredTableTableReference) *string { + if v == nil { + return nil + } + return &v.TableName + }).(pulumi.StringPtrOutput) +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*CollaborationDataEncryptionMetadataInput)(nil)).Elem(), CollaborationDataEncryptionMetadataArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CollaborationDataEncryptionMetadataPtrInput)(nil)).Elem(), CollaborationDataEncryptionMetadataArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CollaborationMemberInput)(nil)).Elem(), CollaborationMemberArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CollaborationMemberArrayInput)(nil)).Elem(), CollaborationMemberArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ConfiguredTableTableReferenceInput)(nil)).Elem(), ConfiguredTableTableReferenceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ConfiguredTableTableReferencePtrInput)(nil)).Elem(), ConfiguredTableTableReferenceArgs{}) pulumi.RegisterOutputType(CollaborationDataEncryptionMetadataOutput{}) pulumi.RegisterOutputType(CollaborationDataEncryptionMetadataPtrOutput{}) pulumi.RegisterOutputType(CollaborationMemberOutput{}) pulumi.RegisterOutputType(CollaborationMemberArrayOutput{}) + pulumi.RegisterOutputType(ConfiguredTableTableReferenceOutput{}) + pulumi.RegisterOutputType(ConfiguredTableTableReferencePtrOutput{}) } diff --git a/sdk/go/aws/cloud9/environmentEC2.go b/sdk/go/aws/cloud9/environmentEC2.go index 85dad5da470..b050ba7a755 100644 --- a/sdk/go/aws/cloud9/environmentEC2.go +++ b/sdk/go/aws/cloud9/environmentEC2.go @@ -146,9 +146,11 @@ type EnvironmentEC2 struct { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` + // * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` ImageId pulumi.StringPtrOutput `pulumi:"imageId"` // The type of instance to connect to the environment, e.g., `t2.micro`. InstanceType pulumi.StringOutput `pulumi:"instanceType"` @@ -217,9 +219,11 @@ type environmentEC2State struct { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` + // * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` ImageId *string `pulumi:"imageId"` // The type of instance to connect to the environment, e.g., `t2.micro`. InstanceType *string `pulumi:"instanceType"` @@ -252,9 +256,11 @@ type EnvironmentEC2State struct { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` + // * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` ImageId pulumi.StringPtrInput // The type of instance to connect to the environment, e.g., `t2.micro`. InstanceType pulumi.StringPtrInput @@ -289,9 +295,11 @@ type environmentEC2Args struct { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` + // * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` ImageId *string `pulumi:"imageId"` // The type of instance to connect to the environment, e.g., `t2.micro`. InstanceType string `pulumi:"instanceType"` @@ -317,9 +325,11 @@ type EnvironmentEC2Args struct { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` + // * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` ImageId pulumi.StringPtrInput // The type of instance to connect to the environment, e.g., `t2.micro`. InstanceType pulumi.StringInput @@ -468,9 +478,11 @@ func (o EnvironmentEC2Output) Description() pulumi.StringPtrOutput { // * `amazonlinux-1-x86_64` // * `amazonlinux-2-x86_64` // * `ubuntu-18.04-x86_64` +// * `ubuntu-22.04-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` // * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` +// * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` func (o EnvironmentEC2Output) ImageId() pulumi.StringPtrOutput { return o.ApplyT(func(v *EnvironmentEC2) pulumi.StringPtrOutput { return v.ImageId }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/aws/cloudfront/distribution.go b/sdk/go/aws/cloudfront/distribution.go index 3640c63fd69..81e51b89f5d 100644 --- a/sdk/go/aws/cloudfront/distribution.go +++ b/sdk/go/aws/cloudfront/distribution.go @@ -332,7 +332,7 @@ type Distribution struct { // Any comments you want to include about the distribution. Comment pulumi.StringPtrOutput `pulumi:"comment"` // Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `cloudfront.ContinuousDeploymentPolicy` resource for additional details. - ContinuousDeploymentPolicyId pulumi.StringPtrOutput `pulumi:"continuousDeploymentPolicyId"` + ContinuousDeploymentPolicyId pulumi.StringOutput `pulumi:"continuousDeploymentPolicyId"` // One or more custom error response elements (multiples allowed). CustomErrorResponses DistributionCustomErrorResponseArrayOutput `pulumi:"customErrorResponses"` // Default cache behavior for this distribution (maximum one). Requires either `cachePolicyId` (preferred) or `forwardedValues` (deprecated) be set. @@ -804,8 +804,8 @@ func (o DistributionOutput) Comment() pulumi.StringPtrOutput { } // Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `cloudfront.ContinuousDeploymentPolicy` resource for additional details. -func (o DistributionOutput) ContinuousDeploymentPolicyId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Distribution) pulumi.StringPtrOutput { return v.ContinuousDeploymentPolicyId }).(pulumi.StringPtrOutput) +func (o DistributionOutput) ContinuousDeploymentPolicyId() pulumi.StringOutput { + return o.ApplyT(func(v *Distribution) pulumi.StringOutput { return v.ContinuousDeploymentPolicyId }).(pulumi.StringOutput) } // One or more custom error response elements (multiples allowed). diff --git a/sdk/go/aws/cloudfront/pulumiTypes.go b/sdk/go/aws/cloudfront/pulumiTypes.go index e4102d72dbc..8ac5c9dfbec 100644 --- a/sdk/go/aws/cloudfront/pulumiTypes.go +++ b/sdk/go/aws/cloudfront/pulumiTypes.go @@ -4724,9 +4724,9 @@ type DistributionOrigin struct { OriginId string `pulumi:"originId"` // Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. OriginPath *string `pulumi:"originPath"` - // The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + // CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. OriginShield *DistributionOriginOriginShield `pulumi:"originShield"` - // The CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. + // CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. S3OriginConfig *DistributionOriginS3OriginConfig `pulumi:"s3OriginConfig"` } @@ -4758,9 +4758,9 @@ type DistributionOriginArgs struct { OriginId pulumi.StringInput `pulumi:"originId"` // Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. OriginPath pulumi.StringPtrInput `pulumi:"originPath"` - // The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + // CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. OriginShield DistributionOriginOriginShieldPtrInput `pulumi:"originShield"` - // The CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. + // CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. S3OriginConfig DistributionOriginS3OriginConfigPtrInput `pulumi:"s3OriginConfig"` } @@ -4873,12 +4873,12 @@ func (o DistributionOriginOutput) OriginPath() pulumi.StringPtrOutput { return o.ApplyT(func(v DistributionOrigin) *string { return v.OriginPath }).(pulumi.StringPtrOutput) } -// The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. +// CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. func (o DistributionOriginOutput) OriginShield() DistributionOriginOriginShieldPtrOutput { return o.ApplyT(func(v DistributionOrigin) *DistributionOriginOriginShield { return v.OriginShield }).(DistributionOriginOriginShieldPtrOutput) } -// The CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. +// CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. func (o DistributionOriginOutput) S3OriginConfig() DistributionOriginS3OriginConfigPtrOutput { return o.ApplyT(func(v DistributionOrigin) *DistributionOriginS3OriginConfig { return v.S3OriginConfig }).(DistributionOriginS3OriginConfigPtrOutput) } @@ -5616,8 +5616,8 @@ func (o DistributionOriginGroupMemberArrayOutput) Index(i pulumi.IntInput) Distr type DistributionOriginOriginShield struct { // Whether the distribution is enabled to accept end user requests for content. Enabled bool `pulumi:"enabled"` - // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. - OriginShieldRegion string `pulumi:"originShieldRegion"` + // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. + OriginShieldRegion *string `pulumi:"originShieldRegion"` } // DistributionOriginOriginShieldInput is an input type that accepts DistributionOriginOriginShieldArgs and DistributionOriginOriginShieldOutput values. @@ -5634,8 +5634,8 @@ type DistributionOriginOriginShieldInput interface { type DistributionOriginOriginShieldArgs struct { // Whether the distribution is enabled to accept end user requests for content. Enabled pulumi.BoolInput `pulumi:"enabled"` - // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. - OriginShieldRegion pulumi.StringInput `pulumi:"originShieldRegion"` + // AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. + OriginShieldRegion pulumi.StringPtrInput `pulumi:"originShieldRegion"` } func (DistributionOriginOriginShieldArgs) ElementType() reflect.Type { @@ -5738,9 +5738,9 @@ func (o DistributionOriginOriginShieldOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v DistributionOriginOriginShield) bool { return v.Enabled }).(pulumi.BoolOutput) } -// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. -func (o DistributionOriginOriginShieldOutput) OriginShieldRegion() pulumi.StringOutput { - return o.ApplyT(func(v DistributionOriginOriginShield) string { return v.OriginShieldRegion }).(pulumi.StringOutput) +// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. +func (o DistributionOriginOriginShieldOutput) OriginShieldRegion() pulumi.StringPtrOutput { + return o.ApplyT(func(v DistributionOriginOriginShield) *string { return v.OriginShieldRegion }).(pulumi.StringPtrOutput) } type DistributionOriginOriginShieldPtrOutput struct{ *pulumi.OutputState } @@ -5783,13 +5783,13 @@ func (o DistributionOriginOriginShieldPtrOutput) Enabled() pulumi.BoolPtrOutput }).(pulumi.BoolPtrOutput) } -// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. +// AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. func (o DistributionOriginOriginShieldPtrOutput) OriginShieldRegion() pulumi.StringPtrOutput { return o.ApplyT(func(v *DistributionOriginOriginShield) *string { if v == nil { return nil } - return &v.OriginShieldRegion + return v.OriginShieldRegion }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/aws/connect/getInstanceStorageConfig.go b/sdk/go/aws/connect/getInstanceStorageConfig.go index 08c837e99ed..4c28e30eba3 100644 --- a/sdk/go/aws/connect/getInstanceStorageConfig.go +++ b/sdk/go/aws/connect/getInstanceStorageConfig.go @@ -57,7 +57,7 @@ type LookupInstanceStorageConfigArgs struct { AssociationId string `pulumi:"associationId"` // Reference to the hosting Amazon Connect Instance InstanceId string `pulumi:"instanceId"` - // A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType string `pulumi:"resourceType"` } @@ -91,7 +91,7 @@ type LookupInstanceStorageConfigOutputArgs struct { AssociationId pulumi.StringInput `pulumi:"associationId"` // Reference to the hosting Amazon Connect Instance InstanceId pulumi.StringInput `pulumi:"instanceId"` - // A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType pulumi.StringInput `pulumi:"resourceType"` } diff --git a/sdk/go/aws/connect/instanceStorageConfig.go b/sdk/go/aws/connect/instanceStorageConfig.go index 199af6bca50..5e67d20086e 100644 --- a/sdk/go/aws/connect/instanceStorageConfig.go +++ b/sdk/go/aws/connect/instanceStorageConfig.go @@ -205,7 +205,7 @@ type InstanceStorageConfig struct { AssociationId pulumi.StringOutput `pulumi:"associationId"` // Specifies the identifier of the hosting Amazon Connect Instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` - // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType pulumi.StringOutput `pulumi:"resourceType"` // Specifies the storage configuration options for the Connect Instance. Documented below. StorageConfig InstanceStorageConfigStorageConfigOutput `pulumi:"storageConfig"` @@ -254,7 +254,7 @@ type instanceStorageConfigState struct { AssociationId *string `pulumi:"associationId"` // Specifies the identifier of the hosting Amazon Connect Instance. InstanceId *string `pulumi:"instanceId"` - // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType *string `pulumi:"resourceType"` // Specifies the storage configuration options for the Connect Instance. Documented below. StorageConfig *InstanceStorageConfigStorageConfig `pulumi:"storageConfig"` @@ -265,7 +265,7 @@ type InstanceStorageConfigState struct { AssociationId pulumi.StringPtrInput // Specifies the identifier of the hosting Amazon Connect Instance. InstanceId pulumi.StringPtrInput - // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType pulumi.StringPtrInput // Specifies the storage configuration options for the Connect Instance. Documented below. StorageConfig InstanceStorageConfigStorageConfigPtrInput @@ -278,7 +278,7 @@ func (InstanceStorageConfigState) ElementType() reflect.Type { type instanceStorageConfigArgs struct { // Specifies the identifier of the hosting Amazon Connect Instance. InstanceId string `pulumi:"instanceId"` - // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType string `pulumi:"resourceType"` // Specifies the storage configuration options for the Connect Instance. Documented below. StorageConfig InstanceStorageConfigStorageConfig `pulumi:"storageConfig"` @@ -288,7 +288,7 @@ type instanceStorageConfigArgs struct { type InstanceStorageConfigArgs struct { // Specifies the identifier of the hosting Amazon Connect Instance. InstanceId pulumi.StringInput - // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + // A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. ResourceType pulumi.StringInput // Specifies the storage configuration options for the Connect Instance. Documented below. StorageConfig InstanceStorageConfigStorageConfigInput @@ -415,7 +415,7 @@ func (o InstanceStorageConfigOutput) InstanceId() pulumi.StringOutput { return o.ApplyT(func(v *InstanceStorageConfig) pulumi.StringOutput { return v.InstanceId }).(pulumi.StringOutput) } -// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. +// A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. func (o InstanceStorageConfigOutput) ResourceType() pulumi.StringOutput { return o.ApplyT(func(v *InstanceStorageConfig) pulumi.StringOutput { return v.ResourceType }).(pulumi.StringOutput) } diff --git a/sdk/go/aws/dms/init.go b/sdk/go/aws/dms/init.go index 1d88d684242..ac16293c613 100644 --- a/sdk/go/aws/dms/init.go +++ b/sdk/go/aws/dms/init.go @@ -27,6 +27,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Endpoint{} case "aws:dms/eventSubscription:EventSubscription": r = &EventSubscription{} + case "aws:dms/replicationConfig:ReplicationConfig": + r = &ReplicationConfig{} case "aws:dms/replicationInstance:ReplicationInstance": r = &ReplicationInstance{} case "aws:dms/replicationSubnetGroup:ReplicationSubnetGroup": @@ -63,6 +65,11 @@ func init() { "dms/eventSubscription", &module{version}, ) + pulumi.RegisterResourceModule( + "aws", + "dms/replicationConfig", + &module{version}, + ) pulumi.RegisterResourceModule( "aws", "dms/replicationInstance", diff --git a/sdk/go/aws/dms/pulumiTypes.go b/sdk/go/aws/dms/pulumiTypes.go index a1fcb8bab27..9c3df82a50a 100644 --- a/sdk/go/aws/dms/pulumiTypes.go +++ b/sdk/go/aws/dms/pulumiTypes.go @@ -2642,6 +2642,339 @@ func (o EndpointS3SettingsPtrOutput) UseTaskStartTimeForFullLoadTimestamp() pulu }).(pulumi.BoolPtrOutput) } +type ReplicationConfigComputeConfig struct { + // The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + AvailabilityZone *string `pulumi:"availabilityZone"` + // A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + DnsNameServers *string `pulumi:"dnsNameServers"` + // An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + KmsKeyId *string `pulumi:"kmsKeyId"` + // Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + MaxCapacityUnits *int `pulumi:"maxCapacityUnits"` + // Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + MinCapacityUnits *int `pulumi:"minCapacityUnits"` + // Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. + MultiAz *bool `pulumi:"multiAz"` + // The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + // + // - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + // - Format: `ddd:hh24:mi-ddd:hh24:mi` + // - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + // - Constraints: Minimum 30-minute window. + PreferredMaintenanceWindow *string `pulumi:"preferredMaintenanceWindow"` + // Specifies a subnet group identifier to associate with the DMS Serverless replication. + ReplicationSubnetGroupId string `pulumi:"replicationSubnetGroupId"` + // Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + VpcSecurityGroupIds []string `pulumi:"vpcSecurityGroupIds"` +} + +// ReplicationConfigComputeConfigInput is an input type that accepts ReplicationConfigComputeConfigArgs and ReplicationConfigComputeConfigOutput values. +// You can construct a concrete instance of `ReplicationConfigComputeConfigInput` via: +// +// ReplicationConfigComputeConfigArgs{...} +type ReplicationConfigComputeConfigInput interface { + pulumi.Input + + ToReplicationConfigComputeConfigOutput() ReplicationConfigComputeConfigOutput + ToReplicationConfigComputeConfigOutputWithContext(context.Context) ReplicationConfigComputeConfigOutput +} + +type ReplicationConfigComputeConfigArgs struct { + // The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"` + // A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + DnsNameServers pulumi.StringPtrInput `pulumi:"dnsNameServers"` + // An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + KmsKeyId pulumi.StringPtrInput `pulumi:"kmsKeyId"` + // Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + MaxCapacityUnits pulumi.IntPtrInput `pulumi:"maxCapacityUnits"` + // Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + MinCapacityUnits pulumi.IntPtrInput `pulumi:"minCapacityUnits"` + // Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. + MultiAz pulumi.BoolPtrInput `pulumi:"multiAz"` + // The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + // + // - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + // - Format: `ddd:hh24:mi-ddd:hh24:mi` + // - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + // - Constraints: Minimum 30-minute window. + PreferredMaintenanceWindow pulumi.StringPtrInput `pulumi:"preferredMaintenanceWindow"` + // Specifies a subnet group identifier to associate with the DMS Serverless replication. + ReplicationSubnetGroupId pulumi.StringInput `pulumi:"replicationSubnetGroupId"` + // Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + VpcSecurityGroupIds pulumi.StringArrayInput `pulumi:"vpcSecurityGroupIds"` +} + +func (ReplicationConfigComputeConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ReplicationConfigComputeConfig)(nil)).Elem() +} + +func (i ReplicationConfigComputeConfigArgs) ToReplicationConfigComputeConfigOutput() ReplicationConfigComputeConfigOutput { + return i.ToReplicationConfigComputeConfigOutputWithContext(context.Background()) +} + +func (i ReplicationConfigComputeConfigArgs) ToReplicationConfigComputeConfigOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigComputeConfigOutput) +} + +func (i ReplicationConfigComputeConfigArgs) ToOutput(ctx context.Context) pulumix.Output[ReplicationConfigComputeConfig] { + return pulumix.Output[ReplicationConfigComputeConfig]{ + OutputState: i.ToReplicationConfigComputeConfigOutputWithContext(ctx).OutputState, + } +} + +func (i ReplicationConfigComputeConfigArgs) ToReplicationConfigComputeConfigPtrOutput() ReplicationConfigComputeConfigPtrOutput { + return i.ToReplicationConfigComputeConfigPtrOutputWithContext(context.Background()) +} + +func (i ReplicationConfigComputeConfigArgs) ToReplicationConfigComputeConfigPtrOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigComputeConfigOutput).ToReplicationConfigComputeConfigPtrOutputWithContext(ctx) +} + +// ReplicationConfigComputeConfigPtrInput is an input type that accepts ReplicationConfigComputeConfigArgs, ReplicationConfigComputeConfigPtr and ReplicationConfigComputeConfigPtrOutput values. +// You can construct a concrete instance of `ReplicationConfigComputeConfigPtrInput` via: +// +// ReplicationConfigComputeConfigArgs{...} +// +// or: +// +// nil +type ReplicationConfigComputeConfigPtrInput interface { + pulumi.Input + + ToReplicationConfigComputeConfigPtrOutput() ReplicationConfigComputeConfigPtrOutput + ToReplicationConfigComputeConfigPtrOutputWithContext(context.Context) ReplicationConfigComputeConfigPtrOutput +} + +type replicationConfigComputeConfigPtrType ReplicationConfigComputeConfigArgs + +func ReplicationConfigComputeConfigPtr(v *ReplicationConfigComputeConfigArgs) ReplicationConfigComputeConfigPtrInput { + return (*replicationConfigComputeConfigPtrType)(v) +} + +func (*replicationConfigComputeConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ReplicationConfigComputeConfig)(nil)).Elem() +} + +func (i *replicationConfigComputeConfigPtrType) ToReplicationConfigComputeConfigPtrOutput() ReplicationConfigComputeConfigPtrOutput { + return i.ToReplicationConfigComputeConfigPtrOutputWithContext(context.Background()) +} + +func (i *replicationConfigComputeConfigPtrType) ToReplicationConfigComputeConfigPtrOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigComputeConfigPtrOutput) +} + +func (i *replicationConfigComputeConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*ReplicationConfigComputeConfig] { + return pulumix.Output[*ReplicationConfigComputeConfig]{ + OutputState: i.ToReplicationConfigComputeConfigPtrOutputWithContext(ctx).OutputState, + } +} + +type ReplicationConfigComputeConfigOutput struct{ *pulumi.OutputState } + +func (ReplicationConfigComputeConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ReplicationConfigComputeConfig)(nil)).Elem() +} + +func (o ReplicationConfigComputeConfigOutput) ToReplicationConfigComputeConfigOutput() ReplicationConfigComputeConfigOutput { + return o +} + +func (o ReplicationConfigComputeConfigOutput) ToReplicationConfigComputeConfigOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigOutput { + return o +} + +func (o ReplicationConfigComputeConfigOutput) ToReplicationConfigComputeConfigPtrOutput() ReplicationConfigComputeConfigPtrOutput { + return o.ToReplicationConfigComputeConfigPtrOutputWithContext(context.Background()) +} + +func (o ReplicationConfigComputeConfigOutput) ToReplicationConfigComputeConfigPtrOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ReplicationConfigComputeConfig) *ReplicationConfigComputeConfig { + return &v + }).(ReplicationConfigComputeConfigPtrOutput) +} + +func (o ReplicationConfigComputeConfigOutput) ToOutput(ctx context.Context) pulumix.Output[ReplicationConfigComputeConfig] { + return pulumix.Output[ReplicationConfigComputeConfig]{ + OutputState: o.OutputState, + } +} + +// The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. +func (o ReplicationConfigComputeConfigOutput) AvailabilityZone() pulumi.StringPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *string { return v.AvailabilityZone }).(pulumi.StringPtrOutput) +} + +// A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. +func (o ReplicationConfigComputeConfigOutput) DnsNameServers() pulumi.StringPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *string { return v.DnsNameServers }).(pulumi.StringPtrOutput) +} + +// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. +func (o ReplicationConfigComputeConfigOutput) KmsKeyId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *string { return v.KmsKeyId }).(pulumi.StringPtrOutput) +} + +// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. +func (o ReplicationConfigComputeConfigOutput) MaxCapacityUnits() pulumi.IntPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *int { return v.MaxCapacityUnits }).(pulumi.IntPtrOutput) +} + +// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. +func (o ReplicationConfigComputeConfigOutput) MinCapacityUnits() pulumi.IntPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *int { return v.MinCapacityUnits }).(pulumi.IntPtrOutput) +} + +// Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. +func (o ReplicationConfigComputeConfigOutput) MultiAz() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *bool { return v.MultiAz }).(pulumi.BoolPtrOutput) +} + +// The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). +// +// - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. +// - Format: `ddd:hh24:mi-ddd:hh24:mi` +// - Valid Days: `mon, tue, wed, thu, fri, sat, sun` +// - Constraints: Minimum 30-minute window. +func (o ReplicationConfigComputeConfigOutput) PreferredMaintenanceWindow() pulumi.StringPtrOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) *string { return v.PreferredMaintenanceWindow }).(pulumi.StringPtrOutput) +} + +// Specifies a subnet group identifier to associate with the DMS Serverless replication. +func (o ReplicationConfigComputeConfigOutput) ReplicationSubnetGroupId() pulumi.StringOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) string { return v.ReplicationSubnetGroupId }).(pulumi.StringOutput) +} + +// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. +func (o ReplicationConfigComputeConfigOutput) VpcSecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ReplicationConfigComputeConfig) []string { return v.VpcSecurityGroupIds }).(pulumi.StringArrayOutput) +} + +type ReplicationConfigComputeConfigPtrOutput struct{ *pulumi.OutputState } + +func (ReplicationConfigComputeConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ReplicationConfigComputeConfig)(nil)).Elem() +} + +func (o ReplicationConfigComputeConfigPtrOutput) ToReplicationConfigComputeConfigPtrOutput() ReplicationConfigComputeConfigPtrOutput { + return o +} + +func (o ReplicationConfigComputeConfigPtrOutput) ToReplicationConfigComputeConfigPtrOutputWithContext(ctx context.Context) ReplicationConfigComputeConfigPtrOutput { + return o +} + +func (o ReplicationConfigComputeConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*ReplicationConfigComputeConfig] { + return pulumix.Output[*ReplicationConfigComputeConfig]{ + OutputState: o.OutputState, + } +} + +func (o ReplicationConfigComputeConfigPtrOutput) Elem() ReplicationConfigComputeConfigOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) ReplicationConfigComputeConfig { + if v != nil { + return *v + } + var ret ReplicationConfigComputeConfig + return ret + }).(ReplicationConfigComputeConfigOutput) +} + +// The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. +func (o ReplicationConfigComputeConfigPtrOutput) AvailabilityZone() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *string { + if v == nil { + return nil + } + return v.AvailabilityZone + }).(pulumi.StringPtrOutput) +} + +// A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. +func (o ReplicationConfigComputeConfigPtrOutput) DnsNameServers() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *string { + if v == nil { + return nil + } + return v.DnsNameServers + }).(pulumi.StringPtrOutput) +} + +// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. +func (o ReplicationConfigComputeConfigPtrOutput) KmsKeyId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *string { + if v == nil { + return nil + } + return v.KmsKeyId + }).(pulumi.StringPtrOutput) +} + +// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. +func (o ReplicationConfigComputeConfigPtrOutput) MaxCapacityUnits() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *int { + if v == nil { + return nil + } + return v.MaxCapacityUnits + }).(pulumi.IntPtrOutput) +} + +// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. +func (o ReplicationConfigComputeConfigPtrOutput) MinCapacityUnits() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *int { + if v == nil { + return nil + } + return v.MinCapacityUnits + }).(pulumi.IntPtrOutput) +} + +// Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. +func (o ReplicationConfigComputeConfigPtrOutput) MultiAz() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *bool { + if v == nil { + return nil + } + return v.MultiAz + }).(pulumi.BoolPtrOutput) +} + +// The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). +// +// - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. +// - Format: `ddd:hh24:mi-ddd:hh24:mi` +// - Valid Days: `mon, tue, wed, thu, fri, sat, sun` +// - Constraints: Minimum 30-minute window. +func (o ReplicationConfigComputeConfigPtrOutput) PreferredMaintenanceWindow() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *string { + if v == nil { + return nil + } + return v.PreferredMaintenanceWindow + }).(pulumi.StringPtrOutput) +} + +// Specifies a subnet group identifier to associate with the DMS Serverless replication. +func (o ReplicationConfigComputeConfigPtrOutput) ReplicationSubnetGroupId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) *string { + if v == nil { + return nil + } + return &v.ReplicationSubnetGroupId + }).(pulumi.StringPtrOutput) +} + +// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. +func (o ReplicationConfigComputeConfigPtrOutput) VpcSecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ReplicationConfigComputeConfig) []string { + if v == nil { + return nil + } + return v.VpcSecurityGroupIds + }).(pulumi.StringArrayOutput) +} + type GetEndpointElasticsearchSetting struct { EndpointUri string `pulumi:"endpointUri"` ErrorRetryDuration int `pulumi:"errorRetryDuration"` @@ -3963,6 +4296,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*EndpointRedshiftSettingsPtrInput)(nil)).Elem(), EndpointRedshiftSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointS3SettingsInput)(nil)).Elem(), EndpointS3SettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*EndpointS3SettingsPtrInput)(nil)).Elem(), EndpointS3SettingsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ReplicationConfigComputeConfigInput)(nil)).Elem(), ReplicationConfigComputeConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ReplicationConfigComputeConfigPtrInput)(nil)).Elem(), ReplicationConfigComputeConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetEndpointElasticsearchSettingInput)(nil)).Elem(), GetEndpointElasticsearchSettingArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetEndpointElasticsearchSettingArrayInput)(nil)).Elem(), GetEndpointElasticsearchSettingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetEndpointKafkaSettingInput)(nil)).Elem(), GetEndpointKafkaSettingArgs{}) @@ -3991,6 +4326,8 @@ func init() { pulumi.RegisterOutputType(EndpointRedshiftSettingsPtrOutput{}) pulumi.RegisterOutputType(EndpointS3SettingsOutput{}) pulumi.RegisterOutputType(EndpointS3SettingsPtrOutput{}) + pulumi.RegisterOutputType(ReplicationConfigComputeConfigOutput{}) + pulumi.RegisterOutputType(ReplicationConfigComputeConfigPtrOutput{}) pulumi.RegisterOutputType(GetEndpointElasticsearchSettingOutput{}) pulumi.RegisterOutputType(GetEndpointElasticsearchSettingArrayOutput{}) pulumi.RegisterOutputType(GetEndpointKafkaSettingOutput{}) diff --git a/sdk/go/aws/dms/replicationConfig.go b/sdk/go/aws/dms/replicationConfig.go new file mode 100644 index 00000000000..ff8634ae2d5 --- /dev/null +++ b/sdk/go/aws/dms/replicationConfig.go @@ -0,0 +1,503 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package dms + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" +) + +// Provides a DMS Serverless replication config resource. +// +// > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `startReplication` to resume the replication afterwards. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dms" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := dms.NewReplicationConfig(ctx, "name", &dms.ReplicationConfigArgs{ +// ReplicationConfigIdentifier: pulumi.String("test-dms-serverless-replication-tf"), +// ResourceIdentifier: pulumi.String("test-dms-serverless-replication-tf"), +// ReplicationType: pulumi.String("cdc"), +// SourceEndpointArn: pulumi.Any(aws_dms_endpoint.Source.Endpoint_arn), +// TargetEndpointArn: pulumi.Any(aws_dms_endpoint.Target.Endpoint_arn), +// TableMappings: pulumi.String(" {\n \"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%%\",\"table-name\":\"%%\", \"rule-action\":\"include\"}]\n }\n"), +// StartReplication: pulumi.Bool(true), +// ComputeConfig: &dms.ReplicationConfigComputeConfigArgs{ +// ReplicationSubnetGroupId: pulumi.Any(aws_dms_replication_subnet_group.Default.Replication_subnet_group_id), +// MaxCapacityUnits: pulumi.Int(64), +// MinCapacityUnits: pulumi.Int(2), +// PreferredMaintenanceWindow: pulumi.String("sun:23:45-mon:00:30"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { +// +// to = aws_dms_replication_config.example +// +// id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI +type ReplicationConfig struct { + pulumi.CustomResourceState + + // The Amazon Resource Name (ARN) for the serverless replication config. + Arn pulumi.StringOutput `pulumi:"arn"` + // Configuration block for provisioning an DMS Serverless replication. + ComputeConfig ReplicationConfigComputeConfigOutput `pulumi:"computeConfig"` + // Unique identifier that you want to use to create the config. + ReplicationConfigIdentifier pulumi.StringOutput `pulumi:"replicationConfigIdentifier"` + // An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + ReplicationSettings pulumi.StringOutput `pulumi:"replicationSettings"` + // The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + ReplicationType pulumi.StringOutput `pulumi:"replicationType"` + // Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + ResourceIdentifier pulumi.StringOutput `pulumi:"resourceIdentifier"` + // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + SourceEndpointArn pulumi.StringOutput `pulumi:"sourceEndpointArn"` + // Whether to run or stop the serverless replication, default is false. + StartReplication pulumi.BoolPtrOutput `pulumi:"startReplication"` + // JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + SupplementalSettings pulumi.StringPtrOutput `pulumi:"supplementalSettings"` + // An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + TableMappings pulumi.StringOutput `pulumi:"tableMappings"` + // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` + // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + TargetEndpointArn pulumi.StringOutput `pulumi:"targetEndpointArn"` +} + +// NewReplicationConfig registers a new resource with the given unique name, arguments, and options. +func NewReplicationConfig(ctx *pulumi.Context, + name string, args *ReplicationConfigArgs, opts ...pulumi.ResourceOption) (*ReplicationConfig, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ComputeConfig == nil { + return nil, errors.New("invalid value for required argument 'ComputeConfig'") + } + if args.ReplicationConfigIdentifier == nil { + return nil, errors.New("invalid value for required argument 'ReplicationConfigIdentifier'") + } + if args.ReplicationType == nil { + return nil, errors.New("invalid value for required argument 'ReplicationType'") + } + if args.SourceEndpointArn == nil { + return nil, errors.New("invalid value for required argument 'SourceEndpointArn'") + } + if args.TableMappings == nil { + return nil, errors.New("invalid value for required argument 'TableMappings'") + } + if args.TargetEndpointArn == nil { + return nil, errors.New("invalid value for required argument 'TargetEndpointArn'") + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "tagsAll", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource ReplicationConfig + err := ctx.RegisterResource("aws:dms/replicationConfig:ReplicationConfig", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetReplicationConfig gets an existing ReplicationConfig resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetReplicationConfig(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ReplicationConfigState, opts ...pulumi.ResourceOption) (*ReplicationConfig, error) { + var resource ReplicationConfig + err := ctx.ReadResource("aws:dms/replicationConfig:ReplicationConfig", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ReplicationConfig resources. +type replicationConfigState struct { + // The Amazon Resource Name (ARN) for the serverless replication config. + Arn *string `pulumi:"arn"` + // Configuration block for provisioning an DMS Serverless replication. + ComputeConfig *ReplicationConfigComputeConfig `pulumi:"computeConfig"` + // Unique identifier that you want to use to create the config. + ReplicationConfigIdentifier *string `pulumi:"replicationConfigIdentifier"` + // An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + ReplicationSettings *string `pulumi:"replicationSettings"` + // The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + ReplicationType *string `pulumi:"replicationType"` + // Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + ResourceIdentifier *string `pulumi:"resourceIdentifier"` + // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + SourceEndpointArn *string `pulumi:"sourceEndpointArn"` + // Whether to run or stop the serverless replication, default is false. + StartReplication *bool `pulumi:"startReplication"` + // JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + SupplementalSettings *string `pulumi:"supplementalSettings"` + // An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + TableMappings *string `pulumi:"tableMappings"` + // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags map[string]string `pulumi:"tags"` + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll map[string]string `pulumi:"tagsAll"` + // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + TargetEndpointArn *string `pulumi:"targetEndpointArn"` +} + +type ReplicationConfigState struct { + // The Amazon Resource Name (ARN) for the serverless replication config. + Arn pulumi.StringPtrInput + // Configuration block for provisioning an DMS Serverless replication. + ComputeConfig ReplicationConfigComputeConfigPtrInput + // Unique identifier that you want to use to create the config. + ReplicationConfigIdentifier pulumi.StringPtrInput + // An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + ReplicationSettings pulumi.StringPtrInput + // The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + ReplicationType pulumi.StringPtrInput + // Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + ResourceIdentifier pulumi.StringPtrInput + // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + SourceEndpointArn pulumi.StringPtrInput + // Whether to run or stop the serverless replication, default is false. + StartReplication pulumi.BoolPtrInput + // JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + SupplementalSettings pulumi.StringPtrInput + // An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + TableMappings pulumi.StringPtrInput + // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapInput + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapInput + // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + TargetEndpointArn pulumi.StringPtrInput +} + +func (ReplicationConfigState) ElementType() reflect.Type { + return reflect.TypeOf((*replicationConfigState)(nil)).Elem() +} + +type replicationConfigArgs struct { + // Configuration block for provisioning an DMS Serverless replication. + ComputeConfig ReplicationConfigComputeConfig `pulumi:"computeConfig"` + // Unique identifier that you want to use to create the config. + ReplicationConfigIdentifier string `pulumi:"replicationConfigIdentifier"` + // An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + ReplicationSettings *string `pulumi:"replicationSettings"` + // The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + ReplicationType string `pulumi:"replicationType"` + // Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + ResourceIdentifier *string `pulumi:"resourceIdentifier"` + // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + SourceEndpointArn string `pulumi:"sourceEndpointArn"` + // Whether to run or stop the serverless replication, default is false. + StartReplication *bool `pulumi:"startReplication"` + // JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + SupplementalSettings *string `pulumi:"supplementalSettings"` + // An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + TableMappings string `pulumi:"tableMappings"` + // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags map[string]string `pulumi:"tags"` + // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + TargetEndpointArn string `pulumi:"targetEndpointArn"` +} + +// The set of arguments for constructing a ReplicationConfig resource. +type ReplicationConfigArgs struct { + // Configuration block for provisioning an DMS Serverless replication. + ComputeConfig ReplicationConfigComputeConfigInput + // Unique identifier that you want to use to create the config. + ReplicationConfigIdentifier pulumi.StringInput + // An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + ReplicationSettings pulumi.StringPtrInput + // The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + ReplicationType pulumi.StringInput + // Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + ResourceIdentifier pulumi.StringPtrInput + // The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + SourceEndpointArn pulumi.StringInput + // Whether to run or stop the serverless replication, default is false. + StartReplication pulumi.BoolPtrInput + // JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + SupplementalSettings pulumi.StringPtrInput + // An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + TableMappings pulumi.StringInput + // A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapInput + // The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + TargetEndpointArn pulumi.StringInput +} + +func (ReplicationConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*replicationConfigArgs)(nil)).Elem() +} + +type ReplicationConfigInput interface { + pulumi.Input + + ToReplicationConfigOutput() ReplicationConfigOutput + ToReplicationConfigOutputWithContext(ctx context.Context) ReplicationConfigOutput +} + +func (*ReplicationConfig) ElementType() reflect.Type { + return reflect.TypeOf((**ReplicationConfig)(nil)).Elem() +} + +func (i *ReplicationConfig) ToReplicationConfigOutput() ReplicationConfigOutput { + return i.ToReplicationConfigOutputWithContext(context.Background()) +} + +func (i *ReplicationConfig) ToReplicationConfigOutputWithContext(ctx context.Context) ReplicationConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigOutput) +} + +func (i *ReplicationConfig) ToOutput(ctx context.Context) pulumix.Output[*ReplicationConfig] { + return pulumix.Output[*ReplicationConfig]{ + OutputState: i.ToReplicationConfigOutputWithContext(ctx).OutputState, + } +} + +// ReplicationConfigArrayInput is an input type that accepts ReplicationConfigArray and ReplicationConfigArrayOutput values. +// You can construct a concrete instance of `ReplicationConfigArrayInput` via: +// +// ReplicationConfigArray{ ReplicationConfigArgs{...} } +type ReplicationConfigArrayInput interface { + pulumi.Input + + ToReplicationConfigArrayOutput() ReplicationConfigArrayOutput + ToReplicationConfigArrayOutputWithContext(context.Context) ReplicationConfigArrayOutput +} + +type ReplicationConfigArray []ReplicationConfigInput + +func (ReplicationConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ReplicationConfig)(nil)).Elem() +} + +func (i ReplicationConfigArray) ToReplicationConfigArrayOutput() ReplicationConfigArrayOutput { + return i.ToReplicationConfigArrayOutputWithContext(context.Background()) +} + +func (i ReplicationConfigArray) ToReplicationConfigArrayOutputWithContext(ctx context.Context) ReplicationConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigArrayOutput) +} + +func (i ReplicationConfigArray) ToOutput(ctx context.Context) pulumix.Output[[]*ReplicationConfig] { + return pulumix.Output[[]*ReplicationConfig]{ + OutputState: i.ToReplicationConfigArrayOutputWithContext(ctx).OutputState, + } +} + +// ReplicationConfigMapInput is an input type that accepts ReplicationConfigMap and ReplicationConfigMapOutput values. +// You can construct a concrete instance of `ReplicationConfigMapInput` via: +// +// ReplicationConfigMap{ "key": ReplicationConfigArgs{...} } +type ReplicationConfigMapInput interface { + pulumi.Input + + ToReplicationConfigMapOutput() ReplicationConfigMapOutput + ToReplicationConfigMapOutputWithContext(context.Context) ReplicationConfigMapOutput +} + +type ReplicationConfigMap map[string]ReplicationConfigInput + +func (ReplicationConfigMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ReplicationConfig)(nil)).Elem() +} + +func (i ReplicationConfigMap) ToReplicationConfigMapOutput() ReplicationConfigMapOutput { + return i.ToReplicationConfigMapOutputWithContext(context.Background()) +} + +func (i ReplicationConfigMap) ToReplicationConfigMapOutputWithContext(ctx context.Context) ReplicationConfigMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ReplicationConfigMapOutput) +} + +func (i ReplicationConfigMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*ReplicationConfig] { + return pulumix.Output[map[string]*ReplicationConfig]{ + OutputState: i.ToReplicationConfigMapOutputWithContext(ctx).OutputState, + } +} + +type ReplicationConfigOutput struct{ *pulumi.OutputState } + +func (ReplicationConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ReplicationConfig)(nil)).Elem() +} + +func (o ReplicationConfigOutput) ToReplicationConfigOutput() ReplicationConfigOutput { + return o +} + +func (o ReplicationConfigOutput) ToReplicationConfigOutputWithContext(ctx context.Context) ReplicationConfigOutput { + return o +} + +func (o ReplicationConfigOutput) ToOutput(ctx context.Context) pulumix.Output[*ReplicationConfig] { + return pulumix.Output[*ReplicationConfig]{ + OutputState: o.OutputState, + } +} + +// The Amazon Resource Name (ARN) for the serverless replication config. +func (o ReplicationConfigOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) +} + +// Configuration block for provisioning an DMS Serverless replication. +func (o ReplicationConfigOutput) ComputeConfig() ReplicationConfigComputeConfigOutput { + return o.ApplyT(func(v *ReplicationConfig) ReplicationConfigComputeConfigOutput { return v.ComputeConfig }).(ReplicationConfigComputeConfigOutput) +} + +// Unique identifier that you want to use to create the config. +func (o ReplicationConfigOutput) ReplicationConfigIdentifier() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.ReplicationConfigIdentifier }).(pulumi.StringOutput) +} + +// An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) +func (o ReplicationConfigOutput) ReplicationSettings() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.ReplicationSettings }).(pulumi.StringOutput) +} + +// The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. +func (o ReplicationConfigOutput) ReplicationType() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.ReplicationType }).(pulumi.StringOutput) +} + +// Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) +func (o ReplicationConfigOutput) ResourceIdentifier() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.ResourceIdentifier }).(pulumi.StringOutput) +} + +// The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. +func (o ReplicationConfigOutput) SourceEndpointArn() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.SourceEndpointArn }).(pulumi.StringOutput) +} + +// Whether to run or stop the serverless replication, default is false. +func (o ReplicationConfigOutput) StartReplication() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.BoolPtrOutput { return v.StartReplication }).(pulumi.BoolPtrOutput) +} + +// JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) +func (o ReplicationConfigOutput) SupplementalSettings() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringPtrOutput { return v.SupplementalSettings }).(pulumi.StringPtrOutput) +} + +// An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) +func (o ReplicationConfigOutput) TableMappings() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.TableMappings }).(pulumi.StringOutput) +} + +// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. +func (o ReplicationConfigOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. +// +// Deprecated: Please use `tags` instead. +func (o ReplicationConfigOutput) TagsAll() pulumi.StringMapOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) +} + +// The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. +func (o ReplicationConfigOutput) TargetEndpointArn() pulumi.StringOutput { + return o.ApplyT(func(v *ReplicationConfig) pulumi.StringOutput { return v.TargetEndpointArn }).(pulumi.StringOutput) +} + +type ReplicationConfigArrayOutput struct{ *pulumi.OutputState } + +func (ReplicationConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ReplicationConfig)(nil)).Elem() +} + +func (o ReplicationConfigArrayOutput) ToReplicationConfigArrayOutput() ReplicationConfigArrayOutput { + return o +} + +func (o ReplicationConfigArrayOutput) ToReplicationConfigArrayOutputWithContext(ctx context.Context) ReplicationConfigArrayOutput { + return o +} + +func (o ReplicationConfigArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*ReplicationConfig] { + return pulumix.Output[[]*ReplicationConfig]{ + OutputState: o.OutputState, + } +} + +func (o ReplicationConfigArrayOutput) Index(i pulumi.IntInput) ReplicationConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ReplicationConfig { + return vs[0].([]*ReplicationConfig)[vs[1].(int)] + }).(ReplicationConfigOutput) +} + +type ReplicationConfigMapOutput struct{ *pulumi.OutputState } + +func (ReplicationConfigMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ReplicationConfig)(nil)).Elem() +} + +func (o ReplicationConfigMapOutput) ToReplicationConfigMapOutput() ReplicationConfigMapOutput { + return o +} + +func (o ReplicationConfigMapOutput) ToReplicationConfigMapOutputWithContext(ctx context.Context) ReplicationConfigMapOutput { + return o +} + +func (o ReplicationConfigMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*ReplicationConfig] { + return pulumix.Output[map[string]*ReplicationConfig]{ + OutputState: o.OutputState, + } +} + +func (o ReplicationConfigMapOutput) MapIndex(k pulumi.StringInput) ReplicationConfigOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ReplicationConfig { + return vs[0].(map[string]*ReplicationConfig)[vs[1].(string)] + }).(ReplicationConfigOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ReplicationConfigInput)(nil)).Elem(), &ReplicationConfig{}) + pulumi.RegisterInputType(reflect.TypeOf((*ReplicationConfigArrayInput)(nil)).Elem(), ReplicationConfigArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ReplicationConfigMapInput)(nil)).Elem(), ReplicationConfigMap{}) + pulumi.RegisterOutputType(ReplicationConfigOutput{}) + pulumi.RegisterOutputType(ReplicationConfigArrayOutput{}) + pulumi.RegisterOutputType(ReplicationConfigMapOutput{}) +} diff --git a/sdk/go/aws/fsx/ontapFileSystem.go b/sdk/go/aws/fsx/ontapFileSystem.go index da9f7b44f54..ec0d1cb0144 100644 --- a/sdk/go/aws/fsx/ontapFileSystem.go +++ b/sdk/go/aws/fsx/ontapFileSystem.go @@ -71,7 +71,7 @@ type OntapFileSystem struct { DailyAutomaticBackupStartTime pulumi.StringOutput `pulumi:"dailyAutomaticBackupStartTime"` // The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. DeploymentType pulumi.StringOutput `pulumi:"deploymentType"` - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. DiskIopsConfiguration OntapFileSystemDiskIopsConfigurationOutput `pulumi:"diskIopsConfiguration"` // The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. DnsName pulumi.StringOutput `pulumi:"dnsName"` @@ -171,7 +171,7 @@ type ontapFileSystemState struct { DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"` // The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. DeploymentType *string `pulumi:"deploymentType"` - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. DiskIopsConfiguration *OntapFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"` // The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. DnsName *string `pulumi:"dnsName"` @@ -222,7 +222,7 @@ type OntapFileSystemState struct { DailyAutomaticBackupStartTime pulumi.StringPtrInput // The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. DeploymentType pulumi.StringPtrInput - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. DiskIopsConfiguration OntapFileSystemDiskIopsConfigurationPtrInput // The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. DnsName pulumi.StringPtrInput @@ -275,7 +275,7 @@ type ontapFileSystemArgs struct { DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"` // The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. DeploymentType string `pulumi:"deploymentType"` - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. DiskIopsConfiguration *OntapFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"` // Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. EndpointIpAddressRange *string `pulumi:"endpointIpAddressRange"` @@ -311,7 +311,7 @@ type OntapFileSystemArgs struct { DailyAutomaticBackupStartTime pulumi.StringPtrInput // The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. DeploymentType pulumi.StringInput - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. DiskIopsConfiguration OntapFileSystemDiskIopsConfigurationPtrInput // Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. EndpointIpAddressRange pulumi.StringPtrInput @@ -470,7 +470,7 @@ func (o OntapFileSystemOutput) DeploymentType() pulumi.StringOutput { return o.ApplyT(func(v *OntapFileSystem) pulumi.StringOutput { return v.DeploymentType }).(pulumi.StringOutput) } -// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. +// The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. func (o OntapFileSystemOutput) DiskIopsConfiguration() OntapFileSystemDiskIopsConfigurationOutput { return o.ApplyT(func(v *OntapFileSystem) OntapFileSystemDiskIopsConfigurationOutput { return v.DiskIopsConfiguration }).(OntapFileSystemDiskIopsConfigurationOutput) } diff --git a/sdk/go/aws/fsx/ontapVolume.go b/sdk/go/aws/fsx/ontapVolume.go index 5a2c1b3b9b3..598c28c13a2 100644 --- a/sdk/go/aws/fsx/ontapVolume.go +++ b/sdk/go/aws/fsx/ontapVolume.go @@ -94,6 +94,10 @@ type OntapVolume struct { // Amazon Resource Name of the volune. Arn pulumi.StringOutput `pulumi:"arn"` + // Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + BypassSnaplockEnterpriseRetention pulumi.BoolPtrOutput `pulumi:"bypassSnaplockEnterpriseRetention"` + // A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + CopyTagsToBackups pulumi.BoolPtrOutput `pulumi:"copyTagsToBackups"` // Describes the file system for the volume, e.g. `fs-12345679` FileSystemId pulumi.StringOutput `pulumi:"fileSystemId"` // Specifies the FlexCache endpoint type of the volume, Valid values are `NONE`, `ORIGIN`, `CACHE`. Default value is `NONE`. These can be set by the ONTAP CLI or API and are use with FlexCache feature. @@ -110,6 +114,10 @@ type OntapVolume struct { SizeInMegabytes pulumi.IntOutput `pulumi:"sizeInMegabytes"` // When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. SkipFinalBackup pulumi.BoolPtrOutput `pulumi:"skipFinalBackup"` + // The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + SnaplockConfiguration OntapVolumeSnaplockConfigurationPtrOutput `pulumi:"snaplockConfiguration"` + // Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + SnapshotPolicy pulumi.StringOutput `pulumi:"snapshotPolicy"` // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. StorageEfficiencyEnabled pulumi.BoolPtrOutput `pulumi:"storageEfficiencyEnabled"` // Specifies the storage virtual machine in which to create the volume. @@ -119,7 +127,8 @@ type OntapVolume struct { // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. - TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` + TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` + // The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. TieringPolicy OntapVolumeTieringPolicyPtrOutput `pulumi:"tieringPolicy"` // The Volume's UUID (universally unique identifier). Uuid pulumi.StringOutput `pulumi:"uuid"` @@ -169,6 +178,10 @@ func GetOntapVolume(ctx *pulumi.Context, type ontapVolumeState struct { // Amazon Resource Name of the volune. Arn *string `pulumi:"arn"` + // Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + BypassSnaplockEnterpriseRetention *bool `pulumi:"bypassSnaplockEnterpriseRetention"` + // A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"` // Describes the file system for the volume, e.g. `fs-12345679` FileSystemId *string `pulumi:"fileSystemId"` // Specifies the FlexCache endpoint type of the volume, Valid values are `NONE`, `ORIGIN`, `CACHE`. Default value is `NONE`. These can be set by the ONTAP CLI or API and are use with FlexCache feature. @@ -185,6 +198,10 @@ type ontapVolumeState struct { SizeInMegabytes *int `pulumi:"sizeInMegabytes"` // When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. SkipFinalBackup *bool `pulumi:"skipFinalBackup"` + // The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + SnaplockConfiguration *OntapVolumeSnaplockConfiguration `pulumi:"snaplockConfiguration"` + // Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + SnapshotPolicy *string `pulumi:"snapshotPolicy"` // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. StorageEfficiencyEnabled *bool `pulumi:"storageEfficiencyEnabled"` // Specifies the storage virtual machine in which to create the volume. @@ -194,7 +211,8 @@ type ontapVolumeState struct { // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. - TagsAll map[string]string `pulumi:"tagsAll"` + TagsAll map[string]string `pulumi:"tagsAll"` + // The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. TieringPolicy *OntapVolumeTieringPolicy `pulumi:"tieringPolicy"` // The Volume's UUID (universally unique identifier). Uuid *string `pulumi:"uuid"` @@ -205,6 +223,10 @@ type ontapVolumeState struct { type OntapVolumeState struct { // Amazon Resource Name of the volune. Arn pulumi.StringPtrInput + // Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + BypassSnaplockEnterpriseRetention pulumi.BoolPtrInput + // A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + CopyTagsToBackups pulumi.BoolPtrInput // Describes the file system for the volume, e.g. `fs-12345679` FileSystemId pulumi.StringPtrInput // Specifies the FlexCache endpoint type of the volume, Valid values are `NONE`, `ORIGIN`, `CACHE`. Default value is `NONE`. These can be set by the ONTAP CLI or API and are use with FlexCache feature. @@ -221,6 +243,10 @@ type OntapVolumeState struct { SizeInMegabytes pulumi.IntPtrInput // When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. SkipFinalBackup pulumi.BoolPtrInput + // The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + SnaplockConfiguration OntapVolumeSnaplockConfigurationPtrInput + // Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + SnapshotPolicy pulumi.StringPtrInput // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. StorageEfficiencyEnabled pulumi.BoolPtrInput // Specifies the storage virtual machine in which to create the volume. @@ -230,7 +256,8 @@ type OntapVolumeState struct { // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. - TagsAll pulumi.StringMapInput + TagsAll pulumi.StringMapInput + // The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. TieringPolicy OntapVolumeTieringPolicyPtrInput // The Volume's UUID (universally unique identifier). Uuid pulumi.StringPtrInput @@ -243,6 +270,10 @@ func (OntapVolumeState) ElementType() reflect.Type { } type ontapVolumeArgs struct { + // Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + BypassSnaplockEnterpriseRetention *bool `pulumi:"bypassSnaplockEnterpriseRetention"` + // A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"` // Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junctionPath must have a leading forward slash, such as `/vol3` JunctionPath *string `pulumi:"junctionPath"` // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. @@ -255,12 +286,17 @@ type ontapVolumeArgs struct { SizeInMegabytes int `pulumi:"sizeInMegabytes"` // When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. SkipFinalBackup *bool `pulumi:"skipFinalBackup"` + // The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + SnaplockConfiguration *OntapVolumeSnaplockConfiguration `pulumi:"snaplockConfiguration"` + // Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + SnapshotPolicy *string `pulumi:"snapshotPolicy"` // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. StorageEfficiencyEnabled *bool `pulumi:"storageEfficiencyEnabled"` // Specifies the storage virtual machine in which to create the volume. StorageVirtualMachineId string `pulumi:"storageVirtualMachineId"` // A map of tags to assign to the volume. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Tags map[string]string `pulumi:"tags"` + Tags map[string]string `pulumi:"tags"` + // The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. TieringPolicy *OntapVolumeTieringPolicy `pulumi:"tieringPolicy"` // The type of volume, currently the only valid value is `ONTAP`. VolumeType *string `pulumi:"volumeType"` @@ -268,6 +304,10 @@ type ontapVolumeArgs struct { // The set of arguments for constructing a OntapVolume resource. type OntapVolumeArgs struct { + // Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + BypassSnaplockEnterpriseRetention pulumi.BoolPtrInput + // A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + CopyTagsToBackups pulumi.BoolPtrInput // Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junctionPath must have a leading forward slash, such as `/vol3` JunctionPath pulumi.StringPtrInput // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. @@ -280,12 +320,17 @@ type OntapVolumeArgs struct { SizeInMegabytes pulumi.IntInput // When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. SkipFinalBackup pulumi.BoolPtrInput + // The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + SnaplockConfiguration OntapVolumeSnaplockConfigurationPtrInput + // Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + SnapshotPolicy pulumi.StringPtrInput // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. StorageEfficiencyEnabled pulumi.BoolPtrInput // Specifies the storage virtual machine in which to create the volume. StorageVirtualMachineId pulumi.StringInput // A map of tags to assign to the volume. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Tags pulumi.StringMapInput + Tags pulumi.StringMapInput + // The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. TieringPolicy OntapVolumeTieringPolicyPtrInput // The type of volume, currently the only valid value is `ONTAP`. VolumeType pulumi.StringPtrInput @@ -407,6 +452,16 @@ func (o OntapVolumeOutput) Arn() pulumi.StringOutput { return o.ApplyT(func(v *OntapVolume) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) } +// Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. +func (o OntapVolumeOutput) BypassSnaplockEnterpriseRetention() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OntapVolume) pulumi.BoolPtrOutput { return v.BypassSnaplockEnterpriseRetention }).(pulumi.BoolPtrOutput) +} + +// A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. +func (o OntapVolumeOutput) CopyTagsToBackups() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OntapVolume) pulumi.BoolPtrOutput { return v.CopyTagsToBackups }).(pulumi.BoolPtrOutput) +} + // Describes the file system for the volume, e.g. `fs-12345679` func (o OntapVolumeOutput) FileSystemId() pulumi.StringOutput { return o.ApplyT(func(v *OntapVolume) pulumi.StringOutput { return v.FileSystemId }).(pulumi.StringOutput) @@ -447,6 +502,16 @@ func (o OntapVolumeOutput) SkipFinalBackup() pulumi.BoolPtrOutput { return o.ApplyT(func(v *OntapVolume) pulumi.BoolPtrOutput { return v.SkipFinalBackup }).(pulumi.BoolPtrOutput) } +// The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. +func (o OntapVolumeOutput) SnaplockConfiguration() OntapVolumeSnaplockConfigurationPtrOutput { + return o.ApplyT(func(v *OntapVolume) OntapVolumeSnaplockConfigurationPtrOutput { return v.SnaplockConfiguration }).(OntapVolumeSnaplockConfigurationPtrOutput) +} + +// Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide +func (o OntapVolumeOutput) SnapshotPolicy() pulumi.StringOutput { + return o.ApplyT(func(v *OntapVolume) pulumi.StringOutput { return v.SnapshotPolicy }).(pulumi.StringOutput) +} + // Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. func (o OntapVolumeOutput) StorageEfficiencyEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *OntapVolume) pulumi.BoolPtrOutput { return v.StorageEfficiencyEnabled }).(pulumi.BoolPtrOutput) @@ -469,6 +534,7 @@ func (o OntapVolumeOutput) TagsAll() pulumi.StringMapOutput { return o.ApplyT(func(v *OntapVolume) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) } +// The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. func (o OntapVolumeOutput) TieringPolicy() OntapVolumeTieringPolicyPtrOutput { return o.ApplyT(func(v *OntapVolume) OntapVolumeTieringPolicyPtrOutput { return v.TieringPolicy }).(OntapVolumeTieringPolicyPtrOutput) } diff --git a/sdk/go/aws/fsx/openZfsVolume.go b/sdk/go/aws/fsx/openZfsVolume.go index b9c4a95239d..9eae7ce0498 100644 --- a/sdk/go/aws/fsx/openZfsVolume.go +++ b/sdk/go/aws/fsx/openZfsVolume.go @@ -60,6 +60,8 @@ type OpenZfsVolume struct { CopyTagsToSnapshots pulumi.BoolPtrOutput `pulumi:"copyTagsToSnapshots"` // Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. DataCompressionType pulumi.StringPtrOutput `pulumi:"dataCompressionType"` + // Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + DeleteVolumeOptions pulumi.StringPtrOutput `pulumi:"deleteVolumeOptions"` // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. Name pulumi.StringOutput `pulumi:"name"` // NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. @@ -130,6 +132,8 @@ type openZfsVolumeState struct { CopyTagsToSnapshots *bool `pulumi:"copyTagsToSnapshots"` // Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. DataCompressionType *string `pulumi:"dataCompressionType"` + // Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + DeleteVolumeOptions *string `pulumi:"deleteVolumeOptions"` // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. Name *string `pulumi:"name"` // NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. @@ -164,6 +168,8 @@ type OpenZfsVolumeState struct { CopyTagsToSnapshots pulumi.BoolPtrInput // Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. DataCompressionType pulumi.StringPtrInput + // Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + DeleteVolumeOptions pulumi.StringPtrInput // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. Name pulumi.StringPtrInput // NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. @@ -200,6 +206,8 @@ type openZfsVolumeArgs struct { CopyTagsToSnapshots *bool `pulumi:"copyTagsToSnapshots"` // Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. DataCompressionType *string `pulumi:"dataCompressionType"` + // Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + DeleteVolumeOptions *string `pulumi:"deleteVolumeOptions"` // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. Name *string `pulumi:"name"` // NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. @@ -229,6 +237,8 @@ type OpenZfsVolumeArgs struct { CopyTagsToSnapshots pulumi.BoolPtrInput // Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. DataCompressionType pulumi.StringPtrInput + // Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + DeleteVolumeOptions pulumi.StringPtrInput // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. Name pulumi.StringPtrInput // NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. @@ -378,6 +388,11 @@ func (o OpenZfsVolumeOutput) DataCompressionType() pulumi.StringPtrOutput { return o.ApplyT(func(v *OpenZfsVolume) pulumi.StringPtrOutput { return v.DataCompressionType }).(pulumi.StringPtrOutput) } +// Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. +func (o OpenZfsVolumeOutput) DeleteVolumeOptions() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OpenZfsVolume) pulumi.StringPtrOutput { return v.DeleteVolumeOptions }).(pulumi.StringPtrOutput) +} + // The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. func (o OpenZfsVolumeOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *OpenZfsVolume) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) diff --git a/sdk/go/aws/fsx/pulumiTypes.go b/sdk/go/aws/fsx/pulumiTypes.go index a06f2f8fd70..7732ba7555f 100644 --- a/sdk/go/aws/fsx/pulumiTypes.go +++ b/sdk/go/aws/fsx/pulumiTypes.go @@ -3301,6 +3301,1191 @@ func (o OntapStorageVirtualMachineEndpointSmbArrayOutput) Index(i pulumi.IntInpu }).(OntapStorageVirtualMachineEndpointSmbOutput) } +type OntapVolumeSnaplockConfiguration struct { + // Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + AuditLogVolume *bool `pulumi:"auditLogVolume"` + // The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + AutocommitPeriod *OntapVolumeSnaplockConfigurationAutocommitPeriod `pulumi:"autocommitPeriod"` + // Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + PrivilegedDelete *string `pulumi:"privilegedDelete"` + // The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + RetentionPeriod *OntapVolumeSnaplockConfigurationRetentionPeriod `pulumi:"retentionPeriod"` + // Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + SnaplockType string `pulumi:"snaplockType"` + // Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + VolumeAppendModeEnabled *bool `pulumi:"volumeAppendModeEnabled"` +} + +// OntapVolumeSnaplockConfigurationInput is an input type that accepts OntapVolumeSnaplockConfigurationArgs and OntapVolumeSnaplockConfigurationOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationInput` via: +// +// OntapVolumeSnaplockConfigurationArgs{...} +type OntapVolumeSnaplockConfigurationInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationOutput() OntapVolumeSnaplockConfigurationOutput + ToOntapVolumeSnaplockConfigurationOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationOutput +} + +type OntapVolumeSnaplockConfigurationArgs struct { + // Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + AuditLogVolume pulumi.BoolPtrInput `pulumi:"auditLogVolume"` + // The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + AutocommitPeriod OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput `pulumi:"autocommitPeriod"` + // Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + PrivilegedDelete pulumi.StringPtrInput `pulumi:"privilegedDelete"` + // The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + RetentionPeriod OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput `pulumi:"retentionPeriod"` + // Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + SnaplockType pulumi.StringInput `pulumi:"snaplockType"` + // Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + VolumeAppendModeEnabled pulumi.BoolPtrInput `pulumi:"volumeAppendModeEnabled"` +} + +func (OntapVolumeSnaplockConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfiguration)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationArgs) ToOntapVolumeSnaplockConfigurationOutput() OntapVolumeSnaplockConfigurationOutput { + return i.ToOntapVolumeSnaplockConfigurationOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationArgs) ToOntapVolumeSnaplockConfigurationOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationOutput) +} + +func (i OntapVolumeSnaplockConfigurationArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfiguration] { + return pulumix.Output[OntapVolumeSnaplockConfiguration]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationArgs) ToOntapVolumeSnaplockConfigurationPtrOutput() OntapVolumeSnaplockConfigurationPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationArgs) ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationOutput).ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationArgs, OntapVolumeSnaplockConfigurationPtr and OntapVolumeSnaplockConfigurationPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationPtrInput` via: +// +// OntapVolumeSnaplockConfigurationArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationPtrOutput() OntapVolumeSnaplockConfigurationPtrOutput + ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationPtrOutput +} + +type ontapVolumeSnaplockConfigurationPtrType OntapVolumeSnaplockConfigurationArgs + +func OntapVolumeSnaplockConfigurationPtr(v *OntapVolumeSnaplockConfigurationArgs) OntapVolumeSnaplockConfigurationPtrInput { + return (*ontapVolumeSnaplockConfigurationPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfiguration)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationPtrType) ToOntapVolumeSnaplockConfigurationPtrOutput() OntapVolumeSnaplockConfigurationPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationPtrType) ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfiguration] { + return pulumix.Output[*OntapVolumeSnaplockConfiguration]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfiguration)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationOutput) ToOntapVolumeSnaplockConfigurationOutput() OntapVolumeSnaplockConfigurationOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationOutput) ToOntapVolumeSnaplockConfigurationOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationOutput) ToOntapVolumeSnaplockConfigurationPtrOutput() OntapVolumeSnaplockConfigurationPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationOutput) ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfiguration) *OntapVolumeSnaplockConfiguration { + return &v + }).(OntapVolumeSnaplockConfigurationPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfiguration] { + return pulumix.Output[OntapVolumeSnaplockConfiguration]{ + OutputState: o.OutputState, + } +} + +// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. +func (o OntapVolumeSnaplockConfigurationOutput) AuditLogVolume() pulumi.BoolPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) *bool { return v.AuditLogVolume }).(pulumi.BoolPtrOutput) +} + +// The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. +func (o OntapVolumeSnaplockConfigurationOutput) AutocommitPeriod() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) *OntapVolumeSnaplockConfigurationAutocommitPeriod { + return v.AutocommitPeriod + }).(OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) +} + +// Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. +func (o OntapVolumeSnaplockConfigurationOutput) PrivilegedDelete() pulumi.StringPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) *string { return v.PrivilegedDelete }).(pulumi.StringPtrOutput) +} + +// The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. +func (o OntapVolumeSnaplockConfigurationOutput) RetentionPeriod() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) *OntapVolumeSnaplockConfigurationRetentionPeriod { + return v.RetentionPeriod + }).(OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) +} + +// Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. +func (o OntapVolumeSnaplockConfigurationOutput) SnaplockType() pulumi.StringOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) string { return v.SnaplockType }).(pulumi.StringOutput) +} + +// Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. +func (o OntapVolumeSnaplockConfigurationOutput) VolumeAppendModeEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfiguration) *bool { return v.VolumeAppendModeEnabled }).(pulumi.BoolPtrOutput) +} + +type OntapVolumeSnaplockConfigurationPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfiguration)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationPtrOutput) ToOntapVolumeSnaplockConfigurationPtrOutput() OntapVolumeSnaplockConfigurationPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationPtrOutput) ToOntapVolumeSnaplockConfigurationPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfiguration] { + return pulumix.Output[*OntapVolumeSnaplockConfiguration]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationPtrOutput) Elem() OntapVolumeSnaplockConfigurationOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) OntapVolumeSnaplockConfiguration { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfiguration + return ret + }).(OntapVolumeSnaplockConfigurationOutput) +} + +// Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. +func (o OntapVolumeSnaplockConfigurationPtrOutput) AuditLogVolume() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *bool { + if v == nil { + return nil + } + return v.AuditLogVolume + }).(pulumi.BoolPtrOutput) +} + +// The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. +func (o OntapVolumeSnaplockConfigurationPtrOutput) AutocommitPeriod() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *OntapVolumeSnaplockConfigurationAutocommitPeriod { + if v == nil { + return nil + } + return v.AutocommitPeriod + }).(OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) +} + +// Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. +func (o OntapVolumeSnaplockConfigurationPtrOutput) PrivilegedDelete() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *string { + if v == nil { + return nil + } + return v.PrivilegedDelete + }).(pulumi.StringPtrOutput) +} + +// The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. +func (o OntapVolumeSnaplockConfigurationPtrOutput) RetentionPeriod() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *OntapVolumeSnaplockConfigurationRetentionPeriod { + if v == nil { + return nil + } + return v.RetentionPeriod + }).(OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) +} + +// Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. +func (o OntapVolumeSnaplockConfigurationPtrOutput) SnaplockType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *string { + if v == nil { + return nil + } + return &v.SnaplockType + }).(pulumi.StringPtrOutput) +} + +// Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. +func (o OntapVolumeSnaplockConfigurationPtrOutput) VolumeAppendModeEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfiguration) *bool { + if v == nil { + return nil + } + return v.VolumeAppendModeEnabled + }).(pulumi.BoolPtrOutput) +} + +type OntapVolumeSnaplockConfigurationAutocommitPeriod struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type *string `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value *int `pulumi:"value"` +} + +// OntapVolumeSnaplockConfigurationAutocommitPeriodInput is an input type that accepts OntapVolumeSnaplockConfigurationAutocommitPeriodArgs and OntapVolumeSnaplockConfigurationAutocommitPeriodOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationAutocommitPeriodInput` via: +// +// OntapVolumeSnaplockConfigurationAutocommitPeriodArgs{...} +type OntapVolumeSnaplockConfigurationAutocommitPeriodInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodOutput + ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodOutput +} + +type OntapVolumeSnaplockConfigurationAutocommitPeriodArgs struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type pulumi.StringPtrInput `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value pulumi.IntPtrInput `pulumi:"value"` +} + +func (OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationAutocommitPeriod)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodOutput { + return i.ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) +} + +func (i OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationAutocommitPeriod] { + return pulumix.Output[OntapVolumeSnaplockConfigurationAutocommitPeriod]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationAutocommitPeriodOutput).ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationAutocommitPeriodArgs, OntapVolumeSnaplockConfigurationAutocommitPeriodPtr and OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput` via: +// +// OntapVolumeSnaplockConfigurationAutocommitPeriodArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput + ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput +} + +type ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType OntapVolumeSnaplockConfigurationAutocommitPeriodArgs + +func OntapVolumeSnaplockConfigurationAutocommitPeriodPtr(v *OntapVolumeSnaplockConfigurationAutocommitPeriodArgs) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput { + return (*ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationAutocommitPeriod)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationAutocommitPeriodPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationAutocommitPeriod] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationAutocommitPeriod]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationAutocommitPeriodOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationAutocommitPeriod)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfigurationAutocommitPeriod) *OntapVolumeSnaplockConfigurationAutocommitPeriod { + return &v + }).(OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationAutocommitPeriod] { + return pulumix.Output[OntapVolumeSnaplockConfigurationAutocommitPeriod]{ + OutputState: o.OutputState, + } +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationAutocommitPeriod) *string { return v.Type }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationAutocommitPeriod) *int { return v.Value }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationAutocommitPeriod)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput() OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) ToOntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationAutocommitPeriod] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationAutocommitPeriod]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) Elem() OntapVolumeSnaplockConfigurationAutocommitPeriodOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationAutocommitPeriod) OntapVolumeSnaplockConfigurationAutocommitPeriod { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfigurationAutocommitPeriod + return ret + }).(OntapVolumeSnaplockConfigurationAutocommitPeriodOutput) +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationAutocommitPeriod) *string { + if v == nil { + return nil + } + return v.Type + }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationAutocommitPeriod) *int { + if v == nil { + return nil + } + return v.Value + }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriod struct { + // The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + DefaultRetention *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention `pulumi:"defaultRetention"` + // The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + MaximumRetention *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention `pulumi:"maximumRetention"` + // The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + MinimumRetention *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention `pulumi:"minimumRetention"` +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodArgs and OntapVolumeSnaplockConfigurationRetentionPeriodOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodArgs{...} +type OntapVolumeSnaplockConfigurationRetentionPeriodInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodOutput() OntapVolumeSnaplockConfigurationRetentionPeriodOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodOutput +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodArgs struct { + // The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + DefaultRetention OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput `pulumi:"defaultRetention"` + // The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + MaximumRetention OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput `pulumi:"maximumRetention"` + // The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + MinimumRetention OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput `pulumi:"minimumRetention"` +} + +func (OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriod)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodOutput() OntapVolumeSnaplockConfigurationRetentionPeriodOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodOutput) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriod] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriod]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodOutput).ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodArgs, OntapVolumeSnaplockConfigurationRetentionPeriodPtr and OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput +} + +type ontapVolumeSnaplockConfigurationRetentionPeriodPtrType OntapVolumeSnaplockConfigurationRetentionPeriodArgs + +func OntapVolumeSnaplockConfigurationRetentionPeriodPtr(v *OntapVolumeSnaplockConfigurationRetentionPeriodArgs) OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput { + return (*ontapVolumeSnaplockConfigurationRetentionPeriodPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationRetentionPeriodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriod)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriod] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriod]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriod)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodOutput() OntapVolumeSnaplockConfigurationRetentionPeriodOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriod { + return &v + }).(OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriod] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriod]{ + OutputState: o.OutputState, + } +} + +// The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) DefaultRetention() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + return v.DefaultRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) +} + +// The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) MaximumRetention() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + return v.MaximumRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) +} + +// The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodOutput) MinimumRetention() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + return v.MinimumRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriod)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriod] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriod]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) Elem() OntapVolumeSnaplockConfigurationRetentionPeriodOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriod) OntapVolumeSnaplockConfigurationRetentionPeriod { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfigurationRetentionPeriod + return ret + }).(OntapVolumeSnaplockConfigurationRetentionPeriodOutput) +} + +// The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) DefaultRetention() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + if v == nil { + return nil + } + return v.DefaultRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) +} + +// The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) MaximumRetention() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + if v == nil { + return nil + } + return v.MaximumRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) +} + +// The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput) MinimumRetention() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriod) *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + if v == nil { + return nil + } + return v.MinimumRetention + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type *string `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value *int `pulumi:"value"` +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs and OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs{...} +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type pulumi.StringPtrInput `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value pulumi.IntPtrInput `pulumi:"value"` +} + +func (OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput).ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs, OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtr and OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput +} + +type ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs + +func OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtr(v *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput { + return (*ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + return &v + }).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention]{ + OutputState: o.OutputState, + } +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) *string { return v.Type }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) *int { return v.Value }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) Elem() OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention + return ret + }).(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput) +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) *string { + if v == nil { + return nil + } + return v.Type + }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention) *int { + if v == nil { + return nil + } + return v.Value + }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type *string `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value *int `pulumi:"value"` +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs and OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs{...} +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type pulumi.StringPtrInput `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value pulumi.IntPtrInput `pulumi:"value"` +} + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput).ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs, OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtr and OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput +} + +type ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs + +func OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtr(v *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput { + return (*ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + return &v + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention]{ + OutputState: o.OutputState, + } +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) *string { return v.Type }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) *int { return v.Value }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) Elem() OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention + return ret + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput) +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) *string { + if v == nil { + return nil + } + return v.Type + }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention) *int { + if v == nil { + return nil + } + return v.Value + }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type *string `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value *int `pulumi:"value"` +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs and OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs{...} +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs struct { + // The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + Type pulumi.StringPtrInput `pulumi:"type"` + // The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + Value pulumi.IntPtrInput `pulumi:"value"` +} + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention)(nil)).Elem() +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutputWithContext(ctx).OutputState, + } +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(context.Background()) +} + +func (i OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput).ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx) +} + +// OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput is an input type that accepts OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs, OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtr and OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput values. +// You can construct a concrete instance of `OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput` via: +// +// OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs{...} +// +// or: +// +// nil +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput interface { + pulumi.Input + + ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput + ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput +} + +type ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs + +func OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtr(v *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput { + return (*ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType)(v) +} + +func (*ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention)(nil)).Elem() +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(context.Background()) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) +} + +func (i *ontapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrType) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention]{ + OutputState: i.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx).OutputState, + } +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o.ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(context.Background()) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + return &v + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) ToOutput(ctx context.Context) pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention] { + return pulumix.Output[OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention]{ + OutputState: o.OutputState, + } +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) *string { return v.Type }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) *int { return v.Value }).(pulumi.IntPtrOutput) +} + +type OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput struct{ *pulumi.OutputState } + +func (OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention)(nil)).Elem() +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) ToOntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutputWithContext(ctx context.Context) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput { + return o +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention] { + return pulumix.Output[*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention]{ + OutputState: o.OutputState, + } +} + +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) Elem() OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + if v != nil { + return *v + } + var ret OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention + return ret + }).(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput) +} + +// The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) *string { + if v == nil { + return nil + } + return v.Type + }).(pulumi.StringPtrOutput) +} + +// The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. +func (o OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput) Value() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention) *int { + if v == nil { + return nil + } + return v.Value + }).(pulumi.IntPtrOutput) +} + type OntapVolumeTieringPolicy struct { // Specifies the number of days that user data in a volume must remain inactive before it is considered "cold" and moved to the capacity pool. Used with `AUTO` and `SNAPSHOT_ONLY` tiering policies only. Valid values are whole numbers between 2 and 183. Default values are 31 days for `AUTO` and 2 days for `SNAPSHOT_ONLY`. CoolingPeriod *int `pulumi:"coolingPeriod"` @@ -7857,6 +9042,18 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*OntapStorageVirtualMachineEndpointNfArrayInput)(nil)).Elem(), OntapStorageVirtualMachineEndpointNfArray{}) pulumi.RegisterInputType(reflect.TypeOf((*OntapStorageVirtualMachineEndpointSmbInput)(nil)).Elem(), OntapStorageVirtualMachineEndpointSmbArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OntapStorageVirtualMachineEndpointSmbArrayInput)(nil)).Elem(), OntapStorageVirtualMachineEndpointSmbArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationAutocommitPeriodInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationAutocommitPeriodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationAutocommitPeriodPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationAutocommitPeriodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrInput)(nil)).Elem(), OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeTieringPolicyInput)(nil)).Elem(), OntapVolumeTieringPolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OntapVolumeTieringPolicyPtrInput)(nil)).Elem(), OntapVolumeTieringPolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OpenZfsFileSystemDiskIopsConfigurationInput)(nil)).Elem(), OpenZfsFileSystemDiskIopsConfigurationArgs{}) @@ -7959,6 +9156,18 @@ func init() { pulumi.RegisterOutputType(OntapStorageVirtualMachineEndpointNfArrayOutput{}) pulumi.RegisterOutputType(OntapStorageVirtualMachineEndpointSmbOutput{}) pulumi.RegisterOutputType(OntapStorageVirtualMachineEndpointSmbArrayOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationPtrOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationAutocommitPeriodOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationAutocommitPeriodPtrOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodPtrOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionPtrOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionPtrOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionOutput{}) + pulumi.RegisterOutputType(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionPtrOutput{}) pulumi.RegisterOutputType(OntapVolumeTieringPolicyOutput{}) pulumi.RegisterOutputType(OntapVolumeTieringPolicyPtrOutput{}) pulumi.RegisterOutputType(OpenZfsFileSystemDiskIopsConfigurationOutput{}) diff --git a/sdk/go/aws/lex/init.go b/sdk/go/aws/lex/init.go index 4de123fcd42..95773924bde 100644 --- a/sdk/go/aws/lex/init.go +++ b/sdk/go/aws/lex/init.go @@ -29,6 +29,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Intent{} case "aws:lex/slotType:SlotType": r = &SlotType{} + case "aws:lex/v2modelsBot:V2modelsBot": + r = &V2modelsBot{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -62,4 +64,9 @@ func init() { "lex/slotType", &module{version}, ) + pulumi.RegisterResourceModule( + "aws", + "lex/v2modelsBot", + &module{version}, + ) } diff --git a/sdk/go/aws/lex/pulumiTypes.go b/sdk/go/aws/lex/pulumiTypes.go index 175cdfc7cd8..37d42b8c084 100644 --- a/sdk/go/aws/lex/pulumiTypes.go +++ b/sdk/go/aws/lex/pulumiTypes.go @@ -4377,6 +4377,471 @@ func (o SlotTypeEnumerationValueArrayOutput) Index(i pulumi.IntInput) SlotTypeEn }).(SlotTypeEnumerationValueOutput) } +type V2modelsBotDataPrivacy struct { + // (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + ChildDirected bool `pulumi:"childDirected"` +} + +// V2modelsBotDataPrivacyInput is an input type that accepts V2modelsBotDataPrivacyArgs and V2modelsBotDataPrivacyOutput values. +// You can construct a concrete instance of `V2modelsBotDataPrivacyInput` via: +// +// V2modelsBotDataPrivacyArgs{...} +type V2modelsBotDataPrivacyInput interface { + pulumi.Input + + ToV2modelsBotDataPrivacyOutput() V2modelsBotDataPrivacyOutput + ToV2modelsBotDataPrivacyOutputWithContext(context.Context) V2modelsBotDataPrivacyOutput +} + +type V2modelsBotDataPrivacyArgs struct { + // (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + ChildDirected pulumi.BoolInput `pulumi:"childDirected"` +} + +func (V2modelsBotDataPrivacyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotDataPrivacy)(nil)).Elem() +} + +func (i V2modelsBotDataPrivacyArgs) ToV2modelsBotDataPrivacyOutput() V2modelsBotDataPrivacyOutput { + return i.ToV2modelsBotDataPrivacyOutputWithContext(context.Background()) +} + +func (i V2modelsBotDataPrivacyArgs) ToV2modelsBotDataPrivacyOutputWithContext(ctx context.Context) V2modelsBotDataPrivacyOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotDataPrivacyOutput) +} + +func (i V2modelsBotDataPrivacyArgs) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotDataPrivacy] { + return pulumix.Output[V2modelsBotDataPrivacy]{ + OutputState: i.ToV2modelsBotDataPrivacyOutputWithContext(ctx).OutputState, + } +} + +// V2modelsBotDataPrivacyArrayInput is an input type that accepts V2modelsBotDataPrivacyArray and V2modelsBotDataPrivacyArrayOutput values. +// You can construct a concrete instance of `V2modelsBotDataPrivacyArrayInput` via: +// +// V2modelsBotDataPrivacyArray{ V2modelsBotDataPrivacyArgs{...} } +type V2modelsBotDataPrivacyArrayInput interface { + pulumi.Input + + ToV2modelsBotDataPrivacyArrayOutput() V2modelsBotDataPrivacyArrayOutput + ToV2modelsBotDataPrivacyArrayOutputWithContext(context.Context) V2modelsBotDataPrivacyArrayOutput +} + +type V2modelsBotDataPrivacyArray []V2modelsBotDataPrivacyInput + +func (V2modelsBotDataPrivacyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]V2modelsBotDataPrivacy)(nil)).Elem() +} + +func (i V2modelsBotDataPrivacyArray) ToV2modelsBotDataPrivacyArrayOutput() V2modelsBotDataPrivacyArrayOutput { + return i.ToV2modelsBotDataPrivacyArrayOutputWithContext(context.Background()) +} + +func (i V2modelsBotDataPrivacyArray) ToV2modelsBotDataPrivacyArrayOutputWithContext(ctx context.Context) V2modelsBotDataPrivacyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotDataPrivacyArrayOutput) +} + +func (i V2modelsBotDataPrivacyArray) ToOutput(ctx context.Context) pulumix.Output[[]V2modelsBotDataPrivacy] { + return pulumix.Output[[]V2modelsBotDataPrivacy]{ + OutputState: i.ToV2modelsBotDataPrivacyArrayOutputWithContext(ctx).OutputState, + } +} + +type V2modelsBotDataPrivacyOutput struct{ *pulumi.OutputState } + +func (V2modelsBotDataPrivacyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotDataPrivacy)(nil)).Elem() +} + +func (o V2modelsBotDataPrivacyOutput) ToV2modelsBotDataPrivacyOutput() V2modelsBotDataPrivacyOutput { + return o +} + +func (o V2modelsBotDataPrivacyOutput) ToV2modelsBotDataPrivacyOutputWithContext(ctx context.Context) V2modelsBotDataPrivacyOutput { + return o +} + +func (o V2modelsBotDataPrivacyOutput) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotDataPrivacy] { + return pulumix.Output[V2modelsBotDataPrivacy]{ + OutputState: o.OutputState, + } +} + +// (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. +func (o V2modelsBotDataPrivacyOutput) ChildDirected() pulumi.BoolOutput { + return o.ApplyT(func(v V2modelsBotDataPrivacy) bool { return v.ChildDirected }).(pulumi.BoolOutput) +} + +type V2modelsBotDataPrivacyArrayOutput struct{ *pulumi.OutputState } + +func (V2modelsBotDataPrivacyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]V2modelsBotDataPrivacy)(nil)).Elem() +} + +func (o V2modelsBotDataPrivacyArrayOutput) ToV2modelsBotDataPrivacyArrayOutput() V2modelsBotDataPrivacyArrayOutput { + return o +} + +func (o V2modelsBotDataPrivacyArrayOutput) ToV2modelsBotDataPrivacyArrayOutputWithContext(ctx context.Context) V2modelsBotDataPrivacyArrayOutput { + return o +} + +func (o V2modelsBotDataPrivacyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]V2modelsBotDataPrivacy] { + return pulumix.Output[[]V2modelsBotDataPrivacy]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotDataPrivacyArrayOutput) Index(i pulumi.IntInput) V2modelsBotDataPrivacyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) V2modelsBotDataPrivacy { + return vs[0].([]V2modelsBotDataPrivacy)[vs[1].(int)] + }).(V2modelsBotDataPrivacyOutput) +} + +type V2modelsBotMember struct { + // (Required) - Alias ID of a bot that is a member of this network of bots. + AliasId string `pulumi:"aliasId"` + // (Required) - Alias name of a bot that is a member of this network of bots. + AliasName string `pulumi:"aliasName"` + // (Required) - Unique ID of a bot that is a member of this network of bots. + Id string `pulumi:"id"` + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name string `pulumi:"name"` + // (Required) - Version of a bot that is a member of this network of bots. + Version string `pulumi:"version"` +} + +// V2modelsBotMemberInput is an input type that accepts V2modelsBotMemberArgs and V2modelsBotMemberOutput values. +// You can construct a concrete instance of `V2modelsBotMemberInput` via: +// +// V2modelsBotMemberArgs{...} +type V2modelsBotMemberInput interface { + pulumi.Input + + ToV2modelsBotMemberOutput() V2modelsBotMemberOutput + ToV2modelsBotMemberOutputWithContext(context.Context) V2modelsBotMemberOutput +} + +type V2modelsBotMemberArgs struct { + // (Required) - Alias ID of a bot that is a member of this network of bots. + AliasId pulumi.StringInput `pulumi:"aliasId"` + // (Required) - Alias name of a bot that is a member of this network of bots. + AliasName pulumi.StringInput `pulumi:"aliasName"` + // (Required) - Unique ID of a bot that is a member of this network of bots. + Id pulumi.StringInput `pulumi:"id"` + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name pulumi.StringInput `pulumi:"name"` + // (Required) - Version of a bot that is a member of this network of bots. + Version pulumi.StringInput `pulumi:"version"` +} + +func (V2modelsBotMemberArgs) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotMember)(nil)).Elem() +} + +func (i V2modelsBotMemberArgs) ToV2modelsBotMemberOutput() V2modelsBotMemberOutput { + return i.ToV2modelsBotMemberOutputWithContext(context.Background()) +} + +func (i V2modelsBotMemberArgs) ToV2modelsBotMemberOutputWithContext(ctx context.Context) V2modelsBotMemberOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotMemberOutput) +} + +func (i V2modelsBotMemberArgs) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotMember] { + return pulumix.Output[V2modelsBotMember]{ + OutputState: i.ToV2modelsBotMemberOutputWithContext(ctx).OutputState, + } +} + +// V2modelsBotMemberArrayInput is an input type that accepts V2modelsBotMemberArray and V2modelsBotMemberArrayOutput values. +// You can construct a concrete instance of `V2modelsBotMemberArrayInput` via: +// +// V2modelsBotMemberArray{ V2modelsBotMemberArgs{...} } +type V2modelsBotMemberArrayInput interface { + pulumi.Input + + ToV2modelsBotMemberArrayOutput() V2modelsBotMemberArrayOutput + ToV2modelsBotMemberArrayOutputWithContext(context.Context) V2modelsBotMemberArrayOutput +} + +type V2modelsBotMemberArray []V2modelsBotMemberInput + +func (V2modelsBotMemberArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]V2modelsBotMember)(nil)).Elem() +} + +func (i V2modelsBotMemberArray) ToV2modelsBotMemberArrayOutput() V2modelsBotMemberArrayOutput { + return i.ToV2modelsBotMemberArrayOutputWithContext(context.Background()) +} + +func (i V2modelsBotMemberArray) ToV2modelsBotMemberArrayOutputWithContext(ctx context.Context) V2modelsBotMemberArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotMemberArrayOutput) +} + +func (i V2modelsBotMemberArray) ToOutput(ctx context.Context) pulumix.Output[[]V2modelsBotMember] { + return pulumix.Output[[]V2modelsBotMember]{ + OutputState: i.ToV2modelsBotMemberArrayOutputWithContext(ctx).OutputState, + } +} + +type V2modelsBotMemberOutput struct{ *pulumi.OutputState } + +func (V2modelsBotMemberOutput) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotMember)(nil)).Elem() +} + +func (o V2modelsBotMemberOutput) ToV2modelsBotMemberOutput() V2modelsBotMemberOutput { + return o +} + +func (o V2modelsBotMemberOutput) ToV2modelsBotMemberOutputWithContext(ctx context.Context) V2modelsBotMemberOutput { + return o +} + +func (o V2modelsBotMemberOutput) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotMember] { + return pulumix.Output[V2modelsBotMember]{ + OutputState: o.OutputState, + } +} + +// (Required) - Alias ID of a bot that is a member of this network of bots. +func (o V2modelsBotMemberOutput) AliasId() pulumi.StringOutput { + return o.ApplyT(func(v V2modelsBotMember) string { return v.AliasId }).(pulumi.StringOutput) +} + +// (Required) - Alias name of a bot that is a member of this network of bots. +func (o V2modelsBotMemberOutput) AliasName() pulumi.StringOutput { + return o.ApplyT(func(v V2modelsBotMember) string { return v.AliasName }).(pulumi.StringOutput) +} + +// (Required) - Unique ID of a bot that is a member of this network of bots. +func (o V2modelsBotMemberOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v V2modelsBotMember) string { return v.Id }).(pulumi.StringOutput) +} + +// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. +func (o V2modelsBotMemberOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v V2modelsBotMember) string { return v.Name }).(pulumi.StringOutput) +} + +// (Required) - Version of a bot that is a member of this network of bots. +func (o V2modelsBotMemberOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v V2modelsBotMember) string { return v.Version }).(pulumi.StringOutput) +} + +type V2modelsBotMemberArrayOutput struct{ *pulumi.OutputState } + +func (V2modelsBotMemberArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]V2modelsBotMember)(nil)).Elem() +} + +func (o V2modelsBotMemberArrayOutput) ToV2modelsBotMemberArrayOutput() V2modelsBotMemberArrayOutput { + return o +} + +func (o V2modelsBotMemberArrayOutput) ToV2modelsBotMemberArrayOutputWithContext(ctx context.Context) V2modelsBotMemberArrayOutput { + return o +} + +func (o V2modelsBotMemberArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]V2modelsBotMember] { + return pulumix.Output[[]V2modelsBotMember]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotMemberArrayOutput) Index(i pulumi.IntInput) V2modelsBotMemberOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) V2modelsBotMember { + return vs[0].([]V2modelsBotMember)[vs[1].(int)] + }).(V2modelsBotMemberOutput) +} + +type V2modelsBotTimeouts struct { + Create *string `pulumi:"create"` + Delete *string `pulumi:"delete"` + Update *string `pulumi:"update"` +} + +// V2modelsBotTimeoutsInput is an input type that accepts V2modelsBotTimeoutsArgs and V2modelsBotTimeoutsOutput values. +// You can construct a concrete instance of `V2modelsBotTimeoutsInput` via: +// +// V2modelsBotTimeoutsArgs{...} +type V2modelsBotTimeoutsInput interface { + pulumi.Input + + ToV2modelsBotTimeoutsOutput() V2modelsBotTimeoutsOutput + ToV2modelsBotTimeoutsOutputWithContext(context.Context) V2modelsBotTimeoutsOutput +} + +type V2modelsBotTimeoutsArgs struct { + Create pulumi.StringPtrInput `pulumi:"create"` + Delete pulumi.StringPtrInput `pulumi:"delete"` + Update pulumi.StringPtrInput `pulumi:"update"` +} + +func (V2modelsBotTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotTimeouts)(nil)).Elem() +} + +func (i V2modelsBotTimeoutsArgs) ToV2modelsBotTimeoutsOutput() V2modelsBotTimeoutsOutput { + return i.ToV2modelsBotTimeoutsOutputWithContext(context.Background()) +} + +func (i V2modelsBotTimeoutsArgs) ToV2modelsBotTimeoutsOutputWithContext(ctx context.Context) V2modelsBotTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotTimeoutsOutput) +} + +func (i V2modelsBotTimeoutsArgs) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotTimeouts] { + return pulumix.Output[V2modelsBotTimeouts]{ + OutputState: i.ToV2modelsBotTimeoutsOutputWithContext(ctx).OutputState, + } +} + +func (i V2modelsBotTimeoutsArgs) ToV2modelsBotTimeoutsPtrOutput() V2modelsBotTimeoutsPtrOutput { + return i.ToV2modelsBotTimeoutsPtrOutputWithContext(context.Background()) +} + +func (i V2modelsBotTimeoutsArgs) ToV2modelsBotTimeoutsPtrOutputWithContext(ctx context.Context) V2modelsBotTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotTimeoutsOutput).ToV2modelsBotTimeoutsPtrOutputWithContext(ctx) +} + +// V2modelsBotTimeoutsPtrInput is an input type that accepts V2modelsBotTimeoutsArgs, V2modelsBotTimeoutsPtr and V2modelsBotTimeoutsPtrOutput values. +// You can construct a concrete instance of `V2modelsBotTimeoutsPtrInput` via: +// +// V2modelsBotTimeoutsArgs{...} +// +// or: +// +// nil +type V2modelsBotTimeoutsPtrInput interface { + pulumi.Input + + ToV2modelsBotTimeoutsPtrOutput() V2modelsBotTimeoutsPtrOutput + ToV2modelsBotTimeoutsPtrOutputWithContext(context.Context) V2modelsBotTimeoutsPtrOutput +} + +type v2modelsBotTimeoutsPtrType V2modelsBotTimeoutsArgs + +func V2modelsBotTimeoutsPtr(v *V2modelsBotTimeoutsArgs) V2modelsBotTimeoutsPtrInput { + return (*v2modelsBotTimeoutsPtrType)(v) +} + +func (*v2modelsBotTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**V2modelsBotTimeouts)(nil)).Elem() +} + +func (i *v2modelsBotTimeoutsPtrType) ToV2modelsBotTimeoutsPtrOutput() V2modelsBotTimeoutsPtrOutput { + return i.ToV2modelsBotTimeoutsPtrOutputWithContext(context.Background()) +} + +func (i *v2modelsBotTimeoutsPtrType) ToV2modelsBotTimeoutsPtrOutputWithContext(ctx context.Context) V2modelsBotTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotTimeoutsPtrOutput) +} + +func (i *v2modelsBotTimeoutsPtrType) ToOutput(ctx context.Context) pulumix.Output[*V2modelsBotTimeouts] { + return pulumix.Output[*V2modelsBotTimeouts]{ + OutputState: i.ToV2modelsBotTimeoutsPtrOutputWithContext(ctx).OutputState, + } +} + +type V2modelsBotTimeoutsOutput struct{ *pulumi.OutputState } + +func (V2modelsBotTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*V2modelsBotTimeouts)(nil)).Elem() +} + +func (o V2modelsBotTimeoutsOutput) ToV2modelsBotTimeoutsOutput() V2modelsBotTimeoutsOutput { + return o +} + +func (o V2modelsBotTimeoutsOutput) ToV2modelsBotTimeoutsOutputWithContext(ctx context.Context) V2modelsBotTimeoutsOutput { + return o +} + +func (o V2modelsBotTimeoutsOutput) ToV2modelsBotTimeoutsPtrOutput() V2modelsBotTimeoutsPtrOutput { + return o.ToV2modelsBotTimeoutsPtrOutputWithContext(context.Background()) +} + +func (o V2modelsBotTimeoutsOutput) ToV2modelsBotTimeoutsPtrOutputWithContext(ctx context.Context) V2modelsBotTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v V2modelsBotTimeouts) *V2modelsBotTimeouts { + return &v + }).(V2modelsBotTimeoutsPtrOutput) +} + +func (o V2modelsBotTimeoutsOutput) ToOutput(ctx context.Context) pulumix.Output[V2modelsBotTimeouts] { + return pulumix.Output[V2modelsBotTimeouts]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotTimeoutsOutput) Create() pulumi.StringPtrOutput { + return o.ApplyT(func(v V2modelsBotTimeouts) *string { return v.Create }).(pulumi.StringPtrOutput) +} + +func (o V2modelsBotTimeoutsOutput) Delete() pulumi.StringPtrOutput { + return o.ApplyT(func(v V2modelsBotTimeouts) *string { return v.Delete }).(pulumi.StringPtrOutput) +} + +func (o V2modelsBotTimeoutsOutput) Update() pulumi.StringPtrOutput { + return o.ApplyT(func(v V2modelsBotTimeouts) *string { return v.Update }).(pulumi.StringPtrOutput) +} + +type V2modelsBotTimeoutsPtrOutput struct{ *pulumi.OutputState } + +func (V2modelsBotTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**V2modelsBotTimeouts)(nil)).Elem() +} + +func (o V2modelsBotTimeoutsPtrOutput) ToV2modelsBotTimeoutsPtrOutput() V2modelsBotTimeoutsPtrOutput { + return o +} + +func (o V2modelsBotTimeoutsPtrOutput) ToV2modelsBotTimeoutsPtrOutputWithContext(ctx context.Context) V2modelsBotTimeoutsPtrOutput { + return o +} + +func (o V2modelsBotTimeoutsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*V2modelsBotTimeouts] { + return pulumix.Output[*V2modelsBotTimeouts]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotTimeoutsPtrOutput) Elem() V2modelsBotTimeoutsOutput { + return o.ApplyT(func(v *V2modelsBotTimeouts) V2modelsBotTimeouts { + if v != nil { + return *v + } + var ret V2modelsBotTimeouts + return ret + }).(V2modelsBotTimeoutsOutput) +} + +func (o V2modelsBotTimeoutsPtrOutput) Create() pulumi.StringPtrOutput { + return o.ApplyT(func(v *V2modelsBotTimeouts) *string { + if v == nil { + return nil + } + return v.Create + }).(pulumi.StringPtrOutput) +} + +func (o V2modelsBotTimeoutsPtrOutput) Delete() pulumi.StringPtrOutput { + return o.ApplyT(func(v *V2modelsBotTimeouts) *string { + if v == nil { + return nil + } + return v.Delete + }).(pulumi.StringPtrOutput) +} + +func (o V2modelsBotTimeoutsPtrOutput) Update() pulumi.StringPtrOutput { + return o.ApplyT(func(v *V2modelsBotTimeouts) *string { + if v == nil { + return nil + } + return v.Update + }).(pulumi.StringPtrOutput) +} + type GetSlotTypeEnumerationValue struct { Synonyms []string `pulumi:"synonyms"` Value string `pulumi:"value"` @@ -4552,6 +5017,12 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*IntentSlotValueElicitationPromptMessageArrayInput)(nil)).Elem(), IntentSlotValueElicitationPromptMessageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotTypeEnumerationValueInput)(nil)).Elem(), SlotTypeEnumerationValueArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SlotTypeEnumerationValueArrayInput)(nil)).Elem(), SlotTypeEnumerationValueArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotDataPrivacyInput)(nil)).Elem(), V2modelsBotDataPrivacyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotDataPrivacyArrayInput)(nil)).Elem(), V2modelsBotDataPrivacyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotMemberInput)(nil)).Elem(), V2modelsBotMemberArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotMemberArrayInput)(nil)).Elem(), V2modelsBotMemberArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotTimeoutsInput)(nil)).Elem(), V2modelsBotTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotTimeoutsPtrInput)(nil)).Elem(), V2modelsBotTimeoutsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSlotTypeEnumerationValueInput)(nil)).Elem(), GetSlotTypeEnumerationValueArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSlotTypeEnumerationValueArrayInput)(nil)).Elem(), GetSlotTypeEnumerationValueArray{}) pulumi.RegisterOutputType(BotAbortStatementOutput{}) @@ -4604,6 +5075,12 @@ func init() { pulumi.RegisterOutputType(IntentSlotValueElicitationPromptMessageArrayOutput{}) pulumi.RegisterOutputType(SlotTypeEnumerationValueOutput{}) pulumi.RegisterOutputType(SlotTypeEnumerationValueArrayOutput{}) + pulumi.RegisterOutputType(V2modelsBotDataPrivacyOutput{}) + pulumi.RegisterOutputType(V2modelsBotDataPrivacyArrayOutput{}) + pulumi.RegisterOutputType(V2modelsBotMemberOutput{}) + pulumi.RegisterOutputType(V2modelsBotMemberArrayOutput{}) + pulumi.RegisterOutputType(V2modelsBotTimeoutsOutput{}) + pulumi.RegisterOutputType(V2modelsBotTimeoutsPtrOutput{}) pulumi.RegisterOutputType(GetSlotTypeEnumerationValueOutput{}) pulumi.RegisterOutputType(GetSlotTypeEnumerationValueArrayOutput{}) } diff --git a/sdk/go/aws/lex/v2modelsBot.go b/sdk/go/aws/lex/v2modelsBot.go new file mode 100644 index 00000000000..35068e83ae2 --- /dev/null +++ b/sdk/go/aws/lex/v2modelsBot.go @@ -0,0 +1,451 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package lex + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" +) + +// Resource for managing an AWS Lex V2 Models Bot. +// +// ## Example Usage +// ### Basic Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := lex.NewV2modelsBot(ctx, "example", &lex.V2modelsBotArgs{ +// DataPrivacies: lex.V2modelsBotDataPrivacyArray{ +// &lex.V2modelsBotDataPrivacyArgs{ +// ChildDirected: pulumi.Bool("boolean"), +// }, +// }, +// IdleSessionTtlInSeconds: pulumi.Int(10), +// RoleArn: pulumi.String("bot_example_arn"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { +// +// to = aws_lexv2models_bot.example +// +// id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 +type V2modelsBot struct { + pulumi.CustomResourceState + + Arn pulumi.StringOutput `pulumi:"arn"` + // Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + DataPrivacies V2modelsBotDataPrivacyArrayOutput `pulumi:"dataPrivacies"` + // Description of the bot. It appears in lists to help you identify a particular bot. + Description pulumi.StringPtrOutput `pulumi:"description"` + // Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTtlInSeconds pulumi.IntOutput `pulumi:"idleSessionTtlInSeconds"` + // List of bot members in a network to be created. See `botMembers`. + Members V2modelsBotMemberArrayOutput `pulumi:"members"` + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name pulumi.StringOutput `pulumi:"name"` + // ARN of an IAM role that has permission to access the bot. + // + // The following arguments are optional: + RoleArn pulumi.StringOutput `pulumi:"roleArn"` + Tags pulumi.StringMapOutput `pulumi:"tags"` + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` + // List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + TestBotAliasTags pulumi.StringMapOutput `pulumi:"testBotAliasTags"` + Timeouts V2modelsBotTimeoutsPtrOutput `pulumi:"timeouts"` + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewV2modelsBot registers a new resource with the given unique name, arguments, and options. +func NewV2modelsBot(ctx *pulumi.Context, + name string, args *V2modelsBotArgs, opts ...pulumi.ResourceOption) (*V2modelsBot, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.IdleSessionTtlInSeconds == nil { + return nil, errors.New("invalid value for required argument 'IdleSessionTtlInSeconds'") + } + if args.RoleArn == nil { + return nil, errors.New("invalid value for required argument 'RoleArn'") + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "tagsAll", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource V2modelsBot + err := ctx.RegisterResource("aws:lex/v2modelsBot:V2modelsBot", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetV2modelsBot gets an existing V2modelsBot resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetV2modelsBot(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *V2modelsBotState, opts ...pulumi.ResourceOption) (*V2modelsBot, error) { + var resource V2modelsBot + err := ctx.ReadResource("aws:lex/v2modelsBot:V2modelsBot", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering V2modelsBot resources. +type v2modelsBotState struct { + Arn *string `pulumi:"arn"` + // Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + DataPrivacies []V2modelsBotDataPrivacy `pulumi:"dataPrivacies"` + // Description of the bot. It appears in lists to help you identify a particular bot. + Description *string `pulumi:"description"` + // Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTtlInSeconds *int `pulumi:"idleSessionTtlInSeconds"` + // List of bot members in a network to be created. See `botMembers`. + Members []V2modelsBotMember `pulumi:"members"` + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name *string `pulumi:"name"` + // ARN of an IAM role that has permission to access the bot. + // + // The following arguments are optional: + RoleArn *string `pulumi:"roleArn"` + Tags map[string]string `pulumi:"tags"` + // Deprecated: Please use `tags` instead. + TagsAll map[string]string `pulumi:"tagsAll"` + // List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + TestBotAliasTags map[string]string `pulumi:"testBotAliasTags"` + Timeouts *V2modelsBotTimeouts `pulumi:"timeouts"` + Type *string `pulumi:"type"` +} + +type V2modelsBotState struct { + Arn pulumi.StringPtrInput + // Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + DataPrivacies V2modelsBotDataPrivacyArrayInput + // Description of the bot. It appears in lists to help you identify a particular bot. + Description pulumi.StringPtrInput + // Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTtlInSeconds pulumi.IntPtrInput + // List of bot members in a network to be created. See `botMembers`. + Members V2modelsBotMemberArrayInput + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name pulumi.StringPtrInput + // ARN of an IAM role that has permission to access the bot. + // + // The following arguments are optional: + RoleArn pulumi.StringPtrInput + Tags pulumi.StringMapInput + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapInput + // List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + TestBotAliasTags pulumi.StringMapInput + Timeouts V2modelsBotTimeoutsPtrInput + Type pulumi.StringPtrInput +} + +func (V2modelsBotState) ElementType() reflect.Type { + return reflect.TypeOf((*v2modelsBotState)(nil)).Elem() +} + +type v2modelsBotArgs struct { + // Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + DataPrivacies []V2modelsBotDataPrivacy `pulumi:"dataPrivacies"` + // Description of the bot. It appears in lists to help you identify a particular bot. + Description *string `pulumi:"description"` + // Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTtlInSeconds int `pulumi:"idleSessionTtlInSeconds"` + // List of bot members in a network to be created. See `botMembers`. + Members []V2modelsBotMember `pulumi:"members"` + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name *string `pulumi:"name"` + // ARN of an IAM role that has permission to access the bot. + // + // The following arguments are optional: + RoleArn string `pulumi:"roleArn"` + Tags map[string]string `pulumi:"tags"` + // List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + TestBotAliasTags map[string]string `pulumi:"testBotAliasTags"` + Timeouts *V2modelsBotTimeouts `pulumi:"timeouts"` + Type *string `pulumi:"type"` +} + +// The set of arguments for constructing a V2modelsBot resource. +type V2modelsBotArgs struct { + // Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + DataPrivacies V2modelsBotDataPrivacyArrayInput + // Description of the bot. It appears in lists to help you identify a particular bot. + Description pulumi.StringPtrInput + // Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTtlInSeconds pulumi.IntInput + // List of bot members in a network to be created. See `botMembers`. + Members V2modelsBotMemberArrayInput + // Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + Name pulumi.StringPtrInput + // ARN of an IAM role that has permission to access the bot. + // + // The following arguments are optional: + RoleArn pulumi.StringInput + Tags pulumi.StringMapInput + // List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + TestBotAliasTags pulumi.StringMapInput + Timeouts V2modelsBotTimeoutsPtrInput + Type pulumi.StringPtrInput +} + +func (V2modelsBotArgs) ElementType() reflect.Type { + return reflect.TypeOf((*v2modelsBotArgs)(nil)).Elem() +} + +type V2modelsBotInput interface { + pulumi.Input + + ToV2modelsBotOutput() V2modelsBotOutput + ToV2modelsBotOutputWithContext(ctx context.Context) V2modelsBotOutput +} + +func (*V2modelsBot) ElementType() reflect.Type { + return reflect.TypeOf((**V2modelsBot)(nil)).Elem() +} + +func (i *V2modelsBot) ToV2modelsBotOutput() V2modelsBotOutput { + return i.ToV2modelsBotOutputWithContext(context.Background()) +} + +func (i *V2modelsBot) ToV2modelsBotOutputWithContext(ctx context.Context) V2modelsBotOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotOutput) +} + +func (i *V2modelsBot) ToOutput(ctx context.Context) pulumix.Output[*V2modelsBot] { + return pulumix.Output[*V2modelsBot]{ + OutputState: i.ToV2modelsBotOutputWithContext(ctx).OutputState, + } +} + +// V2modelsBotArrayInput is an input type that accepts V2modelsBotArray and V2modelsBotArrayOutput values. +// You can construct a concrete instance of `V2modelsBotArrayInput` via: +// +// V2modelsBotArray{ V2modelsBotArgs{...} } +type V2modelsBotArrayInput interface { + pulumi.Input + + ToV2modelsBotArrayOutput() V2modelsBotArrayOutput + ToV2modelsBotArrayOutputWithContext(context.Context) V2modelsBotArrayOutput +} + +type V2modelsBotArray []V2modelsBotInput + +func (V2modelsBotArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*V2modelsBot)(nil)).Elem() +} + +func (i V2modelsBotArray) ToV2modelsBotArrayOutput() V2modelsBotArrayOutput { + return i.ToV2modelsBotArrayOutputWithContext(context.Background()) +} + +func (i V2modelsBotArray) ToV2modelsBotArrayOutputWithContext(ctx context.Context) V2modelsBotArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotArrayOutput) +} + +func (i V2modelsBotArray) ToOutput(ctx context.Context) pulumix.Output[[]*V2modelsBot] { + return pulumix.Output[[]*V2modelsBot]{ + OutputState: i.ToV2modelsBotArrayOutputWithContext(ctx).OutputState, + } +} + +// V2modelsBotMapInput is an input type that accepts V2modelsBotMap and V2modelsBotMapOutput values. +// You can construct a concrete instance of `V2modelsBotMapInput` via: +// +// V2modelsBotMap{ "key": V2modelsBotArgs{...} } +type V2modelsBotMapInput interface { + pulumi.Input + + ToV2modelsBotMapOutput() V2modelsBotMapOutput + ToV2modelsBotMapOutputWithContext(context.Context) V2modelsBotMapOutput +} + +type V2modelsBotMap map[string]V2modelsBotInput + +func (V2modelsBotMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*V2modelsBot)(nil)).Elem() +} + +func (i V2modelsBotMap) ToV2modelsBotMapOutput() V2modelsBotMapOutput { + return i.ToV2modelsBotMapOutputWithContext(context.Background()) +} + +func (i V2modelsBotMap) ToV2modelsBotMapOutputWithContext(ctx context.Context) V2modelsBotMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(V2modelsBotMapOutput) +} + +func (i V2modelsBotMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*V2modelsBot] { + return pulumix.Output[map[string]*V2modelsBot]{ + OutputState: i.ToV2modelsBotMapOutputWithContext(ctx).OutputState, + } +} + +type V2modelsBotOutput struct{ *pulumi.OutputState } + +func (V2modelsBotOutput) ElementType() reflect.Type { + return reflect.TypeOf((**V2modelsBot)(nil)).Elem() +} + +func (o V2modelsBotOutput) ToV2modelsBotOutput() V2modelsBotOutput { + return o +} + +func (o V2modelsBotOutput) ToV2modelsBotOutputWithContext(ctx context.Context) V2modelsBotOutput { + return o +} + +func (o V2modelsBotOutput) ToOutput(ctx context.Context) pulumix.Output[*V2modelsBot] { + return pulumix.Output[*V2modelsBot]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) +} + +// Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` +func (o V2modelsBotOutput) DataPrivacies() V2modelsBotDataPrivacyArrayOutput { + return o.ApplyT(func(v *V2modelsBot) V2modelsBotDataPrivacyArrayOutput { return v.DataPrivacies }).(V2modelsBotDataPrivacyArrayOutput) +} + +// Description of the bot. It appears in lists to help you identify a particular bot. +func (o V2modelsBotOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. +func (o V2modelsBotOutput) IdleSessionTtlInSeconds() pulumi.IntOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.IntOutput { return v.IdleSessionTtlInSeconds }).(pulumi.IntOutput) +} + +// List of bot members in a network to be created. See `botMembers`. +func (o V2modelsBotOutput) Members() V2modelsBotMemberArrayOutput { + return o.ApplyT(func(v *V2modelsBot) V2modelsBotMemberArrayOutput { return v.Members }).(V2modelsBotMemberArrayOutput) +} + +// Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. +func (o V2modelsBotOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// ARN of an IAM role that has permission to access the bot. +// +// The following arguments are optional: +func (o V2modelsBotOutput) RoleArn() pulumi.StringOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringOutput { return v.RoleArn }).(pulumi.StringOutput) +} + +func (o V2modelsBotOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +// Deprecated: Please use `tags` instead. +func (o V2modelsBotOutput) TagsAll() pulumi.StringMapOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) +} + +// List of tags to add to the test alias for a bot. You can only add tags when you create a bot. +func (o V2modelsBotOutput) TestBotAliasTags() pulumi.StringMapOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringMapOutput { return v.TestBotAliasTags }).(pulumi.StringMapOutput) +} + +func (o V2modelsBotOutput) Timeouts() V2modelsBotTimeoutsPtrOutput { + return o.ApplyT(func(v *V2modelsBot) V2modelsBotTimeoutsPtrOutput { return v.Timeouts }).(V2modelsBotTimeoutsPtrOutput) +} + +func (o V2modelsBotOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v *V2modelsBot) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) +} + +type V2modelsBotArrayOutput struct{ *pulumi.OutputState } + +func (V2modelsBotArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*V2modelsBot)(nil)).Elem() +} + +func (o V2modelsBotArrayOutput) ToV2modelsBotArrayOutput() V2modelsBotArrayOutput { + return o +} + +func (o V2modelsBotArrayOutput) ToV2modelsBotArrayOutputWithContext(ctx context.Context) V2modelsBotArrayOutput { + return o +} + +func (o V2modelsBotArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*V2modelsBot] { + return pulumix.Output[[]*V2modelsBot]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotArrayOutput) Index(i pulumi.IntInput) V2modelsBotOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *V2modelsBot { + return vs[0].([]*V2modelsBot)[vs[1].(int)] + }).(V2modelsBotOutput) +} + +type V2modelsBotMapOutput struct{ *pulumi.OutputState } + +func (V2modelsBotMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*V2modelsBot)(nil)).Elem() +} + +func (o V2modelsBotMapOutput) ToV2modelsBotMapOutput() V2modelsBotMapOutput { + return o +} + +func (o V2modelsBotMapOutput) ToV2modelsBotMapOutputWithContext(ctx context.Context) V2modelsBotMapOutput { + return o +} + +func (o V2modelsBotMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*V2modelsBot] { + return pulumix.Output[map[string]*V2modelsBot]{ + OutputState: o.OutputState, + } +} + +func (o V2modelsBotMapOutput) MapIndex(k pulumi.StringInput) V2modelsBotOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *V2modelsBot { + return vs[0].(map[string]*V2modelsBot)[vs[1].(string)] + }).(V2modelsBotOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotInput)(nil)).Elem(), &V2modelsBot{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotArrayInput)(nil)).Elem(), V2modelsBotArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*V2modelsBotMapInput)(nil)).Elem(), V2modelsBotMap{}) + pulumi.RegisterOutputType(V2modelsBotOutput{}) + pulumi.RegisterOutputType(V2modelsBotArrayOutput{}) + pulumi.RegisterOutputType(V2modelsBotMapOutput{}) +} diff --git a/sdk/go/aws/lightsail/bucket.go b/sdk/go/aws/lightsail/bucket.go index 813782408d7..079d6baf543 100644 --- a/sdk/go/aws/lightsail/bucket.go +++ b/sdk/go/aws/lightsail/bucket.go @@ -61,6 +61,8 @@ type Bucket struct { BundleId pulumi.StringOutput `pulumi:"bundleId"` // The timestamp when the bucket was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` + // Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"` // The name for the bucket. Name pulumi.StringOutput `pulumi:"name"` // The Amazon Web Services Region name. @@ -121,6 +123,8 @@ type bucketState struct { BundleId *string `pulumi:"bundleId"` // The timestamp when the bucket was created. CreatedAt *string `pulumi:"createdAt"` + // Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + ForceDelete *bool `pulumi:"forceDelete"` // The name for the bucket. Name *string `pulumi:"name"` // The Amazon Web Services Region name. @@ -145,6 +149,8 @@ type BucketState struct { BundleId pulumi.StringPtrInput // The timestamp when the bucket was created. CreatedAt pulumi.StringPtrInput + // Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + ForceDelete pulumi.BoolPtrInput // The name for the bucket. Name pulumi.StringPtrInput // The Amazon Web Services Region name. @@ -167,6 +173,8 @@ func (BucketState) ElementType() reflect.Type { type bucketArgs struct { // The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. BundleId string `pulumi:"bundleId"` + // Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + ForceDelete *bool `pulumi:"forceDelete"` // The name for the bucket. Name *string `pulumi:"name"` // A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. @@ -177,6 +185,8 @@ type bucketArgs struct { type BucketArgs struct { // The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. BundleId pulumi.StringInput + // Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + ForceDelete pulumi.BoolPtrInput // The name for the bucket. Name pulumi.StringPtrInput // A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. @@ -314,6 +324,11 @@ func (o BucketOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v *Bucket) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } +// Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. +func (o BucketOutput) ForceDelete() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *Bucket) pulumi.BoolPtrOutput { return v.ForceDelete }).(pulumi.BoolPtrOutput) +} + // The name for the bucket. func (o BucketOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Bucket) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) diff --git a/sdk/go/aws/opensearch/outboundConnection.go b/sdk/go/aws/opensearch/outboundConnection.go index 2fa102fe528..12b52926944 100644 --- a/sdk/go/aws/opensearch/outboundConnection.go +++ b/sdk/go/aws/opensearch/outboundConnection.go @@ -41,6 +41,7 @@ import ( // } // _, err = opensearch.NewOutboundConnection(ctx, "foo", &opensearch.OutboundConnectionArgs{ // ConnectionAlias: pulumi.String("outbound_connection"), +// ConnectionMode: pulumi.String("DIRECT"), // LocalDomainInfo: &opensearch.OutboundConnectionLocalDomainInfoArgs{ // OwnerId: *pulumi.String(currentCallerIdentity.AccountId), // Region: *pulumi.String(currentRegion.Name), @@ -73,8 +74,14 @@ import ( type OutboundConnection struct { pulumi.CustomResourceState + // Accepts the connection. + AcceptConnection pulumi.BoolPtrOutput `pulumi:"acceptConnection"` // Specifies the connection alias that will be used by the customer for this connection. ConnectionAlias pulumi.StringOutput `pulumi:"connectionAlias"` + // Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + ConnectionMode pulumi.StringPtrOutput `pulumi:"connectionMode"` + // Configuration block for the outbound connection. + ConnectionProperties OutboundConnectionConnectionPropertiesOutput `pulumi:"connectionProperties"` // Status of the connection request. ConnectionStatus pulumi.StringOutput `pulumi:"connectionStatus"` // Configuration block for the local Opensearch domain. @@ -122,8 +129,14 @@ func GetOutboundConnection(ctx *pulumi.Context, // Input properties used for looking up and filtering OutboundConnection resources. type outboundConnectionState struct { + // Accepts the connection. + AcceptConnection *bool `pulumi:"acceptConnection"` // Specifies the connection alias that will be used by the customer for this connection. ConnectionAlias *string `pulumi:"connectionAlias"` + // Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + ConnectionMode *string `pulumi:"connectionMode"` + // Configuration block for the outbound connection. + ConnectionProperties *OutboundConnectionConnectionProperties `pulumi:"connectionProperties"` // Status of the connection request. ConnectionStatus *string `pulumi:"connectionStatus"` // Configuration block for the local Opensearch domain. @@ -133,8 +146,14 @@ type outboundConnectionState struct { } type OutboundConnectionState struct { + // Accepts the connection. + AcceptConnection pulumi.BoolPtrInput // Specifies the connection alias that will be used by the customer for this connection. ConnectionAlias pulumi.StringPtrInput + // Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + ConnectionMode pulumi.StringPtrInput + // Configuration block for the outbound connection. + ConnectionProperties OutboundConnectionConnectionPropertiesPtrInput // Status of the connection request. ConnectionStatus pulumi.StringPtrInput // Configuration block for the local Opensearch domain. @@ -148,8 +167,14 @@ func (OutboundConnectionState) ElementType() reflect.Type { } type outboundConnectionArgs struct { + // Accepts the connection. + AcceptConnection *bool `pulumi:"acceptConnection"` // Specifies the connection alias that will be used by the customer for this connection. ConnectionAlias string `pulumi:"connectionAlias"` + // Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + ConnectionMode *string `pulumi:"connectionMode"` + // Configuration block for the outbound connection. + ConnectionProperties *OutboundConnectionConnectionProperties `pulumi:"connectionProperties"` // Configuration block for the local Opensearch domain. LocalDomainInfo OutboundConnectionLocalDomainInfo `pulumi:"localDomainInfo"` // Configuration block for the remote Opensearch domain. @@ -158,8 +183,14 @@ type outboundConnectionArgs struct { // The set of arguments for constructing a OutboundConnection resource. type OutboundConnectionArgs struct { + // Accepts the connection. + AcceptConnection pulumi.BoolPtrInput // Specifies the connection alias that will be used by the customer for this connection. ConnectionAlias pulumi.StringInput + // Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + ConnectionMode pulumi.StringPtrInput + // Configuration block for the outbound connection. + ConnectionProperties OutboundConnectionConnectionPropertiesPtrInput // Configuration block for the local Opensearch domain. LocalDomainInfo OutboundConnectionLocalDomainInfoInput // Configuration block for the remote Opensearch domain. @@ -277,11 +308,28 @@ func (o OutboundConnectionOutput) ToOutput(ctx context.Context) pulumix.Output[* } } +// Accepts the connection. +func (o OutboundConnectionOutput) AcceptConnection() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OutboundConnection) pulumi.BoolPtrOutput { return v.AcceptConnection }).(pulumi.BoolPtrOutput) +} + // Specifies the connection alias that will be used by the customer for this connection. func (o OutboundConnectionOutput) ConnectionAlias() pulumi.StringOutput { return o.ApplyT(func(v *OutboundConnection) pulumi.StringOutput { return v.ConnectionAlias }).(pulumi.StringOutput) } +// Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. +func (o OutboundConnectionOutput) ConnectionMode() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OutboundConnection) pulumi.StringPtrOutput { return v.ConnectionMode }).(pulumi.StringPtrOutput) +} + +// Configuration block for the outbound connection. +func (o OutboundConnectionOutput) ConnectionProperties() OutboundConnectionConnectionPropertiesOutput { + return o.ApplyT(func(v *OutboundConnection) OutboundConnectionConnectionPropertiesOutput { + return v.ConnectionProperties + }).(OutboundConnectionConnectionPropertiesOutput) +} + // Status of the connection request. func (o OutboundConnectionOutput) ConnectionStatus() pulumi.StringOutput { return o.ApplyT(func(v *OutboundConnection) pulumi.StringOutput { return v.ConnectionStatus }).(pulumi.StringOutput) diff --git a/sdk/go/aws/opensearch/pulumiTypes.go b/sdk/go/aws/opensearch/pulumiTypes.go index 281fac49b8d..88aeb2fcfb2 100644 --- a/sdk/go/aws/opensearch/pulumiTypes.go +++ b/sdk/go/aws/opensearch/pulumiTypes.go @@ -4214,6 +4214,349 @@ func (o DomainVpcOptionsPtrOutput) VpcId() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +type OutboundConnectionConnectionProperties struct { + // Configuration block for cross cluster search. + CrossClusterSearch *OutboundConnectionConnectionPropertiesCrossClusterSearch `pulumi:"crossClusterSearch"` + // The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. + Endpoint *string `pulumi:"endpoint"` +} + +// OutboundConnectionConnectionPropertiesInput is an input type that accepts OutboundConnectionConnectionPropertiesArgs and OutboundConnectionConnectionPropertiesOutput values. +// You can construct a concrete instance of `OutboundConnectionConnectionPropertiesInput` via: +// +// OutboundConnectionConnectionPropertiesArgs{...} +type OutboundConnectionConnectionPropertiesInput interface { + pulumi.Input + + ToOutboundConnectionConnectionPropertiesOutput() OutboundConnectionConnectionPropertiesOutput + ToOutboundConnectionConnectionPropertiesOutputWithContext(context.Context) OutboundConnectionConnectionPropertiesOutput +} + +type OutboundConnectionConnectionPropertiesArgs struct { + // Configuration block for cross cluster search. + CrossClusterSearch OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput `pulumi:"crossClusterSearch"` + // The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. + Endpoint pulumi.StringPtrInput `pulumi:"endpoint"` +} + +func (OutboundConnectionConnectionPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OutboundConnectionConnectionProperties)(nil)).Elem() +} + +func (i OutboundConnectionConnectionPropertiesArgs) ToOutboundConnectionConnectionPropertiesOutput() OutboundConnectionConnectionPropertiesOutput { + return i.ToOutboundConnectionConnectionPropertiesOutputWithContext(context.Background()) +} + +func (i OutboundConnectionConnectionPropertiesArgs) ToOutboundConnectionConnectionPropertiesOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesOutput) +} + +func (i OutboundConnectionConnectionPropertiesArgs) ToOutput(ctx context.Context) pulumix.Output[OutboundConnectionConnectionProperties] { + return pulumix.Output[OutboundConnectionConnectionProperties]{ + OutputState: i.ToOutboundConnectionConnectionPropertiesOutputWithContext(ctx).OutputState, + } +} + +func (i OutboundConnectionConnectionPropertiesArgs) ToOutboundConnectionConnectionPropertiesPtrOutput() OutboundConnectionConnectionPropertiesPtrOutput { + return i.ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(context.Background()) +} + +func (i OutboundConnectionConnectionPropertiesArgs) ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesOutput).ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx) +} + +// OutboundConnectionConnectionPropertiesPtrInput is an input type that accepts OutboundConnectionConnectionPropertiesArgs, OutboundConnectionConnectionPropertiesPtr and OutboundConnectionConnectionPropertiesPtrOutput values. +// You can construct a concrete instance of `OutboundConnectionConnectionPropertiesPtrInput` via: +// +// OutboundConnectionConnectionPropertiesArgs{...} +// +// or: +// +// nil +type OutboundConnectionConnectionPropertiesPtrInput interface { + pulumi.Input + + ToOutboundConnectionConnectionPropertiesPtrOutput() OutboundConnectionConnectionPropertiesPtrOutput + ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(context.Context) OutboundConnectionConnectionPropertiesPtrOutput +} + +type outboundConnectionConnectionPropertiesPtrType OutboundConnectionConnectionPropertiesArgs + +func OutboundConnectionConnectionPropertiesPtr(v *OutboundConnectionConnectionPropertiesArgs) OutboundConnectionConnectionPropertiesPtrInput { + return (*outboundConnectionConnectionPropertiesPtrType)(v) +} + +func (*outboundConnectionConnectionPropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OutboundConnectionConnectionProperties)(nil)).Elem() +} + +func (i *outboundConnectionConnectionPropertiesPtrType) ToOutboundConnectionConnectionPropertiesPtrOutput() OutboundConnectionConnectionPropertiesPtrOutput { + return i.ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(context.Background()) +} + +func (i *outboundConnectionConnectionPropertiesPtrType) ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesPtrOutput) +} + +func (i *outboundConnectionConnectionPropertiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*OutboundConnectionConnectionProperties] { + return pulumix.Output[*OutboundConnectionConnectionProperties]{ + OutputState: i.ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx).OutputState, + } +} + +type OutboundConnectionConnectionPropertiesOutput struct{ *pulumi.OutputState } + +func (OutboundConnectionConnectionPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OutboundConnectionConnectionProperties)(nil)).Elem() +} + +func (o OutboundConnectionConnectionPropertiesOutput) ToOutboundConnectionConnectionPropertiesOutput() OutboundConnectionConnectionPropertiesOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesOutput) ToOutboundConnectionConnectionPropertiesOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesOutput) ToOutboundConnectionConnectionPropertiesPtrOutput() OutboundConnectionConnectionPropertiesPtrOutput { + return o.ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(context.Background()) +} + +func (o OutboundConnectionConnectionPropertiesOutput) ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OutboundConnectionConnectionProperties) *OutboundConnectionConnectionProperties { + return &v + }).(OutboundConnectionConnectionPropertiesPtrOutput) +} + +func (o OutboundConnectionConnectionPropertiesOutput) ToOutput(ctx context.Context) pulumix.Output[OutboundConnectionConnectionProperties] { + return pulumix.Output[OutboundConnectionConnectionProperties]{ + OutputState: o.OutputState, + } +} + +// Configuration block for cross cluster search. +func (o OutboundConnectionConnectionPropertiesOutput) CrossClusterSearch() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o.ApplyT(func(v OutboundConnectionConnectionProperties) *OutboundConnectionConnectionPropertiesCrossClusterSearch { + return v.CrossClusterSearch + }).(OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) +} + +// The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. +func (o OutboundConnectionConnectionPropertiesOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v OutboundConnectionConnectionProperties) *string { return v.Endpoint }).(pulumi.StringPtrOutput) +} + +type OutboundConnectionConnectionPropertiesPtrOutput struct{ *pulumi.OutputState } + +func (OutboundConnectionConnectionPropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OutboundConnectionConnectionProperties)(nil)).Elem() +} + +func (o OutboundConnectionConnectionPropertiesPtrOutput) ToOutboundConnectionConnectionPropertiesPtrOutput() OutboundConnectionConnectionPropertiesPtrOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesPtrOutput) ToOutboundConnectionConnectionPropertiesPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesPtrOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OutboundConnectionConnectionProperties] { + return pulumix.Output[*OutboundConnectionConnectionProperties]{ + OutputState: o.OutputState, + } +} + +func (o OutboundConnectionConnectionPropertiesPtrOutput) Elem() OutboundConnectionConnectionPropertiesOutput { + return o.ApplyT(func(v *OutboundConnectionConnectionProperties) OutboundConnectionConnectionProperties { + if v != nil { + return *v + } + var ret OutboundConnectionConnectionProperties + return ret + }).(OutboundConnectionConnectionPropertiesOutput) +} + +// Configuration block for cross cluster search. +func (o OutboundConnectionConnectionPropertiesPtrOutput) CrossClusterSearch() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o.ApplyT(func(v *OutboundConnectionConnectionProperties) *OutboundConnectionConnectionPropertiesCrossClusterSearch { + if v == nil { + return nil + } + return v.CrossClusterSearch + }).(OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) +} + +// The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. +func (o OutboundConnectionConnectionPropertiesPtrOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OutboundConnectionConnectionProperties) *string { + if v == nil { + return nil + } + return v.Endpoint + }).(pulumi.StringPtrOutput) +} + +type OutboundConnectionConnectionPropertiesCrossClusterSearch struct { + // Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + SkipUnavailable *string `pulumi:"skipUnavailable"` +} + +// OutboundConnectionConnectionPropertiesCrossClusterSearchInput is an input type that accepts OutboundConnectionConnectionPropertiesCrossClusterSearchArgs and OutboundConnectionConnectionPropertiesCrossClusterSearchOutput values. +// You can construct a concrete instance of `OutboundConnectionConnectionPropertiesCrossClusterSearchInput` via: +// +// OutboundConnectionConnectionPropertiesCrossClusterSearchArgs{...} +type OutboundConnectionConnectionPropertiesCrossClusterSearchInput interface { + pulumi.Input + + ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchOutput + ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutputWithContext(context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchOutput +} + +type OutboundConnectionConnectionPropertiesCrossClusterSearchArgs struct { + // Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + SkipUnavailable pulumi.StringPtrInput `pulumi:"skipUnavailable"` +} + +func (OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OutboundConnectionConnectionPropertiesCrossClusterSearch)(nil)).Elem() +} + +func (i OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchOutput { + return i.ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutputWithContext(context.Background()) +} + +func (i OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) +} + +func (i OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ToOutput(ctx context.Context) pulumix.Output[OutboundConnectionConnectionPropertiesCrossClusterSearch] { + return pulumix.Output[OutboundConnectionConnectionPropertiesCrossClusterSearch]{ + OutputState: i.ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutputWithContext(ctx).OutputState, + } +} + +func (i OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return i.ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(context.Background()) +} + +func (i OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesCrossClusterSearchOutput).ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx) +} + +// OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput is an input type that accepts OutboundConnectionConnectionPropertiesCrossClusterSearchArgs, OutboundConnectionConnectionPropertiesCrossClusterSearchPtr and OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput values. +// You can construct a concrete instance of `OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput` via: +// +// OutboundConnectionConnectionPropertiesCrossClusterSearchArgs{...} +// +// or: +// +// nil +type OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput interface { + pulumi.Input + + ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput + ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput +} + +type outboundConnectionConnectionPropertiesCrossClusterSearchPtrType OutboundConnectionConnectionPropertiesCrossClusterSearchArgs + +func OutboundConnectionConnectionPropertiesCrossClusterSearchPtr(v *OutboundConnectionConnectionPropertiesCrossClusterSearchArgs) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput { + return (*outboundConnectionConnectionPropertiesCrossClusterSearchPtrType)(v) +} + +func (*outboundConnectionConnectionPropertiesCrossClusterSearchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**OutboundConnectionConnectionPropertiesCrossClusterSearch)(nil)).Elem() +} + +func (i *outboundConnectionConnectionPropertiesCrossClusterSearchPtrType) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return i.ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(context.Background()) +} + +func (i *outboundConnectionConnectionPropertiesCrossClusterSearchPtrType) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) +} + +func (i *outboundConnectionConnectionPropertiesCrossClusterSearchPtrType) ToOutput(ctx context.Context) pulumix.Output[*OutboundConnectionConnectionPropertiesCrossClusterSearch] { + return pulumix.Output[*OutboundConnectionConnectionPropertiesCrossClusterSearch]{ + OutputState: i.ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx).OutputState, + } +} + +type OutboundConnectionConnectionPropertiesCrossClusterSearchOutput struct{ *pulumi.OutputState } + +func (OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OutboundConnectionConnectionPropertiesCrossClusterSearch)(nil)).Elem() +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o.ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(context.Background()) +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v OutboundConnectionConnectionPropertiesCrossClusterSearch) *OutboundConnectionConnectionPropertiesCrossClusterSearch { + return &v + }).(OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) ToOutput(ctx context.Context) pulumix.Output[OutboundConnectionConnectionPropertiesCrossClusterSearch] { + return pulumix.Output[OutboundConnectionConnectionPropertiesCrossClusterSearch]{ + OutputState: o.OutputState, + } +} + +// Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) SkipUnavailable() pulumi.StringPtrOutput { + return o.ApplyT(func(v OutboundConnectionConnectionPropertiesCrossClusterSearch) *string { return v.SkipUnavailable }).(pulumi.StringPtrOutput) +} + +type OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput struct{ *pulumi.OutputState } + +func (OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**OutboundConnectionConnectionPropertiesCrossClusterSearch)(nil)).Elem() +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput() OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) ToOutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutputWithContext(ctx context.Context) OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput { + return o +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*OutboundConnectionConnectionPropertiesCrossClusterSearch] { + return pulumix.Output[*OutboundConnectionConnectionPropertiesCrossClusterSearch]{ + OutputState: o.OutputState, + } +} + +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) Elem() OutboundConnectionConnectionPropertiesCrossClusterSearchOutput { + return o.ApplyT(func(v *OutboundConnectionConnectionPropertiesCrossClusterSearch) OutboundConnectionConnectionPropertiesCrossClusterSearch { + if v != nil { + return *v + } + var ret OutboundConnectionConnectionPropertiesCrossClusterSearch + return ret + }).(OutboundConnectionConnectionPropertiesCrossClusterSearchOutput) +} + +// Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. +func (o OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput) SkipUnavailable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OutboundConnectionConnectionPropertiesCrossClusterSearch) *string { + if v == nil { + return nil + } + return v.SkipUnavailable + }).(pulumi.StringPtrOutput) +} + type OutboundConnectionLocalDomainInfo struct { // The name of the local domain. DomainName string `pulumi:"domainName"` @@ -8366,6 +8709,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DomainSoftwareUpdateOptionsPtrInput)(nil)).Elem(), DomainSoftwareUpdateOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainVpcOptionsInput)(nil)).Elem(), DomainVpcOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainVpcOptionsPtrInput)(nil)).Elem(), DomainVpcOptionsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionConnectionPropertiesInput)(nil)).Elem(), OutboundConnectionConnectionPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionConnectionPropertiesPtrInput)(nil)).Elem(), OutboundConnectionConnectionPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionConnectionPropertiesCrossClusterSearchInput)(nil)).Elem(), OutboundConnectionConnectionPropertiesCrossClusterSearchArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionConnectionPropertiesCrossClusterSearchPtrInput)(nil)).Elem(), OutboundConnectionConnectionPropertiesCrossClusterSearchArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionLocalDomainInfoInput)(nil)).Elem(), OutboundConnectionLocalDomainInfoArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionLocalDomainInfoPtrInput)(nil)).Elem(), OutboundConnectionLocalDomainInfoArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutboundConnectionRemoteDomainInfoInput)(nil)).Elem(), OutboundConnectionRemoteDomainInfoArgs{}) @@ -8461,6 +8808,10 @@ func init() { pulumi.RegisterOutputType(DomainSoftwareUpdateOptionsPtrOutput{}) pulumi.RegisterOutputType(DomainVpcOptionsOutput{}) pulumi.RegisterOutputType(DomainVpcOptionsPtrOutput{}) + pulumi.RegisterOutputType(OutboundConnectionConnectionPropertiesOutput{}) + pulumi.RegisterOutputType(OutboundConnectionConnectionPropertiesPtrOutput{}) + pulumi.RegisterOutputType(OutboundConnectionConnectionPropertiesCrossClusterSearchOutput{}) + pulumi.RegisterOutputType(OutboundConnectionConnectionPropertiesCrossClusterSearchPtrOutput{}) pulumi.RegisterOutputType(OutboundConnectionLocalDomainInfoOutput{}) pulumi.RegisterOutputType(OutboundConnectionLocalDomainInfoPtrOutput{}) pulumi.RegisterOutputType(OutboundConnectionRemoteDomainInfoOutput{}) diff --git a/sdk/go/aws/rds/customDbEngineVersion.go b/sdk/go/aws/rds/customDbEngineVersion.go new file mode 100644 index 00000000000..9c9e2c7d85e --- /dev/null +++ b/sdk/go/aws/rds/customDbEngineVersion.go @@ -0,0 +1,682 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rds + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumix" +) + +// Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). +// +// ## Example Usage +// ### RDS Custom for Oracle Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms" +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleKey, err := kms.NewKey(ctx, "exampleKey", &kms.KeyArgs{ +// Description: pulumi.String("KMS symmetric key for RDS Custom for Oracle"), +// }) +// if err != nil { +// return err +// } +// _, err = rds.NewCustomDbEngineVersion(ctx, "exampleCustomDbEngineVersion", &rds.CustomDbEngineVersionArgs{ +// DatabaseInstallationFilesS3BucketName: pulumi.String("DOC-EXAMPLE-BUCKET"), +// DatabaseInstallationFilesS3Prefix: pulumi.String("1915_GI/"), +// Engine: pulumi.String("custom-oracle-ee-cdb"), +// EngineVersion: pulumi.String("19.cdb_cev1"), +// KmsKeyId: exampleKey.Arn, +// Manifest: pulumi.String(" {\n \"databaseInstallationFileNames\":[\"V982063-01.zip\"]\n }\n"), +// Tags: pulumi.StringMap{ +// "Name": pulumi.String("example"), +// "Key": pulumi.String("value"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// ### RDS Custom for Oracle External Manifest Usage +// +// ```go +// package main +// +// import ( +// +// "crypto/sha256" +// "fmt" +// "os" +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms" +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func filebase64sha256OrPanic(path string) pulumi.StringPtrInput { +// if fileData, err := os.ReadFile(path); err == nil { +// hashedData := sha256.Sum256([]byte(fileData)) +// return pulumi.String(base64.StdEncoding.EncodeToString(hashedData[:])) +// } else { +// panic(err.Error()) +// } +// } +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleKey, err := kms.NewKey(ctx, "exampleKey", &kms.KeyArgs{ +// Description: pulumi.String("KMS symmetric key for RDS Custom for Oracle"), +// }) +// if err != nil { +// return err +// } +// _, err = rds.NewCustomDbEngineVersion(ctx, "exampleCustomDbEngineVersion", &rds.CustomDbEngineVersionArgs{ +// DatabaseInstallationFilesS3BucketName: pulumi.String("DOC-EXAMPLE-BUCKET"), +// DatabaseInstallationFilesS3Prefix: pulumi.String("1915_GI/"), +// Engine: pulumi.String("custom-oracle-ee-cdb"), +// EngineVersion: pulumi.String("19.cdb_cev1"), +// KmsKeyId: exampleKey.Arn, +// Filename: pulumi.String("manifest_1915_GI.json"), +// ManifestHash: filebase64sha256OrPanic(manifest_1915_GI.Json), +// Tags: pulumi.StringMap{ +// "Name": pulumi.String("example"), +// "Key": pulumi.String("value"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// ### RDS Custom for SQL Server Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := rds.NewCustomDbEngineVersion(ctx, "test", &rds.CustomDbEngineVersionArgs{ +// Engine: pulumi.String("custom-sqlserver-se"), +// EngineVersion: pulumi.String("15.00.4249.2.cev-1"), +// SourceImageId: pulumi.String("ami-0aa12345678a12ab1"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// ### RDS Custom for SQL Server Usage with AMI from another region +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2" +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := ec2.NewAmiCopy(ctx, "example", &ec2.AmiCopyArgs{ +// Description: pulumi.String("A copy of ami-xxxxxxxx"), +// SourceAmiId: pulumi.String("ami-xxxxxxxx"), +// SourceAmiRegion: pulumi.String("us-east-1"), +// }) +// if err != nil { +// return err +// } +// _, err = rds.NewCustomDbEngineVersion(ctx, "test", &rds.CustomDbEngineVersionArgs{ +// Engine: pulumi.String("custom-sqlserver-se"), +// EngineVersion: pulumi.String("15.00.4249.2.cev-1"), +// SourceImageId: example.ID(), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { +// +// to = aws_rds_custom_db_engine_version.example +// +// id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 +type CustomDbEngineVersion struct { + pulumi.CustomResourceState + + // The Amazon Resource Name (ARN) for the custom engine version. + Arn pulumi.StringOutput `pulumi:"arn"` + // The date and time that the CEV was created. + CreateTime pulumi.StringOutput `pulumi:"createTime"` + // The name of the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3BucketName pulumi.StringPtrOutput `pulumi:"databaseInstallationFilesS3BucketName"` + // The prefix for the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3Prefix pulumi.StringPtrOutput `pulumi:"databaseInstallationFilesS3Prefix"` + // The name of the DB parameter group family for the CEV. + DbParameterGroupFamily pulumi.StringOutput `pulumi:"dbParameterGroupFamily"` + // The description of the CEV. + Description pulumi.StringPtrOutput `pulumi:"description"` + // The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + Engine pulumi.StringOutput `pulumi:"engine"` + // The version of the database engine. + EngineVersion pulumi.StringOutput `pulumi:"engineVersion"` + // The name of the manifest file within the local filesystem. Conflicts with `manifest`. + Filename pulumi.StringPtrOutput `pulumi:"filename"` + // The ID of the AMI that was created with the CEV. + ImageId pulumi.StringOutput `pulumi:"imageId"` + // The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + KmsKeyId pulumi.StringOutput `pulumi:"kmsKeyId"` + // The major version of the database engine. + MajorEngineVersion pulumi.StringOutput `pulumi:"majorEngineVersion"` + // The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + Manifest pulumi.StringPtrOutput `pulumi:"manifest"` + // The returned manifest file, in JSON format, service generated and often different from input `manifest`. + ManifestComputed pulumi.StringOutput `pulumi:"manifestComputed"` + // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + ManifestHash pulumi.StringPtrOutput `pulumi:"manifestHash"` + // The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + SourceImageId pulumi.StringPtrOutput `pulumi:"sourceImageId"` + // The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + Status pulumi.StringOutput `pulumi:"status"` + // A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` +} + +// NewCustomDbEngineVersion registers a new resource with the given unique name, arguments, and options. +func NewCustomDbEngineVersion(ctx *pulumi.Context, + name string, args *CustomDbEngineVersionArgs, opts ...pulumi.ResourceOption) (*CustomDbEngineVersion, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Engine == nil { + return nil, errors.New("invalid value for required argument 'Engine'") + } + if args.EngineVersion == nil { + return nil, errors.New("invalid value for required argument 'EngineVersion'") + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "tagsAll", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource CustomDbEngineVersion + err := ctx.RegisterResource("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetCustomDbEngineVersion gets an existing CustomDbEngineVersion resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetCustomDbEngineVersion(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *CustomDbEngineVersionState, opts ...pulumi.ResourceOption) (*CustomDbEngineVersion, error) { + var resource CustomDbEngineVersion + err := ctx.ReadResource("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering CustomDbEngineVersion resources. +type customDbEngineVersionState struct { + // The Amazon Resource Name (ARN) for the custom engine version. + Arn *string `pulumi:"arn"` + // The date and time that the CEV was created. + CreateTime *string `pulumi:"createTime"` + // The name of the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3BucketName *string `pulumi:"databaseInstallationFilesS3BucketName"` + // The prefix for the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3Prefix *string `pulumi:"databaseInstallationFilesS3Prefix"` + // The name of the DB parameter group family for the CEV. + DbParameterGroupFamily *string `pulumi:"dbParameterGroupFamily"` + // The description of the CEV. + Description *string `pulumi:"description"` + // The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + Engine *string `pulumi:"engine"` + // The version of the database engine. + EngineVersion *string `pulumi:"engineVersion"` + // The name of the manifest file within the local filesystem. Conflicts with `manifest`. + Filename *string `pulumi:"filename"` + // The ID of the AMI that was created with the CEV. + ImageId *string `pulumi:"imageId"` + // The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + KmsKeyId *string `pulumi:"kmsKeyId"` + // The major version of the database engine. + MajorEngineVersion *string `pulumi:"majorEngineVersion"` + // The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + Manifest *string `pulumi:"manifest"` + // The returned manifest file, in JSON format, service generated and often different from input `manifest`. + ManifestComputed *string `pulumi:"manifestComputed"` + // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + ManifestHash *string `pulumi:"manifestHash"` + // The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + SourceImageId *string `pulumi:"sourceImageId"` + // The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + Status *string `pulumi:"status"` + // A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags map[string]string `pulumi:"tags"` + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll map[string]string `pulumi:"tagsAll"` +} + +type CustomDbEngineVersionState struct { + // The Amazon Resource Name (ARN) for the custom engine version. + Arn pulumi.StringPtrInput + // The date and time that the CEV was created. + CreateTime pulumi.StringPtrInput + // The name of the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3BucketName pulumi.StringPtrInput + // The prefix for the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3Prefix pulumi.StringPtrInput + // The name of the DB parameter group family for the CEV. + DbParameterGroupFamily pulumi.StringPtrInput + // The description of the CEV. + Description pulumi.StringPtrInput + // The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + Engine pulumi.StringPtrInput + // The version of the database engine. + EngineVersion pulumi.StringPtrInput + // The name of the manifest file within the local filesystem. Conflicts with `manifest`. + Filename pulumi.StringPtrInput + // The ID of the AMI that was created with the CEV. + ImageId pulumi.StringPtrInput + // The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + KmsKeyId pulumi.StringPtrInput + // The major version of the database engine. + MajorEngineVersion pulumi.StringPtrInput + // The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + Manifest pulumi.StringPtrInput + // The returned manifest file, in JSON format, service generated and often different from input `manifest`. + ManifestComputed pulumi.StringPtrInput + // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + ManifestHash pulumi.StringPtrInput + // The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + SourceImageId pulumi.StringPtrInput + // The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + Status pulumi.StringPtrInput + // A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapInput + // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + // + // Deprecated: Please use `tags` instead. + TagsAll pulumi.StringMapInput +} + +func (CustomDbEngineVersionState) ElementType() reflect.Type { + return reflect.TypeOf((*customDbEngineVersionState)(nil)).Elem() +} + +type customDbEngineVersionArgs struct { + // The name of the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3BucketName *string `pulumi:"databaseInstallationFilesS3BucketName"` + // The prefix for the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3Prefix *string `pulumi:"databaseInstallationFilesS3Prefix"` + // The description of the CEV. + Description *string `pulumi:"description"` + // The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + Engine string `pulumi:"engine"` + // The version of the database engine. + EngineVersion string `pulumi:"engineVersion"` + // The name of the manifest file within the local filesystem. Conflicts with `manifest`. + Filename *string `pulumi:"filename"` + // The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + KmsKeyId *string `pulumi:"kmsKeyId"` + // The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + Manifest *string `pulumi:"manifest"` + // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + ManifestHash *string `pulumi:"manifestHash"` + // The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + SourceImageId *string `pulumi:"sourceImageId"` + // The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + Status *string `pulumi:"status"` + // A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a CustomDbEngineVersion resource. +type CustomDbEngineVersionArgs struct { + // The name of the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3BucketName pulumi.StringPtrInput + // The prefix for the Amazon S3 bucket that contains the database installation files. + DatabaseInstallationFilesS3Prefix pulumi.StringPtrInput + // The description of the CEV. + Description pulumi.StringPtrInput + // The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + Engine pulumi.StringInput + // The version of the database engine. + EngineVersion pulumi.StringInput + // The name of the manifest file within the local filesystem. Conflicts with `manifest`. + Filename pulumi.StringPtrInput + // The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + KmsKeyId pulumi.StringPtrInput + // The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + Manifest pulumi.StringPtrInput + // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + ManifestHash pulumi.StringPtrInput + // The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + SourceImageId pulumi.StringPtrInput + // The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + Status pulumi.StringPtrInput + // A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + Tags pulumi.StringMapInput +} + +func (CustomDbEngineVersionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*customDbEngineVersionArgs)(nil)).Elem() +} + +type CustomDbEngineVersionInput interface { + pulumi.Input + + ToCustomDbEngineVersionOutput() CustomDbEngineVersionOutput + ToCustomDbEngineVersionOutputWithContext(ctx context.Context) CustomDbEngineVersionOutput +} + +func (*CustomDbEngineVersion) ElementType() reflect.Type { + return reflect.TypeOf((**CustomDbEngineVersion)(nil)).Elem() +} + +func (i *CustomDbEngineVersion) ToCustomDbEngineVersionOutput() CustomDbEngineVersionOutput { + return i.ToCustomDbEngineVersionOutputWithContext(context.Background()) +} + +func (i *CustomDbEngineVersion) ToCustomDbEngineVersionOutputWithContext(ctx context.Context) CustomDbEngineVersionOutput { + return pulumi.ToOutputWithContext(ctx, i).(CustomDbEngineVersionOutput) +} + +func (i *CustomDbEngineVersion) ToOutput(ctx context.Context) pulumix.Output[*CustomDbEngineVersion] { + return pulumix.Output[*CustomDbEngineVersion]{ + OutputState: i.ToCustomDbEngineVersionOutputWithContext(ctx).OutputState, + } +} + +// CustomDbEngineVersionArrayInput is an input type that accepts CustomDbEngineVersionArray and CustomDbEngineVersionArrayOutput values. +// You can construct a concrete instance of `CustomDbEngineVersionArrayInput` via: +// +// CustomDbEngineVersionArray{ CustomDbEngineVersionArgs{...} } +type CustomDbEngineVersionArrayInput interface { + pulumi.Input + + ToCustomDbEngineVersionArrayOutput() CustomDbEngineVersionArrayOutput + ToCustomDbEngineVersionArrayOutputWithContext(context.Context) CustomDbEngineVersionArrayOutput +} + +type CustomDbEngineVersionArray []CustomDbEngineVersionInput + +func (CustomDbEngineVersionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CustomDbEngineVersion)(nil)).Elem() +} + +func (i CustomDbEngineVersionArray) ToCustomDbEngineVersionArrayOutput() CustomDbEngineVersionArrayOutput { + return i.ToCustomDbEngineVersionArrayOutputWithContext(context.Background()) +} + +func (i CustomDbEngineVersionArray) ToCustomDbEngineVersionArrayOutputWithContext(ctx context.Context) CustomDbEngineVersionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(CustomDbEngineVersionArrayOutput) +} + +func (i CustomDbEngineVersionArray) ToOutput(ctx context.Context) pulumix.Output[[]*CustomDbEngineVersion] { + return pulumix.Output[[]*CustomDbEngineVersion]{ + OutputState: i.ToCustomDbEngineVersionArrayOutputWithContext(ctx).OutputState, + } +} + +// CustomDbEngineVersionMapInput is an input type that accepts CustomDbEngineVersionMap and CustomDbEngineVersionMapOutput values. +// You can construct a concrete instance of `CustomDbEngineVersionMapInput` via: +// +// CustomDbEngineVersionMap{ "key": CustomDbEngineVersionArgs{...} } +type CustomDbEngineVersionMapInput interface { + pulumi.Input + + ToCustomDbEngineVersionMapOutput() CustomDbEngineVersionMapOutput + ToCustomDbEngineVersionMapOutputWithContext(context.Context) CustomDbEngineVersionMapOutput +} + +type CustomDbEngineVersionMap map[string]CustomDbEngineVersionInput + +func (CustomDbEngineVersionMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CustomDbEngineVersion)(nil)).Elem() +} + +func (i CustomDbEngineVersionMap) ToCustomDbEngineVersionMapOutput() CustomDbEngineVersionMapOutput { + return i.ToCustomDbEngineVersionMapOutputWithContext(context.Background()) +} + +func (i CustomDbEngineVersionMap) ToCustomDbEngineVersionMapOutputWithContext(ctx context.Context) CustomDbEngineVersionMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(CustomDbEngineVersionMapOutput) +} + +func (i CustomDbEngineVersionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*CustomDbEngineVersion] { + return pulumix.Output[map[string]*CustomDbEngineVersion]{ + OutputState: i.ToCustomDbEngineVersionMapOutputWithContext(ctx).OutputState, + } +} + +type CustomDbEngineVersionOutput struct{ *pulumi.OutputState } + +func (CustomDbEngineVersionOutput) ElementType() reflect.Type { + return reflect.TypeOf((**CustomDbEngineVersion)(nil)).Elem() +} + +func (o CustomDbEngineVersionOutput) ToCustomDbEngineVersionOutput() CustomDbEngineVersionOutput { + return o +} + +func (o CustomDbEngineVersionOutput) ToCustomDbEngineVersionOutputWithContext(ctx context.Context) CustomDbEngineVersionOutput { + return o +} + +func (o CustomDbEngineVersionOutput) ToOutput(ctx context.Context) pulumix.Output[*CustomDbEngineVersion] { + return pulumix.Output[*CustomDbEngineVersion]{ + OutputState: o.OutputState, + } +} + +// The Amazon Resource Name (ARN) for the custom engine version. +func (o CustomDbEngineVersionOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) +} + +// The date and time that the CEV was created. +func (o CustomDbEngineVersionOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) +} + +// The name of the Amazon S3 bucket that contains the database installation files. +func (o CustomDbEngineVersionOutput) DatabaseInstallationFilesS3BucketName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.DatabaseInstallationFilesS3BucketName }).(pulumi.StringPtrOutput) +} + +// The prefix for the Amazon S3 bucket that contains the database installation files. +func (o CustomDbEngineVersionOutput) DatabaseInstallationFilesS3Prefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.DatabaseInstallationFilesS3Prefix }).(pulumi.StringPtrOutput) +} + +// The name of the DB parameter group family for the CEV. +func (o CustomDbEngineVersionOutput) DbParameterGroupFamily() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.DbParameterGroupFamily }).(pulumi.StringOutput) +} + +// The description of the CEV. +func (o CustomDbEngineVersionOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. +func (o CustomDbEngineVersionOutput) Engine() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.Engine }).(pulumi.StringOutput) +} + +// The version of the database engine. +func (o CustomDbEngineVersionOutput) EngineVersion() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.EngineVersion }).(pulumi.StringOutput) +} + +// The name of the manifest file within the local filesystem. Conflicts with `manifest`. +func (o CustomDbEngineVersionOutput) Filename() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.Filename }).(pulumi.StringPtrOutput) +} + +// The ID of the AMI that was created with the CEV. +func (o CustomDbEngineVersionOutput) ImageId() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.ImageId }).(pulumi.StringOutput) +} + +// The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. +func (o CustomDbEngineVersionOutput) KmsKeyId() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.KmsKeyId }).(pulumi.StringOutput) +} + +// The major version of the database engine. +func (o CustomDbEngineVersionOutput) MajorEngineVersion() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.MajorEngineVersion }).(pulumi.StringOutput) +} + +// The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. +func (o CustomDbEngineVersionOutput) Manifest() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.Manifest }).(pulumi.StringPtrOutput) +} + +// The returned manifest file, in JSON format, service generated and often different from input `manifest`. +func (o CustomDbEngineVersionOutput) ManifestComputed() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.ManifestComputed }).(pulumi.StringOutput) +} + +// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. +func (o CustomDbEngineVersionOutput) ManifestHash() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.ManifestHash }).(pulumi.StringPtrOutput) +} + +// The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. +func (o CustomDbEngineVersionOutput) SourceImageId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringPtrOutput { return v.SourceImageId }).(pulumi.StringPtrOutput) +} + +// The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. +func (o CustomDbEngineVersionOutput) Status() pulumi.StringOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) +} + +// A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. +func (o CustomDbEngineVersionOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. +// +// Deprecated: Please use `tags` instead. +func (o CustomDbEngineVersionOutput) TagsAll() pulumi.StringMapOutput { + return o.ApplyT(func(v *CustomDbEngineVersion) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput) +} + +type CustomDbEngineVersionArrayOutput struct{ *pulumi.OutputState } + +func (CustomDbEngineVersionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CustomDbEngineVersion)(nil)).Elem() +} + +func (o CustomDbEngineVersionArrayOutput) ToCustomDbEngineVersionArrayOutput() CustomDbEngineVersionArrayOutput { + return o +} + +func (o CustomDbEngineVersionArrayOutput) ToCustomDbEngineVersionArrayOutputWithContext(ctx context.Context) CustomDbEngineVersionArrayOutput { + return o +} + +func (o CustomDbEngineVersionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*CustomDbEngineVersion] { + return pulumix.Output[[]*CustomDbEngineVersion]{ + OutputState: o.OutputState, + } +} + +func (o CustomDbEngineVersionArrayOutput) Index(i pulumi.IntInput) CustomDbEngineVersionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CustomDbEngineVersion { + return vs[0].([]*CustomDbEngineVersion)[vs[1].(int)] + }).(CustomDbEngineVersionOutput) +} + +type CustomDbEngineVersionMapOutput struct{ *pulumi.OutputState } + +func (CustomDbEngineVersionMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CustomDbEngineVersion)(nil)).Elem() +} + +func (o CustomDbEngineVersionMapOutput) ToCustomDbEngineVersionMapOutput() CustomDbEngineVersionMapOutput { + return o +} + +func (o CustomDbEngineVersionMapOutput) ToCustomDbEngineVersionMapOutputWithContext(ctx context.Context) CustomDbEngineVersionMapOutput { + return o +} + +func (o CustomDbEngineVersionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*CustomDbEngineVersion] { + return pulumix.Output[map[string]*CustomDbEngineVersion]{ + OutputState: o.OutputState, + } +} + +func (o CustomDbEngineVersionMapOutput) MapIndex(k pulumi.StringInput) CustomDbEngineVersionOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CustomDbEngineVersion { + return vs[0].(map[string]*CustomDbEngineVersion)[vs[1].(string)] + }).(CustomDbEngineVersionOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*CustomDbEngineVersionInput)(nil)).Elem(), &CustomDbEngineVersion{}) + pulumi.RegisterInputType(reflect.TypeOf((*CustomDbEngineVersionArrayInput)(nil)).Elem(), CustomDbEngineVersionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*CustomDbEngineVersionMapInput)(nil)).Elem(), CustomDbEngineVersionMap{}) + pulumi.RegisterOutputType(CustomDbEngineVersionOutput{}) + pulumi.RegisterOutputType(CustomDbEngineVersionArrayOutput{}) + pulumi.RegisterOutputType(CustomDbEngineVersionMapOutput{}) +} diff --git a/sdk/go/aws/rds/init.go b/sdk/go/aws/rds/init.go index 8d393e5bd73..45500e17bc3 100644 --- a/sdk/go/aws/rds/init.go +++ b/sdk/go/aws/rds/init.go @@ -35,6 +35,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &ClusterRoleAssociation{} case "aws:rds/clusterSnapshot:ClusterSnapshot": r = &ClusterSnapshot{} + case "aws:rds/customDbEngineVersion:CustomDbEngineVersion": + r = &CustomDbEngineVersion{} case "aws:rds/eventSubscription:EventSubscription": r = &EventSubscription{} case "aws:rds/exportTask:ExportTask": @@ -115,6 +117,11 @@ func init() { "rds/clusterSnapshot", &module{version}, ) + pulumi.RegisterResourceModule( + "aws", + "rds/customDbEngineVersion", + &module{version}, + ) pulumi.RegisterResourceModule( "aws", "rds/eventSubscription", diff --git a/sdk/go/aws/route53/hostedZoneDnsSec.go b/sdk/go/aws/route53/hostedZoneDnsSec.go index 762512728d5..ce0144e42cd 100644 --- a/sdk/go/aws/route53/hostedZoneDnsSec.go +++ b/sdk/go/aws/route53/hostedZoneDnsSec.go @@ -17,6 +17,8 @@ import ( // // !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. // +// > **Note:** Route53 hosted zones are global resources, and as such any `kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `kms.Key` resource as described in the provider alias documentation. +// // ## Example Usage // // ```go diff --git a/sdk/go/aws/s3/getBucketObject.go b/sdk/go/aws/s3/getBucketObject.go index 3f91e1830af..d955b03c2d8 100644 --- a/sdk/go/aws/s3/getBucketObject.go +++ b/sdk/go/aws/s3/getBucketObject.go @@ -156,7 +156,7 @@ type LookupBucketObjectResult struct { Key string `pulumi:"key"` // Last modified date of the object in RFC1123 format (e.g., `Mon, 02 Jan 2006 15:04:05 MST`) LastModified string `pulumi:"lastModified"` - // Map of metadata stored with the object in S3 + // Map of metadata stored with the object in S3. Keys are always returned in lowercase. Metadata map[string]string `pulumi:"metadata"` // Indicates whether this object has an active [legal hold](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-legal-holds). This field is only returned if you have permission to view an object's legal hold status. ObjectLockLegalHoldStatus string `pulumi:"objectLockLegalHoldStatus"` @@ -306,7 +306,7 @@ func (o LookupBucketObjectResultOutput) LastModified() pulumi.StringOutput { return o.ApplyT(func(v LookupBucketObjectResult) string { return v.LastModified }).(pulumi.StringOutput) } -// Map of metadata stored with the object in S3 +// Map of metadata stored with the object in S3. Keys are always returned in lowercase. func (o LookupBucketObjectResultOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v LookupBucketObjectResult) map[string]string { return v.Metadata }).(pulumi.StringMapOutput) } diff --git a/sdk/go/aws/s3/getObject.go b/sdk/go/aws/s3/getObject.go index 151c1479e84..8710d7fc4c4 100644 --- a/sdk/go/aws/s3/getObject.go +++ b/sdk/go/aws/s3/getObject.go @@ -162,7 +162,7 @@ type GetObjectResult struct { Key string `pulumi:"key"` // Last modified date of the object in RFC1123 format (e.g., `Mon, 02 Jan 2006 15:04:05 MST`) LastModified string `pulumi:"lastModified"` - // Map of metadata stored with the object in S3 + // Map of metadata stored with the object in S3. Keys are always returned in lowercase. Metadata map[string]string `pulumi:"metadata"` // Indicates whether this object has an active [legal hold](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-legal-holds). This field is only returned if you have permission to view an object's legal hold status. ObjectLockLegalHoldStatus string `pulumi:"objectLockLegalHoldStatus"` @@ -335,7 +335,7 @@ func (o GetObjectResultOutput) LastModified() pulumi.StringOutput { return o.ApplyT(func(v GetObjectResult) string { return v.LastModified }).(pulumi.StringOutput) } -// Map of metadata stored with the object in S3 +// Map of metadata stored with the object in S3. Keys are always returned in lowercase. func (o GetObjectResultOutput) Metadata() pulumi.StringMapOutput { return o.ApplyT(func(v GetObjectResult) map[string]string { return v.Metadata }).(pulumi.StringMapOutput) } diff --git a/sdk/go/aws/sfn/pulumiTypes.go b/sdk/go/aws/sfn/pulumiTypes.go index be576a34964..73b532ded86 100644 --- a/sdk/go/aws/sfn/pulumiTypes.go +++ b/sdk/go/aws/sfn/pulumiTypes.go @@ -15,11 +15,9 @@ import ( var _ = internal.GetEnvOrDefault type AliasRoutingConfiguration struct { - // A version of the state machine. + // The Amazon Resource Name (ARN) of the state machine version. StateMachineVersionArn string `pulumi:"stateMachineVersionArn"` // Percentage of traffic routed to the state machine version. - // - // The following arguments are optional: Weight int `pulumi:"weight"` } @@ -35,11 +33,9 @@ type AliasRoutingConfigurationInput interface { } type AliasRoutingConfigurationArgs struct { - // A version of the state machine. + // The Amazon Resource Name (ARN) of the state machine version. StateMachineVersionArn pulumi.StringInput `pulumi:"stateMachineVersionArn"` // Percentage of traffic routed to the state machine version. - // - // The following arguments are optional: Weight pulumi.IntInput `pulumi:"weight"` } @@ -112,14 +108,12 @@ func (o AliasRoutingConfigurationOutput) ToOutput(ctx context.Context) pulumix.O } } -// A version of the state machine. +// The Amazon Resource Name (ARN) of the state machine version. func (o AliasRoutingConfigurationOutput) StateMachineVersionArn() pulumi.StringOutput { return o.ApplyT(func(v AliasRoutingConfiguration) string { return v.StateMachineVersionArn }).(pulumi.StringOutput) } // Percentage of traffic routed to the state machine version. -// -// The following arguments are optional: func (o AliasRoutingConfigurationOutput) Weight() pulumi.IntOutput { return o.ApplyT(func(v AliasRoutingConfiguration) int { return v.Weight }).(pulumi.IntOutput) } diff --git a/sdk/go/aws/vpclattice/getService.go b/sdk/go/aws/vpclattice/getService.go index 202ffd09346..179b22ea718 100644 --- a/sdk/go/aws/vpclattice/getService.go +++ b/sdk/go/aws/vpclattice/getService.go @@ -54,7 +54,7 @@ func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi. type LookupServiceArgs struct { // Service name. Name *string `pulumi:"name"` - // ID or Amazon Resource Name (ARN) of the service network. + // ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier *string `pulumi:"serviceIdentifier"` // List of tags associated with the service. Tags map[string]string `pulumi:"tags"` @@ -99,7 +99,7 @@ func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts type LookupServiceOutputArgs struct { // Service name. Name pulumi.StringPtrInput `pulumi:"name"` - // ID or Amazon Resource Name (ARN) of the service network. + // ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier pulumi.StringPtrInput `pulumi:"serviceIdentifier"` // List of tags associated with the service. Tags pulumi.StringMapInput `pulumi:"tags"` diff --git a/sdk/go/aws/vpclattice/getServiceNetwork.go b/sdk/go/aws/vpclattice/getServiceNetwork.go index 85c4626316c..fbbd5e4460a 100644 --- a/sdk/go/aws/vpclattice/getServiceNetwork.go +++ b/sdk/go/aws/vpclattice/getServiceNetwork.go @@ -30,7 +30,7 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := vpclattice.LookupServiceNetwork(ctx, &vpclattice.LookupServiceNetworkArgs{ -// ServiceNetworkIdentifier: "", +// ServiceNetworkIdentifier: "snsa-01112223334445556", // }, nil) // if err != nil { // return err @@ -52,7 +52,7 @@ func LookupServiceNetwork(ctx *pulumi.Context, args *LookupServiceNetworkArgs, o // A collection of arguments for invoking getServiceNetwork. type LookupServiceNetworkArgs struct { - // Identifier of the network service. + // Identifier of the service network. ServiceNetworkIdentifier string `pulumi:"serviceNetworkIdentifier"` Tags map[string]string `pulumi:"tags"` } @@ -94,7 +94,7 @@ func LookupServiceNetworkOutput(ctx *pulumi.Context, args LookupServiceNetworkOu // A collection of arguments for invoking getServiceNetwork. type LookupServiceNetworkOutputArgs struct { - // Identifier of the network service. + // Identifier of the service network. ServiceNetworkIdentifier pulumi.StringInput `pulumi:"serviceNetworkIdentifier"` Tags pulumi.StringMapInput `pulumi:"tags"` } diff --git a/sdk/go/aws/vpclattice/listenerRule.go b/sdk/go/aws/vpclattice/listenerRule.go index f9c265b2516..31e16247573 100644 --- a/sdk/go/aws/vpclattice/listenerRule.go +++ b/sdk/go/aws/vpclattice/listenerRule.go @@ -130,9 +130,9 @@ import ( type ListenerRule struct { pulumi.CustomResourceState - // The action for the default rule. + // The action for the listener rule. Action ListenerRuleActionOutput `pulumi:"action"` - // ARN of the target group. + // The ARN for the listener rule. Arn pulumi.StringOutput `pulumi:"arn"` // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier pulumi.StringOutput `pulumi:"listenerIdentifier"` @@ -144,7 +144,7 @@ type ListenerRule struct { // // The following arguments are optional: Priority pulumi.IntOutput `pulumi:"priority"` - // Unique identifier for the target group. + // Unique identifier for the listener rule. RuleId pulumi.StringOutput `pulumi:"ruleId"` // The ID or Amazon Resource Identifier (ARN) of the service. ServiceIdentifier pulumi.StringOutput `pulumi:"serviceIdentifier"` @@ -205,9 +205,9 @@ func GetListenerRule(ctx *pulumi.Context, // Input properties used for looking up and filtering ListenerRule resources. type listenerRuleState struct { - // The action for the default rule. + // The action for the listener rule. Action *ListenerRuleAction `pulumi:"action"` - // ARN of the target group. + // The ARN for the listener rule. Arn *string `pulumi:"arn"` // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier *string `pulumi:"listenerIdentifier"` @@ -219,7 +219,7 @@ type listenerRuleState struct { // // The following arguments are optional: Priority *int `pulumi:"priority"` - // Unique identifier for the target group. + // Unique identifier for the listener rule. RuleId *string `pulumi:"ruleId"` // The ID or Amazon Resource Identifier (ARN) of the service. ServiceIdentifier *string `pulumi:"serviceIdentifier"` @@ -232,9 +232,9 @@ type listenerRuleState struct { } type ListenerRuleState struct { - // The action for the default rule. + // The action for the listener rule. Action ListenerRuleActionPtrInput - // ARN of the target group. + // The ARN for the listener rule. Arn pulumi.StringPtrInput // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier pulumi.StringPtrInput @@ -246,7 +246,7 @@ type ListenerRuleState struct { // // The following arguments are optional: Priority pulumi.IntPtrInput - // Unique identifier for the target group. + // Unique identifier for the listener rule. RuleId pulumi.StringPtrInput // The ID or Amazon Resource Identifier (ARN) of the service. ServiceIdentifier pulumi.StringPtrInput @@ -263,7 +263,7 @@ func (ListenerRuleState) ElementType() reflect.Type { } type listenerRuleArgs struct { - // The action for the default rule. + // The action for the listener rule. Action ListenerRuleAction `pulumi:"action"` // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier string `pulumi:"listenerIdentifier"` @@ -283,7 +283,7 @@ type listenerRuleArgs struct { // The set of arguments for constructing a ListenerRule resource. type ListenerRuleArgs struct { - // The action for the default rule. + // The action for the listener rule. Action ListenerRuleActionInput // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier pulumi.StringInput @@ -412,12 +412,12 @@ func (o ListenerRuleOutput) ToOutput(ctx context.Context) pulumix.Output[*Listen } } -// The action for the default rule. +// The action for the listener rule. func (o ListenerRuleOutput) Action() ListenerRuleActionOutput { return o.ApplyT(func(v *ListenerRule) ListenerRuleActionOutput { return v.Action }).(ListenerRuleActionOutput) } -// ARN of the target group. +// The ARN for the listener rule. func (o ListenerRuleOutput) Arn() pulumi.StringOutput { return o.ApplyT(func(v *ListenerRule) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput) } @@ -444,7 +444,7 @@ func (o ListenerRuleOutput) Priority() pulumi.IntOutput { return o.ApplyT(func(v *ListenerRule) pulumi.IntOutput { return v.Priority }).(pulumi.IntOutput) } -// Unique identifier for the target group. +// Unique identifier for the listener rule. func (o ListenerRuleOutput) RuleId() pulumi.StringOutput { return o.ApplyT(func(v *ListenerRule) pulumi.StringOutput { return v.RuleId }).(pulumi.StringOutput) } diff --git a/sdk/go/aws/vpclattice/pulumiTypes.go b/sdk/go/aws/vpclattice/pulumiTypes.go index 9e61a16f0f4..6ee7c96b063 100644 --- a/sdk/go/aws/vpclattice/pulumiTypes.go +++ b/sdk/go/aws/vpclattice/pulumiTypes.go @@ -2447,7 +2447,7 @@ func (o ServiceNetworkServiceAssociationDnsEntryArrayOutput) Index(i pulumi.IntI type TargetGroupAttachmentTarget struct { // The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer. Id string `pulumi:"id"` - // The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + // This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. Port *int `pulumi:"port"` } @@ -2465,7 +2465,7 @@ type TargetGroupAttachmentTargetInput interface { type TargetGroupAttachmentTargetArgs struct { // The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer. Id pulumi.StringInput `pulumi:"id"` - // The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + // This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. Port pulumi.IntPtrInput `pulumi:"port"` } @@ -2569,7 +2569,7 @@ func (o TargetGroupAttachmentTargetOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v TargetGroupAttachmentTarget) string { return v.Id }).(pulumi.StringOutput) } -// The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. +// This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. func (o TargetGroupAttachmentTargetOutput) Port() pulumi.IntPtrOutput { return o.ApplyT(func(v TargetGroupAttachmentTarget) *int { return v.Port }).(pulumi.IntPtrOutput) } @@ -2614,7 +2614,7 @@ func (o TargetGroupAttachmentTargetPtrOutput) Id() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. +// This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. func (o TargetGroupAttachmentTargetPtrOutput) Port() pulumi.IntPtrOutput { return o.ApplyT(func(v *TargetGroupAttachmentTarget) *int { if v == nil { diff --git a/sdk/go/aws/vpclattice/targetGroup.go b/sdk/go/aws/vpclattice/targetGroup.go index 083732836d4..ae01368986e 100644 --- a/sdk/go/aws/vpclattice/targetGroup.go +++ b/sdk/go/aws/vpclattice/targetGroup.go @@ -33,9 +33,9 @@ import ( // _, err := vpclattice.NewTargetGroup(ctx, "example", &vpclattice.TargetGroupArgs{ // Type: pulumi.String("INSTANCE"), // Config: &vpclattice.TargetGroupConfigArgs{ +// VpcIdentifier: pulumi.Any(aws_vpc.Example.Id), // Port: pulumi.Int(443), // Protocol: pulumi.String("HTTPS"), -// VpcIdentifier: pulumi.Any(aws_vpc.Example.Id), // }, // }) // if err != nil { @@ -61,11 +61,12 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := vpclattice.NewTargetGroup(ctx, "example", &vpclattice.TargetGroupArgs{ -// Type: pulumi.String("ALB"), +// Type: pulumi.String("IP"), // Config: &vpclattice.TargetGroupConfigArgs{ +// VpcIdentifier: pulumi.Any(aws_vpc.Example.Id), +// IpAddressType: pulumi.String("IPV4"), // Port: pulumi.Int(443), // Protocol: pulumi.String("HTTPS"), -// VpcIdentifier: pulumi.Any(aws_vpc.Example.Id), // ProtocolVersion: pulumi.String("HTTP1"), // HealthCheck: &vpclattice.TargetGroupConfigHealthCheckArgs{ // Enabled: pulumi.Bool(true), @@ -91,6 +92,39 @@ import ( // } // // ``` +// ### ALB +// +// If the type is ALB, `healthCheck` block is not supported. +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := vpclattice.NewTargetGroup(ctx, "example", &vpclattice.TargetGroupArgs{ +// Type: pulumi.String("ALB"), +// Config: &vpclattice.TargetGroupConfigArgs{ +// VpcIdentifier: pulumi.Any(aws_vpc.Example.Id), +// Port: pulumi.Int(443), +// Protocol: pulumi.String("HTTPS"), +// ProtocolVersion: pulumi.String("HTTP1"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` // ### Lambda // // If the type is Lambda, `config` block is not supported. diff --git a/sdk/go/aws/wafv2/pulumiTypes.go b/sdk/go/aws/wafv2/pulumiTypes.go index 2449793b201..842e607b873 100644 --- a/sdk/go/aws/wafv2/pulumiTypes.go +++ b/sdk/go/aws/wafv2/pulumiTypes.go @@ -8122,8 +8122,10 @@ func (o RuleGroupRuleStatementOrStatementPtrOutput) Statements() RuleGroupRuleSt } type RuleGroupRuleStatementRateBasedStatement struct { - // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. AggregateKeyType *string `pulumi:"aggregateKeyType"` + // Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + CustomKeys []RuleGroupRuleStatementRateBasedStatementCustomKey `pulumi:"customKeys"` // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. ForwardedIpConfig *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` // The limit on requests per 5-minute period for a single originating IP address. @@ -8144,8 +8146,10 @@ type RuleGroupRuleStatementRateBasedStatementInput interface { } type RuleGroupRuleStatementRateBasedStatementArgs struct { - // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. AggregateKeyType pulumi.StringPtrInput `pulumi:"aggregateKeyType"` + // Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + CustomKeys RuleGroupRuleStatementRateBasedStatementCustomKeyArrayInput `pulumi:"customKeys"` // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. ForwardedIpConfig RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` // The limit on requests per 5-minute period for a single originating IP address. @@ -8249,11 +8253,18 @@ func (o RuleGroupRuleStatementRateBasedStatementOutput) ToOutput(ctx context.Con } } -// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. +// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. func (o RuleGroupRuleStatementRateBasedStatementOutput) AggregateKeyType() pulumi.StringPtrOutput { return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatement) *string { return v.AggregateKeyType }).(pulumi.StringPtrOutput) } +// Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. +func (o RuleGroupRuleStatementRateBasedStatementOutput) CustomKeys() RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatement) []RuleGroupRuleStatementRateBasedStatementCustomKey { + return v.CustomKeys + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. func (o RuleGroupRuleStatementRateBasedStatementOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatement) *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { @@ -8303,7 +8314,7 @@ func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) Elem() RuleGroupRuleS }).(RuleGroupRuleStatementRateBasedStatementOutput) } -// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. +// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) AggregateKeyType() pulumi.StringPtrOutput { return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatement) *string { if v == nil { @@ -8313,6 +8324,16 @@ func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) AggregateKeyType() pu }).(pulumi.StringPtrOutput) } +// Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. +func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) CustomKeys() RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatement) []RuleGroupRuleStatementRateBasedStatementCustomKey { + if v == nil { + return nil + } + return v.CustomKeys + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatement) *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { @@ -8343,9419 +8364,9716 @@ func (o RuleGroupRuleStatementRateBasedStatementPtrOutput) ScopeDownStatement() }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfig struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` +type RuleGroupRuleStatementRateBasedStatementCustomKey struct { + // (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + Cookie *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie `pulumi:"cookie"` + // (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + ForwardedIp *RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp `pulumi:"forwardedIp"` + // (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + Header *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader `pulumi:"header"` + // (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + HttpMethod *RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod `pulumi:"httpMethod"` + // (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + Ip *RuleGroupRuleStatementRateBasedStatementCustomKeyIp `pulumi:"ip"` + // (Optional) Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + LabelNamespace *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace `pulumi:"labelNamespace"` + // (Optional) Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + QueryArgument *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument `pulumi:"queryArgument"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString `pulumi:"queryString"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath `pulumi:"uriPath"` } -// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyInput` via: // -// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{...} -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput - ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyOutput } -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyArgs struct { + // (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + Cookie RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput `pulumi:"cookie"` + // (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + ForwardedIp RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput `pulumi:"forwardedIp"` + // (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + Header RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput `pulumi:"header"` + // (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + HttpMethod RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput `pulumi:"httpMethod"` + // (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + Ip RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput `pulumi:"ip"` + // (Optional) Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + LabelNamespace RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput `pulumi:"labelNamespace"` + // (Optional) Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + QueryArgument RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput `pulumi:"queryArgument"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput `pulumi:"queryString"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKey)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKey]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +// RuleGroupRuleStatementRateBasedStatementCustomKeyArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyArray and RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyArrayInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput } -func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRateBasedStatementCustomKeyArray []RuleGroupRuleStatementRateBasedStatementCustomKeyInput + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKey)(nil)).Elem() } -// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput` via: +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKey]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx).OutputState, + } +} + +type RuleGroupRuleStatementRateBasedStatementCustomKeyOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKey]{ + OutputState: o.OutputState, + } +} + +// (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) Cookie() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { + return v.Cookie + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) +} + +// (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) ForwardedIp() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + return v.ForwardedIp + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} + +// (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) Header() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { + return v.Header + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) +} + +// (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) HttpMethod() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { + return v.HttpMethod + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) +} + +// (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) Ip() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyIp { + return v.Ip + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) +} + +// (Optional) Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) LabelNamespace() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { + return v.LabelNamespace + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) +} + +// (Optional) Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) QueryArgument() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { + return v.QueryArgument + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) QueryString() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) UriPath() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKey) *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKey]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKey { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKey)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyOutput) +} + +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookie struct { + // A friendly name of the rule group. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation `pulumi:"textTransformations"` +} + +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyCookieInput` via: // -// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput +} + +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs struct { + // A friendly name of the rule group. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx).OutputState, + } +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtr and RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput - ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput } -type ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs -func RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { return &v - }).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookie]{ OutputState: o.OutputState, } } -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) string { return v.FallbackBehavior }).(pulumi.StringOutput) +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) string { return v.Name }).(pulumi.StringOutput) } -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) []RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyCookie]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementForwardedIpConfig + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyCookie return ret - }).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput) } -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *string { +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) *string { if v == nil { return nil } - return &v.FallbackBehavior + return &v.Name }).(pulumi.StringPtrOutput) } -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *string { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyCookie) []RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { if v == nil { return nil } - return &v.HeaderName - }).(pulumi.StringPtrOutput) + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatement struct { - // A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. - AndStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement `pulumi:"andStatement"` - // A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. - ByteMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement `pulumi:"byteMatchStatement"` - // A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. - GeoMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement `pulumi:"geoMatchStatement"` - // A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. - IpSetReferenceStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` - // A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. - LabelMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement `pulumi:"labelMatchStatement"` - // A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. - NotStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement `pulumi:"notStatement"` - // A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. - OrStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement `pulumi:"orStatement"` - // A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. - RegexMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement `pulumi:"regexMatchStatement"` - // A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - RegexPatternSetReferenceStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` - // A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. - SizeConstraintStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. - SqliMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` - // A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. - XssMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement `pulumi:"xssMatchStatement"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs struct { - // A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. - AndStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput `pulumi:"andStatement"` - // A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. - ByteMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` - // A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. - GeoMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` - // A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. - IpSetReferenceStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` - // A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. - LabelMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` - // A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. - NotStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput `pulumi:"notStatement"` - // A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. - OrStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput `pulumi:"orStatement"` - // A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. - RegexMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` - // A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - RegexPatternSetReferenceStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` - // A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. - SizeConstraintStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. - SqliMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` - // A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. - XssMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) -} +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray and RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput interface { + pulumi.Input -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx) + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput interface { - pulumi.Input +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray []RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(context.Background()) +} -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType)(v) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx).OutputState, + } } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return o } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput struct{ *pulumi.OutputState } +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { +type RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ - OutputState: o.OutputState, - } +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp struct { } -// A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) AndStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { - return v.AndStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) +// RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput } -// A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ByteMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { - return v.ByteMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs struct { } -// A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) GeoMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { - return v.GeoMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() } -// A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) IpSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { - return v.IpSetReferenceStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(context.Background()) } -// A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) LabelMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { - return v.LabelMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) } -// A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) NotStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { - return v.NotStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx).OutputState, + } } -// A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) OrStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { - return v.OrStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) } -// A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) RegexMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { - return v.RegexMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx) } -// A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) RegexPatternSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { - return v.RegexPatternSetReferenceStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +// RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput } -// A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) SizeConstraintStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { - return v.SizeConstraintStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) +type ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs + +func RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType)(v) } -// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) SqliMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { - return v.SqliMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() } -// A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) XssMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { - return v.XssMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput struct{ *pulumi.OutputState } +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx).OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp) *RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + return &v + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) +type RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() } -// A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) AndStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { - if v == nil { - return nil - } - return v.AndStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o } -// A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ByteMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { - if v == nil { - return nil - } - return v.ByteMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o } -// A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) GeoMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { - if v == nil { - return nil +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp) RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + if v != nil { + return *v } - return v.GeoMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp + return ret + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) } -// A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) IpSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { - if v == nil { - return nil - } - return v.IpSetReferenceStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) -} - -// A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) LabelMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { - if v == nil { - return nil - } - return v.LabelMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) -} - -// A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) NotStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { - if v == nil { - return nil - } - return v.NotStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) -} - -// A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) OrStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { - if v == nil { - return nil - } - return v.OrStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) -} - -// A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) RegexMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { - if v == nil { - return nil - } - return v.RegexMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) -} - -// A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) RegexPatternSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { - if v == nil { - return nil - } - return v.RegexPatternSetReferenceStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) -} - -// A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) SizeConstraintStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { - if v == nil { - return nil - } - return v.SizeConstraintStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) -} - -// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) SqliMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { - if v == nil { - return nil - } - return v.SqliMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) -} - -// A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) XssMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { - if v == nil { - return nil - } - return v.XssMatchStatement - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement struct { - // The statements to combine. - Statements []RuleGroupRuleStatement `pulumi:"statements"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeader struct { + // A friendly name of the rule group. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs struct { - // The statements to combine. - Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs struct { + // A friendly name of the rule group. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeader]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) []RuleGroupRuleStatement { - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) string { return v.Name }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput struct{ *pulumi.OutputState } +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) []RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput) } -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) []RuleGroupRuleStatement { +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) *string { if v == nil { return nil } - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint string `pulumi:"positionalConstraint"` - // A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString string `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHeader) []RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput` via: +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` - // A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString pulumi.StringInput `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray and RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray []RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) string { - return v.PositionalConstraint - }).(pulumi.StringOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -// A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) string { - return v.SearchString +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation) string { + return v.Type }).(pulumi.StringOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.PositionalConstraint - }).(pulumi.StringPtrOutput) -} - -// A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.SearchString - }).(pulumi.StringPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod) *RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +type RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod) RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) -} - -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments struct { +type RuleGroupRuleStatementRateBasedStatementCustomKeyIp struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyIpInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyIpInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyIpInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyIpPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyIp) *RuleGroupRuleStatementRateBasedStatementCustomKeyIp { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyIp]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyIp]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyIp) RuleGroupRuleStatementRateBasedStatementCustomKeyIp { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyIp return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace struct { + // The namespace to use for aggregation + Namespace string `pulumi:"namespace"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs struct { + // The namespace to use for aggregation + Namespace pulumi.StringInput `pulumi:"namespace"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtr and RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace) *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The namespace to use for aggregation +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) Namespace() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace) string { return v.Namespace }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace) RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { +// The namespace to use for aggregation +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) Namespace() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Namespace }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument struct { + // A friendly name of the rule group. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs struct { + // A friendly name of the rule group. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) string { return v.Name }).(pulumi.StringOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { +// A friendly name of the rule group. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) *string { if v == nil { return nil } - return &v.MatchScope + return &v.Name }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument) []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString) *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString) []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString) []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput` via: +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray and RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray []RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) -} - -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation) string { + return v.Type }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs, RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtr and RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +type ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs + +func RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType)(v) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: o.OutputState, +func (*ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() +} + +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) +} + +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx).OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { - pulumi.Input +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath) *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + return &v + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath) []RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath + return ret + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath) []RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -// -// or: +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray and RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput interface { + pulumi.Input -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o -} +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray []RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput` via: +type RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) +} + +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfig struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` +} + +// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{...} +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput + ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) string { return v.FallbackBehavior }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementForwardedIpConfig return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput) } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *string { if v == nil { return nil } - return &v.MatchScope + return &v.FallbackBehavior }).(pulumi.StringPtrOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementForwardedIpConfig) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.HeaderName }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatement struct { + // A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + AndStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement `pulumi:"andStatement"` + // A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + ByteMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement `pulumi:"byteMatchStatement"` + // A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + GeoMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement `pulumi:"geoMatchStatement"` + // A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + IpSetReferenceStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` + // A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + LabelMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement `pulumi:"labelMatchStatement"` + // A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + NotStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement `pulumi:"notStatement"` + // A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + OrStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement `pulumi:"orStatement"` + // A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + RegexMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement `pulumi:"regexMatchStatement"` + // A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. + RegexPatternSetReferenceStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` + // A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + SizeConstraintStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + SqliMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` + // A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + XssMatchStatement *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement `pulumi:"xssMatchStatement"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs struct { + // A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + AndStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput `pulumi:"andStatement"` + // A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + ByteMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` + // A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + GeoMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` + // A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + IpSetReferenceStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` + // A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + LabelMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` + // A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + NotStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput `pulumi:"notStatement"` + // A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + OrStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput `pulumi:"orStatement"` + // A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + RegexMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` + // A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. + RegexPatternSetReferenceStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` + // A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + SizeConstraintStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + SqliMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` + // A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + XssMatchStatement RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) AndStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { + return v.AndStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) ByteMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { + return v.ByteMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +// A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) GeoMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { + return v.GeoMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o +// A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) IpSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { + return v.IpSetReferenceStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o +// A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) LabelMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { + return v.LabelMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: o.OutputState, - } +// A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) NotStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { + return v.NotStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +// A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) OrStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { + return v.OrStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) RegexMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { + return v.RegexMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) RegexPatternSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { + return v.RegexPatternSetReferenceStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +// A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) SizeConstraintStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { + return v.SizeConstraintStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput +// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) SqliMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { + return v.SqliMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +// A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) XssMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { + return v.XssMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatement]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput -} - -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} - -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() -} - -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatement { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatement + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, - } +// A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) AndStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { + if v == nil { + return nil + } + return v.AndStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) ByteMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { + if v == nil { + return nil + } + return v.ByteMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o +// A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) GeoMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { + if v == nil { + return nil + } + return v.GeoMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o +// A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) IpSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { + if v == nil { + return nil + } + return v.IpSetReferenceStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +// A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) LabelMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { + if v == nil { + return nil + } + return v.LabelMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) NotStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { + if v == nil { + return nil + } + return v.NotStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) OrStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { + if v == nil { + return nil + } + return v.OrStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) RegexMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { + if v == nil { + return nil + } + return v.RegexMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o +// A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) RegexPatternSetReferenceStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { + if v == nil { + return nil + } + return v.RegexPatternSetReferenceStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o +// A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) SizeConstraintStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { + if v == nil { + return nil + } + return v.SizeConstraintStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) SqliMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { + if v == nil { + return nil + } + return v.SqliMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v +// A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementPtrOutput) XssMatchStatement() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { + if v == nil { + return nil } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + return v.XssMatchStatement + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement struct { + // The statements to combine. + Statements []RuleGroupRuleStatement `pulumi:"statements"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs struct { + // The statements to combine. + Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) []RuleGroupRuleStatement { + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString struct { +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement) []RuleGroupRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint string `pulumi:"positionalConstraint"` + // A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString string `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` + // A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString pulumi.StringInput `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +// The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) string { + return v.PositionalConstraint + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { +// A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) string { + return v.SearchString + }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: +// The area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.PositionalConstraint + }).(pulumi.StringPtrOutput) +} + +// A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.SearchString + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *string { +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation) string { - return v.Type +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement struct { - // An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes []string `pulumi:"countryCodes"` - // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. - ForwardedIpConfig *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs struct { - // An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` - // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. - ForwardedIpConfig RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -// An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) []string { - return v.CountryCodes +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies }).(pulumi.StringArrayOutput) } -// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { - return v.ForwardedIpConfig - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) -} - -// An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) []string { - if v == nil { - return nil - } - return v.CountryCodes - }).(pulumi.StringArrayOutput) -} - -// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { - if v == nil { - return nil - } - return v.ForwardedIpConfig - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { - return v.FallbackBehavior - }).(pulumi.StringOutput) -} - -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { - return v.HeaderName - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) -} - -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.HeaderName - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn string `pulumi:"arn"` - // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. - IpSetForwardedIpConfig *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. - IpSetForwardedIpConfig RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) string { - return v.Arn +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) +} + +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { + return v.MatchScope }).(pulumi.StringOutput) } -// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - return v.IpSetForwardedIpConfig - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) -} - -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *string { - if v == nil { - return nil - } - return &v.Arn - }).(pulumi.StringPtrOutput) -} - -// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - if v == nil { - return nil - } - return v.IpSetForwardedIpConfig - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` - // The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position string `pulumi:"position"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { - // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // The name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` - // The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position pulumi.StringInput `pulumi:"position"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { - pulumi.Input +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return o +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return o +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.FallbackBehavior - }).(pulumi.StringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.HeaderName - }).(pulumi.StringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.Position - }).(pulumi.StringOutput) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// The name of the HTTP header to use for the IP address. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.HeaderName - }).(pulumi.StringPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + if v != nil { + return *v } - return &v.Position - }).(pulumi.StringPtrOutput) + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement struct { - // The string to match against. - Key string `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope string `pulumi:"scope"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs struct { - // The string to match against. - Key pulumi.StringInput `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope pulumi.StringInput `pulumi:"scope"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The string to match against. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) string { - return v.Key - }).(pulumi.StringOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) string { - return v.Scope +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -// The string to match against. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.Key + return v.InvalidFallbackBehavior }).(pulumi.StringPtrOutput) } -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { if v == nil { return nil } - return &v.Scope + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement struct { - // The statements to combine. - Statements []RuleGroupRuleStatement `pulumi:"statements"` +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs struct { - // The statements to combine. - Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ - OutputState: o.OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: o.OutputState, } } -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) []RuleGroupRuleStatement { - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) []RuleGroupRuleStatement { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement struct { - // The statements to combine. - Statements []RuleGroupRuleStatement `pulumi:"statements"` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs struct { - // The statements to combine. - Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) []RuleGroupRuleStatement { - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) -} - -// The statements to combine. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) []RuleGroupRuleStatement { - if v == nil { - return nil - } - return v.Statements - }).(RuleGroupRuleStatementArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString string `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString pulumi.StringInput `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) -} - -// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) string { - return v.RegexString - }).(pulumi.StringOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) -} - -// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *string { - if v == nil { - return nil - } - return &v.RegexString - }).(pulumi.StringPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) -} - -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationInput -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement struct { + // An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes []string `pulumi:"countryCodes"` + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + ForwardedIpConfig *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs struct { + // An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + ForwardedIpConfig RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) []string { + return v.CountryCodes + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { + return v.ForwardedIpConfig + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +// An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) []string { + if v == nil { + return nil + } + return v.CountryCodes + }).(pulumi.StringArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput interface { - pulumi.Input +// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { + if v == nil { + return nil + } + return v.ForwardedIpConfig + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` -} - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, - } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput interface { + pulumi.Input -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) -} +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType)(v) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return o +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return o } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: o.OutputState, + } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { + return v.FallbackBehavior + }).(pulumi.StringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, - } +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { + return v.HeaderName + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.FallbackBehavior + }).(pulumi.StringPtrOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.HeaderName + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn string `pulumi:"arn"` + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + IpSetForwardedIpConfig *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` + // The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + IpSetForwardedIpConfig RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) string { + return v.Arn + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { + return v.IpSetForwardedIpConfig + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *string { + if v == nil { + return nil + } + return &v.Arn + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: +// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { + if v == nil { + return nil + } + return v.IpSetForwardedIpConfig + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` + // The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position string `pulumi:"position"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { + // The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // The name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` + // The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position pulumi.StringInput `pulumi:"position"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.FallbackBehavior + }).(pulumi.StringOutput) } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.HeaderName }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.Position + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { if v == nil { return nil } - return v.InvalidFallbackBehavior + return &v.FallbackBehavior }).(pulumi.StringPtrOutput) } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// The name of the HTTP header to use for the IP address. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { if v == nil { return nil } - return &v.MatchScope + return &v.HeaderName }).(pulumi.StringPtrOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Position }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement struct { + // The string to match against. + Key string `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope string `pulumi:"scope"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs struct { + // The string to match against. + Key pulumi.StringInput `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope pulumi.StringInput `pulumi:"scope"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// The string to match against. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) string { + return v.Key + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) string { + return v.Scope + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementOutput) } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +// The string to match against. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *string { if v == nil { return nil } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + return &v.Key + }).(pulumi.StringPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Scope + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement struct { + // The statements to combine. + Statements []RuleGroupRuleStatement `pulumi:"statements"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs struct { + // The statements to combine. + Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) []RuleGroupRuleStatement { + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod struct { +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement) []RuleGroupRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement struct { + // The statements to combine. + Statements []RuleGroupRuleStatement `pulumi:"statements"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs struct { + // The statements to combine. + Statements RuleGroupRuleStatementArrayInput `pulumi:"statements"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) []RuleGroupRuleStatement { + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString struct { +// The statements to combine. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementPtrOutput) Statements() RuleGroupRuleStatementArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement) []RuleGroupRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(RuleGroupRuleStatementArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString string `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString pulumi.StringInput `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) string { + return v.RegexString + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: +// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) *string { + if v == nil { + return nil + } + return &v.RegexString + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) +} + +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +} + +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +} + +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) -} +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +} -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation) string { - return v.Type +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn string `pulumi:"arn"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) string { - return v.Arn - }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) -} - -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *string { - if v == nil { - return nil - } - return &v.Arn - }).(pulumi.StringPtrOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return o } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling - }).(pulumi.StringOutput) + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -17763,3185 +18081,3164 @@ func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSe }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return o -} +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return o +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn string `pulumi:"arn"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) string { + return v.Arn + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *string { + if v == nil { + return nil + } + return &v.Arn + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { +} + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) string { - return v.Type +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement struct { - // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator string `pulumi:"comparisonOperator"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` - // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size int `pulumi:"size"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs struct { - // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size pulumi.IntInput `pulumi:"size"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) string { - return v.ComparisonOperator - }).(pulumi.StringOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) int { - return v.Size - }).(pulumi.IntOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) -} - -// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *string { - if v == nil { - return nil - } - return &v.ComparisonOperator - }).(pulumi.StringPtrOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) -} - -// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *int { - if v == nil { - return nil - } - return &v.Size - }).(pulumi.IntPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ - OutputState: o.OutputState, - } -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { return v.OversizeHandling - }).(pulumi.StringOutput) + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -20949,3143 +21246,3185 @@ func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraint }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o -} +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) string { - return v.MatchScope +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { + return v.Name }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.InvalidFallbackBehavior + return &v.Name }).(pulumi.StringPtrOutput) } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement struct { + // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator string `pulumi:"comparisonOperator"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` + // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size int `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs struct { + // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size pulumi.IntInput `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) string { + return v.ComparisonOperator + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { +// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) int { + return v.Size + }).(pulumi.IntOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *string { + if v == nil { + return nil + } + return &v.ComparisonOperator + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) +} + +// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) *int { + if v == nil { + return nil + } + return &v.Size + }).(pulumi.IntPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { - pulumi.Input +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, - } +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { - pulumi.Input +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { + pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { +} -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, + } } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput +} + +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs + +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) +} + +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation) string { - return v.Type +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: o.OutputState, - } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return o } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { return v.OversizeHandling - }).(pulumi.StringOutput) + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -24093,2948 +24432,3153 @@ func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchState }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput +} + +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs + +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) +} + +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, + } +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { + return v.Name }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.InvalidFallbackBehavior + return &v.Name }).(pulumi.StringPtrOutput) } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath struct { } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString struct { + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +} + +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Name + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput` via: +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput -} + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput +} -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: o.OutputState, - } +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments struct { -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { -} - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -27042,3160 +27586,3143 @@ func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatem }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, - } -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { -} - -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationInput -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString struct { +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput` via: +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect all query arguments. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +} + +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Name + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput } -type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs -func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { return &v - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies return ret - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput` via: +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRegexMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString string `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRegexMatchStatementInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementArgs and RuleGroupRuleStatementRegexMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexMatchStatementArgs{...} -type RuleGroupRuleStatementRegexMatchStatementInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput - ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRegexMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString pulumi.StringInput `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementOutput).ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementArgs, RuleGroupRuleStatementRegexMatchStatementPtr and RuleGroupRuleStatementRegexMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementPtrType RuleGroupRuleStatementRegexMatchStatementArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRegexMatchStatementPtr(v *RuleGroupRuleStatementRegexMatchStatementArgs) RuleGroupRuleStatementRegexMatchStatementPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRegexMatchStatementPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRegexMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) -} - -// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o RuleGroupRuleStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) string { return v.RegexString }).(pulumi.StringOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRegexMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) []RuleGroupRuleStatementRegexMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) -} - -type RuleGroupRuleStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) RuleGroupRuleStatementRegexMatchStatement { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatement + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(RuleGroupRuleStatementRegexMatchStatementOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) *string { - if v == nil { - return nil - } - return &v.RegexString - }).(pulumi.StringPtrOutput) -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) []RuleGroupRuleStatementRegexMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` -} - -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: // -// nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs - -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { - return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() -} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { - return o +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ - OutputState: o.OutputState, - } +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) RuleGroupRuleStatementRegexMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { - if v != nil { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -30203,3339 +30730,3140 @@ func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Over }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *string { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + return v.All + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *string { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: +// +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { - return o -} +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { - return o +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + return &v + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString + return ret + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray and RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +// RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray{ RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray []RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationInput -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRegexMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString string `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRegexMatchStatementInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementArgs and RuleGroupRuleStatementRegexMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRegexMatchStatementArgs{...} +type RuleGroupRuleStatementRegexMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput + ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRegexMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString pulumi.StringInput `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementArgs) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementOutput).ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementArgs, RuleGroupRuleStatementRegexMatchStatementPtr and RuleGroupRuleStatementRegexMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementRegexMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementRegexMatchStatementPtrType RuleGroupRuleStatementRegexMatchStatementArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementPtr(v *RuleGroupRuleStatementRegexMatchStatementArgs) RuleGroupRuleStatementRegexMatchStatementPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementOutput() RuleGroupRuleStatementRegexMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatement { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRegexMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o RuleGroupRuleStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) string { return v.RegexString }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRegexMatchStatementOutput) TextTransformations() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatement) []RuleGroupRuleStatementRegexMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutput() RuleGroupRuleStatementRegexMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) RuleGroupRuleStatementRegexMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementRegexMatchStatement return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) + }).(RuleGroupRuleStatementRegexMatchStatementOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString struct { +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput` via: +// The string representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) *string { + if v == nil { + return nil + } + return &v.RegexString + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRegexMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatement) []RuleGroupRuleStatementRegexMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRegexMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect all query arguments. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString - return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) -} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, - } +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput { + return o } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatch]{ + OutputState: o.OutputState, + } } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs - -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) -} - -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) RuleGroupRuleStatementRegexMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatch + return ret + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, - } +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return o +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return o +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { - return &v +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { - if v != nil { - return *v +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader - return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) *string { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatch) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.UriPath + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementRegexMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRegexMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs and RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementTextTransformationInput` via: +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRegexMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementTextTransformationArray and RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput` via: -// -// RuleGroupRuleStatementRegexMatchStatementTextTransformationArray{ RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -type RuleGroupRuleStatementRegexMatchStatementTextTransformationArray []RuleGroupRuleStatementRegexMatchStatementTextTransformationInput - -func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: +// +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs + +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +} + +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRegexMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn string `pulumi:"arn"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs{...} -// -// or: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs - -func RuleGroupRuleStatementRegexPatternSetReferenceStatementPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType)(v) -} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatement { - return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) string { return v.Arn }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) TextTransformations() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) RuleGroupRuleStatementRegexPatternSetReferenceStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatement - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) -} - -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) *string { - if v == nil { - return nil - } - return &v.Arn - }).(pulumi.StringPtrOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) -} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) -} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -// Inspect all query arguments. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) -} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderInput -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) -} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { + return o } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +} - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling - }).(pulumi.StringOutput) + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -33543,3179 +33871,3154 @@ func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCooki }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput -} - -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: +// +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return o -} +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return o +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod) RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRegexMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRegexMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs and RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRegexMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} -// -// or: +// RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRegexMatchStatementTextTransformationArray and RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { +// RuleGroupRuleStatementRegexMatchStatementTextTransformationArray{ RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs - -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) -} +type RuleGroupRuleStatementRegexMatchStatementTextTransformationArray []RuleGroupRuleStatementRegexMatchStatementTextTransformationInput -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRegexMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) +func (o RuleGroupRuleStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRegexMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn string `pulumi:"arn"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatement { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) string { return v.Arn }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) TextTransformations() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) RuleGroupRuleStatementRegexPatternSetReferenceStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatement return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) *string { + if v == nil { + return nil + } + return &v.Arn + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatement) []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch + return ret + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +// Inspect all query arguments. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: -// -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { - pulumi.Input - - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs - -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) -} - -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() -} - -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) -} - -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, - } -} - -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return o -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return o -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: o.OutputState, - } +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: o.OutputState, - } +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - if v != nil { - return *v +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument - return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) + return v.SingleQueryArgument + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.UriPath + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +} + +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { + return &v + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody + return ret + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementSizeConstraintStatement struct { - // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator string `pulumi:"comparisonOperator"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` - // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size int `pulumi:"size"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementSizeConstraintStatementInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementArgs and RuleGroupRuleStatementSizeConstraintStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementInput` via: +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput - ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementSizeConstraintStatementArgs struct { - // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size pulumi.IntInput `pulumi:"size"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSizeConstraintStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementOutput).ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementArgs, RuleGroupRuleStatementSizeConstraintStatementPtr and RuleGroupRuleStatementSizeConstraintStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementPtrType RuleGroupRuleStatementSizeConstraintStatementArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs -func RuleGroupRuleStatementSizeConstraintStatementPtr(v *RuleGroupRuleStatementSizeConstraintStatementArgs) RuleGroupRuleStatementSizeConstraintStatementPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatement { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) string { return v.ComparisonOperator }).(pulumi.StringOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) FieldToMatch() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) int { return v.Size }).(pulumi.IntOutput) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementOutput) TextTransformations() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) []RuleGroupRuleStatementSizeConstraintStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) RuleGroupRuleStatementSizeConstraintStatement { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatement + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies return ret - }).(RuleGroupRuleStatementSizeConstraintStatementOutput) -} - -// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *string { - if v == nil { - return nil - } - return &v.ComparisonOperator - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { if v == nil { return nil } - return v.FieldToMatch - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) + return v.MatchPatterns + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *int { +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { if v == nil { return nil } - return &v.Size - }).(pulumi.IntPtrOutput) + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) TextTransformations() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) []RuleGroupRuleStatementSizeConstraintStatementTextTransformation { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { if v == nil { return nil } - return v.TextTransformations - }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) -} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { + pulumi.Input -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput interface { - pulumi.Input +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +} -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType)(v) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, + } } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return o } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return o +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { - return o +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { - return o +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { - return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Body() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Method() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, + } } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs + +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ - OutputState: o.OutputState, - } +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Inspect all query arguments. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + return &v + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { - if v == nil { - return nil +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v } - return v.UriPath - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: -// -// nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { - pulumi.Input +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +} -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +} + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +} + +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput` via: +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, - } -} +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, + } +} -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) string { - return v.OversizeHandling +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { + return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -36723,3127 +37026,3175 @@ func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutpu }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput - -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: +// +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { + pulumi.Input -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o -} +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.InvalidFallbackBehavior + return &v.Name }).(pulumi.StringPtrOutput) } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` -} - -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs and RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs{...} -// -// or: +// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray and RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { +// RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray{ RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs - -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) -} +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray []RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationInput -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { - return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod - return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) +func (o RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString struct { +type RuleGroupRuleStatementSizeConstraintStatement struct { + // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator string `pulumi:"comparisonOperator"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` + // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size int `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: +// RuleGroupRuleStatementSizeConstraintStatementInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementArgs and RuleGroupRuleStatementSizeConstraintStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementSizeConstraintStatementArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput + ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementArgs struct { + // The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size pulumi.IntInput `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementArgs) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementOutput).ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementArgs, RuleGroupRuleStatementSizeConstraintStatementPtr and RuleGroupRuleStatementSizeConstraintStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementSizeConstraintStatementPtrType RuleGroupRuleStatementSizeConstraintStatementArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementPtr(v *RuleGroupRuleStatementSizeConstraintStatementArgs) RuleGroupRuleStatementSizeConstraintStatementPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementOutput() RuleGroupRuleStatementSizeConstraintStatementOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatement { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) string { return v.ComparisonOperator }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) FieldToMatch() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { +// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) int { return v.Size }).(pulumi.IntOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementOutput) TextTransformations() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatement) []RuleGroupRuleStatementSizeConstraintStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutput() RuleGroupRuleStatementSizeConstraintStatementPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) RuleGroupRuleStatementSizeConstraintStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementSizeConstraintStatement return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *string { + if v == nil { + return nil + } + return &v.ComparisonOperator + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) +} + +// The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) *int { + if v == nil { + return nil + } + return &v.Size + }).(pulumi.IntPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementPtrOutput) TextTransformations() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatement) []RuleGroupRuleStatementSizeConstraintStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Body() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) Method() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatch return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { +// Inspect all query arguments. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.AllQueryArguments + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { - pulumi.Input +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, - } +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatch) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: -// -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: +// +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { + pulumi.Input + + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput +} + +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { +} + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, + } +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs and RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput` via: +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs{...} -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput - ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray and RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray{ RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray []RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementSqliMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementSqliMatchStatementInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementArgs and RuleGroupRuleStatementSqliMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementArgs{...} -type RuleGroupRuleStatementSqliMatchStatementInput interface { - pulumi.Input - - ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput - ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementOutput +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -func (RuleGroupRuleStatementSqliMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(context.Background()) +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementOutput) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx).OutputState, - } +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementOutput).ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -// RuleGroupRuleStatementSqliMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementArgs, RuleGroupRuleStatementSqliMatchStatementPtr and RuleGroupRuleStatementSqliMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementPtrInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementArgs{...} -// -// or: +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementSqliMatchStatementPtrInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementSqliMatchStatementPtrType RuleGroupRuleStatementSqliMatchStatementArgs - -func RuleGroupRuleStatementSqliMatchStatementPtr(v *RuleGroupRuleStatementSqliMatchStatementArgs) RuleGroupRuleStatementSqliMatchStatementPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementPtrType)(v) -} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementSqliMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementPtrOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatement { - return &v - }).(RuleGroupRuleStatementSqliMatchStatementPtrOutput) -} - -func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatement]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementSqliMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementSqliMatchStatementOutput) TextTransformations() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatement) []RuleGroupRuleStatementSqliMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) RuleGroupRuleStatementSqliMatchStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSqliMatchStatement - return ret - }).(RuleGroupRuleStatementSqliMatchStatementOutput) -} - -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) []RuleGroupRuleStatementSqliMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) -} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) RuleGroupRuleStatementSqliMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) -} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -// Inspect all query arguments. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray []RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderInput + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return o } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return o } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { -} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o -} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -39851,3123 +40202,3125 @@ func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Ma }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +} + +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) -} - -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput -} - -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) -} - -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, - } -} - -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, - } -} +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, + } +} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +type ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath) *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath) RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll + var ret RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementSizeConstraintStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs and RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs{...} +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput + ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: -// -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs{...} -// -// or: +// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray and RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { +// RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray{ RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs - -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) -} +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray []RuleGroupRuleStatementSizeConstraintStatementTextTransformationInput -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { - return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSizeConstraintStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput() RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementSizeConstraintStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod - return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) +func (o RuleGroupRuleStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSizeConstraintStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementSizeConstraintStatementTextTransformationOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString struct { +type RuleGroupRuleStatementSqliMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput` via: +// RuleGroupRuleStatementSqliMatchStatementInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementArgs and RuleGroupRuleStatementSqliMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementSqliMatchStatementArgs{...} +type RuleGroupRuleStatementSqliMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput + ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementSqliMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementArgs) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementOutput).ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementArgs, RuleGroupRuleStatementSqliMatchStatementPtr and RuleGroupRuleStatementSqliMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementSqliMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementSqliMatchStatementPtrType RuleGroupRuleStatementSqliMatchStatementArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementPtr(v *RuleGroupRuleStatementSqliMatchStatementArgs) RuleGroupRuleStatementSqliMatchStatementPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementOutput() RuleGroupRuleStatementSqliMatchStatementOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatement { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementSqliMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementSqliMatchStatementOutput) TextTransformations() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatement) []RuleGroupRuleStatementSqliMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { +type RuleGroupRuleStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutput() RuleGroupRuleStatementSqliMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) RuleGroupRuleStatementSqliMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementSqliMatchStatement return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementSqliMatchStatementOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` -} +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) +} -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementSqliMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatement) []RuleGroupRuleStatementSqliMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +} -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) RuleGroupRuleStatementSqliMatchStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatch return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) *string { +// Inspect all query arguments. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.AllQueryArguments + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatch) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyOutput) } -type RuleGroupRuleStatementSqliMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementSqliMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs and RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementTextTransformationInput` via: +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementSqliMatchStatementTextTransformationInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementTextTransformationArray and RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput` via: +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: // -// RuleGroupRuleStatementSqliMatchStatementTextTransformationArray{ RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput } -type RuleGroupRuleStatementSqliMatchStatementTextTransformationArray []RuleGroupRuleStatementSqliMatchStatementTextTransformationInput +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs -func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { + return &v + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementSqliMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies + return ret + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesOutput) } -type RuleGroupRuleStatementXssMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch *RuleGroupRuleStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations []RuleGroupRuleStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// RuleGroupRuleStatementXssMatchStatementInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementArgs and RuleGroupRuleStatementXssMatchStatementOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementInput` via: -// -// RuleGroupRuleStatementXssMatchStatementArgs{...} -type RuleGroupRuleStatementXssMatchStatementInput interface { - pulumi.Input +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} - ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput - ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - FieldToMatch RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - // At least one required. - // See Text Transformation below for details. - TextTransformations RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (RuleGroupRuleStatementXssMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput } -func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(context.Background()) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementOutput) +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementOutput).ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementXssMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementArgs, RuleGroupRuleStatementXssMatchStatementPtr and RuleGroupRuleStatementXssMatchStatementPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementPtrInput` via: -// -// RuleGroupRuleStatementXssMatchStatementArgs{...} -// -// or: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type RuleGroupRuleStatementXssMatchStatementPtrInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput - ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type ruleGroupRuleStatementXssMatchStatementPtrType RuleGroupRuleStatementXssMatchStatementArgs - -func RuleGroupRuleStatementXssMatchStatementPtr(v *RuleGroupRuleStatementXssMatchStatementArgs) RuleGroupRuleStatementXssMatchStatementPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementPtrType)(v) -} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput -func (*ruleGroupRuleStatementXssMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementPtrOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatement]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatement { - return &v - }).(RuleGroupRuleStatementXssMatchStatementPtrOutput) -} - -func (o RuleGroupRuleStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatement] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatement]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementXssMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { - return v.FieldToMatch - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementXssMatchStatementOutput) TextTransformations() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatement) []RuleGroupRuleStatementXssMatchStatementTextTransformation { - return v.TextTransformations - }).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (RuleGroupRuleStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatement] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatement]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) RuleGroupRuleStatementXssMatchStatement { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementXssMatchStatement - return ret - }).(RuleGroupRuleStatementXssMatchStatementOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. -// At least one required. -// See Text Transformation below for details. -func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) []RuleGroupRuleStatementXssMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) -} - -type RuleGroupRuleStatementXssMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. - Body RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See Cookies below for details. - Cookies RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See Headers below for details. - Headers RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See JSON Body for details. - JsonBody RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See Single Header below for details. - SingleHeader RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See Single Query Argument below for details. - SingleQueryArgument RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { - return v.Body - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { - return v.Cookies - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { - return v.Headers - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { - return v.Method - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) -} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { - return o +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) RuleGroupRuleStatementXssMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatch - return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) -} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -// Inspect all query arguments. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput } -// Inspect the request body, which immediately follows the request headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) -} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderInput -// Inspect the cookies in the web request. See Cookies below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the request headers. See Headers below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -// Inspect the request body as JSON. See JSON Body for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) -} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -// Inspect a single header. See Single Header below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect a single query argument. See Single Query Argument below for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { + return o } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments struct { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +} - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -// -// or: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs - -func RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: o.OutputState, - } +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments - return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBody struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling *string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs struct { - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) -} - -type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchBody + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling string `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.MatchPatterns - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *string { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -42975,28316 +43328,27407 @@ func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Mat }).(pulumi.StringPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.OversizeHandling + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod struct { } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs{...} } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +} + +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { + return &v + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { - return vs[0].([]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod) RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod + return ret + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString struct { } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } - -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { + pulumi.Input + + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: o.OutputState, - } +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs + +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, + } } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { - pulumi.Input +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return o } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return o } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { + return &v + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -// +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } +} + +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString + return ret + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringOutput) +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { + pulumi.Input + + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput +} + +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` +} + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, + } +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +// // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) +} -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput` via: +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath struct { } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) -} - -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern + var ret RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + }).(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type RuleGroupRuleStatementSqliMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// RuleGroupRuleStatementSqliMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs and RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementTextTransformationInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementSqliMatchStatementTextTransformationInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: +// RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementSqliMatchStatementTextTransformationArray and RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput` via: // -// nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +// RuleGroupRuleStatementSqliMatchStatementTextTransformationArray{ RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} +type RuleGroupRuleStatementSqliMatchStatementTextTransformationArray []RuleGroupRuleStatementSqliMatchStatementTextTransformationInput -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementSqliMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementSqliMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o RuleGroupRuleStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementSqliMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementSqliMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementSqliMatchStatementTextTransformationOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod struct { +type RuleGroupRuleStatementXssMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch *RuleGroupRuleStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations []RuleGroupRuleStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput` via: +// RuleGroupRuleStatementXssMatchStatementInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementArgs and RuleGroupRuleStatementXssMatchStatementOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput interface { +// RuleGroupRuleStatementXssMatchStatementArgs{...} +type RuleGroupRuleStatementXssMatchStatementInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput + ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs struct { +type RuleGroupRuleStatementXssMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + FieldToMatch RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + // At least one required. + // See Text Transformation below for details. + TextTransformations RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) +func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementArgs) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementOutput).ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementArgs, RuleGroupRuleStatementXssMatchStatementPtr and RuleGroupRuleStatementXssMatchStatementPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs{...} +// RuleGroupRuleStatementXssMatchStatementArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput + ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs +type ruleGroupRuleStatementXssMatchStatementPtrType RuleGroupRuleStatementXssMatchStatementArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementPtr(v *RuleGroupRuleStatementXssMatchStatementArgs) RuleGroupRuleStatementXssMatchStatementPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatement]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementOutput() RuleGroupRuleStatementXssMatchStatementOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { +func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementXssMatchStatementOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatement { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatement] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatement]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementXssMatchStatementOutput) FieldToMatch() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { + return v.FieldToMatch + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) +} -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementXssMatchStatementOutput) TextTransformations() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatement) []RuleGroupRuleStatementXssMatchStatementTextTransformation { + return v.TextTransformations + }).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { +type RuleGroupRuleStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatement)(nil)).Elem() +} + +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutput() RuleGroupRuleStatementXssMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToRuleGroupRuleStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatement] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatement]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) RuleGroupRuleStatementXssMatchStatement { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod + var ret RuleGroupRuleStatementXssMatchStatement return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) + }).(RuleGroupRuleStatementXssMatchStatementOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString struct { +// The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) FieldToMatch() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput` via: +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. +// At least one required. +// See Text Transformation below for details. +func (o RuleGroupRuleStatementXssMatchStatementPtrOutput) TextTransformations() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatement) []RuleGroupRuleStatementXssMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs struct { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. + Body RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See Cookies below for details. + Cookies RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See Headers below for details. + Headers RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See JSON Body for details. + JsonBody RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See Single Header below for details. + SingleHeader RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See Single Query Argument below for details. + SingleQueryArgument RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatch { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// Inspect all query arguments. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +} -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Body() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { + return v.Body + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Cookies() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { + return v.Cookies + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Headers() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { + return v.Headers + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) JsonBody() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) Method() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { + return v.Method + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) QueryString() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) SingleHeader() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) UriPath() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatch)(nil)).Elem() +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput { + return o +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) RuleGroupRuleStatementXssMatchStatementFieldToMatch { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatch return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect all query arguments. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: +// Inspect the request body, which immediately follows the request headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Body() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) +} + +// Inspect the cookies in the web request. See Cookies below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See Headers below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Headers() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See JSON Body for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) Method() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See Single Header below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See Single Query Argument below for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatch) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments struct { +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments) *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) -} - -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments) RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) -} - -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBody struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // The name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs struct { + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchBody return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyOutput) } -// The name of the query header to inspect. This setting must be provided as lower case characters. -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Name + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath struct { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling string `pulumi:"oversizeHandling"` } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput` via: // -// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs{...} -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs struct { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: -// -// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: +// +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput - ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput } -type ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs -func RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput { - return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { return &v - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +} -func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies return ret - }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) -} - -type RuleGroupRuleStatementXssMatchStatementTextTransformation struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` -} - -// RuleGroupRuleStatementXssMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementTextTransformationArgs and RuleGroupRuleStatementXssMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementTextTransformationInput` via: -// -// RuleGroupRuleStatementXssMatchStatementTextTransformationArgs{...} -type RuleGroupRuleStatementXssMatchStatementTextTransformationInput interface { - pulumi.Input - - ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput - ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput -} - -type RuleGroupRuleStatementXssMatchStatementTextTransformationArgs struct { - // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesOutput) } -func (RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, - } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -// RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementTextTransformationArray and RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// RuleGroupRuleStatementXssMatchStatementTextTransformationArray{ RuleGroupRuleStatementXssMatchStatementTextTransformationArgs{...} } -type RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput - ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput } -type RuleGroupRuleStatementXssMatchStatementTextTransformationArray []RuleGroupRuleStatementXssMatchStatementTextTransformationInput +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +} -func (RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { - return i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -type RuleGroupRuleStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { + pulumi.Input -func (RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { - return o -} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { - return o +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation] { - return pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, + } } -type RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementTextTransformation { - return vs[0].([]RuleGroupRuleStatementXssMatchStatementTextTransformation)[vs[1].(int)] - }).(RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) -} - -type RuleGroupRuleVisibilityConfig struct { - // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - CloudwatchMetricsEnabled bool `pulumi:"cloudwatchMetricsEnabled"` - // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - MetricName string `pulumi:"metricName"` - // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - SampledRequestsEnabled bool `pulumi:"sampledRequestsEnabled"` -} - -// RuleGroupRuleVisibilityConfigInput is an input type that accepts RuleGroupRuleVisibilityConfigArgs and RuleGroupRuleVisibilityConfigOutput values. -// You can construct a concrete instance of `RuleGroupRuleVisibilityConfigInput` via: -// -// RuleGroupRuleVisibilityConfigArgs{...} -type RuleGroupRuleVisibilityConfigInput interface { - pulumi.Input - - ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput - ToRuleGroupRuleVisibilityConfigOutputWithContext(context.Context) RuleGroupRuleVisibilityConfigOutput -} - -type RuleGroupRuleVisibilityConfigArgs struct { - // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - CloudwatchMetricsEnabled pulumi.BoolInput `pulumi:"cloudwatchMetricsEnabled"` - // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - MetricName pulumi.StringInput `pulumi:"metricName"` - // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - SampledRequestsEnabled pulumi.BoolInput `pulumi:"sampledRequestsEnabled"` -} - -func (RuleGroupRuleVisibilityConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleVisibilityConfig)(nil)).Elem() -} - -func (i RuleGroupRuleVisibilityConfigArgs) ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput { - return i.ToRuleGroupRuleVisibilityConfigOutputWithContext(context.Background()) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i RuleGroupRuleVisibilityConfigArgs) ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupRuleVisibilityConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleVisibilityConfigOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -func (i RuleGroupRuleVisibilityConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleVisibilityConfig] { - return pulumix.Output[RuleGroupRuleVisibilityConfig]{ - OutputState: i.ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx).OutputState, - } +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -type RuleGroupRuleVisibilityConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (RuleGroupRuleVisibilityConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupRuleVisibilityConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o RuleGroupRuleVisibilityConfigOutput) ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleVisibilityConfigOutput) ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupRuleVisibilityConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o RuleGroupRuleVisibilityConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleVisibilityConfig] { - return pulumix.Output[RuleGroupRuleVisibilityConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). -func (o RuleGroupRuleVisibilityConfigOutput) CloudwatchMetricsEnabled() pulumi.BoolOutput { - return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) bool { return v.CloudwatchMetricsEnabled }).(pulumi.BoolOutput) -} - -// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. -func (o RuleGroupRuleVisibilityConfigOutput) MetricName() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) string { return v.MetricName }).(pulumi.StringOutput) -} - -// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. -func (o RuleGroupRuleVisibilityConfigOutput) SampledRequestsEnabled() pulumi.BoolOutput { - return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) bool { return v.SampledRequestsEnabled }).(pulumi.BoolOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type RuleGroupVisibilityConfig struct { - // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - CloudwatchMetricsEnabled bool `pulumi:"cloudwatchMetricsEnabled"` - // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - MetricName string `pulumi:"metricName"` - // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - SampledRequestsEnabled bool `pulumi:"sampledRequestsEnabled"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// RuleGroupVisibilityConfigInput is an input type that accepts RuleGroupVisibilityConfigArgs and RuleGroupVisibilityConfigOutput values. -// You can construct a concrete instance of `RuleGroupVisibilityConfigInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// RuleGroupVisibilityConfigArgs{...} -type RuleGroupVisibilityConfigInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput - ToRuleGroupVisibilityConfigOutputWithContext(context.Context) RuleGroupVisibilityConfigOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type RuleGroupVisibilityConfigArgs struct { - // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - CloudwatchMetricsEnabled pulumi.BoolInput `pulumi:"cloudwatchMetricsEnabled"` - // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - MetricName pulumi.StringInput `pulumi:"metricName"` - // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - SampledRequestsEnabled pulumi.BoolInput `pulumi:"sampledRequestsEnabled"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (RuleGroupVisibilityConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupVisibilityConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput { - return i.ToRuleGroupVisibilityConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i RuleGroupVisibilityConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupVisibilityConfig] { - return pulumix.Output[RuleGroupVisibilityConfig]{ - OutputState: i.ToRuleGroupVisibilityConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { - return i.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigOutput).ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// RuleGroupVisibilityConfigPtrInput is an input type that accepts RuleGroupVisibilityConfigArgs, RuleGroupVisibilityConfigPtr and RuleGroupVisibilityConfigPtrOutput values. -// You can construct a concrete instance of `RuleGroupVisibilityConfigPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// RuleGroupVisibilityConfigArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type RuleGroupVisibilityConfigPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput - ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Context) RuleGroupVisibilityConfigPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type ruleGroupVisibilityConfigPtrType RuleGroupVisibilityConfigArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func RuleGroupVisibilityConfigPtr(v *RuleGroupVisibilityConfigArgs) RuleGroupVisibilityConfigPtrInput { - return (*ruleGroupVisibilityConfigPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*ruleGroupVisibilityConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupVisibilityConfig)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *ruleGroupVisibilityConfigPtrType) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { - return i.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *ruleGroupVisibilityConfigPtrType) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *ruleGroupVisibilityConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupVisibilityConfig] { - return pulumix.Output[*RuleGroupVisibilityConfig]{ - OutputState: i.ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type RuleGroupVisibilityConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (RuleGroupVisibilityConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RuleGroupVisibilityConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { - return o.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupVisibilityConfig) *RuleGroupVisibilityConfig { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(RuleGroupVisibilityConfigPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o RuleGroupVisibilityConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupVisibilityConfig] { - return pulumix.Output[RuleGroupVisibilityConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). -func (o RuleGroupVisibilityConfigOutput) CloudwatchMetricsEnabled() pulumi.BoolOutput { - return o.ApplyT(func(v RuleGroupVisibilityConfig) bool { return v.CloudwatchMetricsEnabled }).(pulumi.BoolOutput) -} - -// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. -func (o RuleGroupVisibilityConfigOutput) MetricName() pulumi.StringOutput { - return o.ApplyT(func(v RuleGroupVisibilityConfig) string { return v.MetricName }).(pulumi.StringOutput) -} - -// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. -func (o RuleGroupVisibilityConfigOutput) SampledRequestsEnabled() pulumi.BoolOutput { - return o.ApplyT(func(v RuleGroupVisibilityConfig) bool { return v.SampledRequestsEnabled }).(pulumi.BoolOutput) -} - -type RuleGroupVisibilityConfigPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (RuleGroupVisibilityConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RuleGroupVisibilityConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o RuleGroupVisibilityConfigPtrOutput) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupVisibilityConfigPtrOutput) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o RuleGroupVisibilityConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupVisibilityConfig] { - return pulumix.Output[*RuleGroupVisibilityConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o RuleGroupVisibilityConfigPtrOutput) Elem() RuleGroupVisibilityConfigOutput { - return o.ApplyT(func(v *RuleGroupVisibilityConfig) RuleGroupVisibilityConfig { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret RuleGroupVisibilityConfig + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(RuleGroupVisibilityConfigOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). -func (o RuleGroupVisibilityConfigPtrOutput) CloudwatchMetricsEnabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RuleGroupVisibilityConfig) *bool { - if v == nil { - return nil - } - return &v.CloudwatchMetricsEnabled - }).(pulumi.BoolPtrOutput) +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. -func (o RuleGroupVisibilityConfigPtrOutput) MetricName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RuleGroupVisibilityConfig) *string { - if v == nil { - return nil - } - return &v.MetricName - }).(pulumi.StringPtrOutput) -} - -// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. -func (o RuleGroupVisibilityConfigPtrOutput) SampledRequestsEnabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RuleGroupVisibilityConfig) *bool { - if v == nil { - return nil - } - return &v.SampledRequestsEnabled - }).(pulumi.BoolPtrOutput) -} - -type WebAclAssociationConfig struct { - // Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. - RequestBodies []WebAclAssociationConfigRequestBody `pulumi:"requestBodies"` -} - -// WebAclAssociationConfigInput is an input type that accepts WebAclAssociationConfigArgs and WebAclAssociationConfigOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput` via: // -// WebAclAssociationConfigArgs{...} -type WebAclAssociationConfigInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput - ToWebAclAssociationConfigOutputWithContext(context.Context) WebAclAssociationConfigOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput } -type WebAclAssociationConfigArgs struct { - // Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. - RequestBodies WebAclAssociationConfigRequestBodyArrayInput `pulumi:"requestBodies"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclAssociationConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput { - return i.ToWebAclAssociationConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigOutputWithContext(ctx context.Context) WebAclAssociationConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) } -func (i WebAclAssociationConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfig] { - return pulumix.Output[WebAclAssociationConfig]{ - OutputState: i.ToWebAclAssociationConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { - return i.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) -} - -func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigOutput).ToWebAclAssociationConfigPtrOutputWithContext(ctx) -} - -// WebAclAssociationConfigPtrInput is an input type that accepts WebAclAssociationConfigArgs, WebAclAssociationConfigPtr and WebAclAssociationConfigPtrOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigPtrInput` via: -// -// WebAclAssociationConfigArgs{...} -// -// or: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: // -// nil -type WebAclAssociationConfigPtrInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray{ RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs{...} } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput - ToWebAclAssociationConfigPtrOutputWithContext(context.Context) WebAclAssociationConfigPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput } -type webAclAssociationConfigPtrType WebAclAssociationConfigArgs - -func WebAclAssociationConfigPtr(v *WebAclAssociationConfigArgs) WebAclAssociationConfigPtrInput { - return (*webAclAssociationConfigPtrType)(v) -} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray []RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderInput -func (*webAclAssociationConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclAssociationConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *webAclAssociationConfigPtrType) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { - return i.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclAssociationConfigPtrType) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigPtrOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) } -func (i *webAclAssociationConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclAssociationConfig] { - return pulumix.Output[*WebAclAssociationConfig]{ - OutputState: i.ToWebAclAssociationConfigPtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclAssociationConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (WebAclAssociationConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigOutputWithContext(ctx context.Context) WebAclAssociationConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { - return o.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclAssociationConfig) *WebAclAssociationConfig { - return &v - }).(WebAclAssociationConfigPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (o WebAclAssociationConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfig] { - return pulumix.Output[WebAclAssociationConfig]{ - OutputState: o.OutputState, - } +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } -// Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. -func (o WebAclAssociationConfigOutput) RequestBodies() WebAclAssociationConfigRequestBodyArrayOutput { - return o.ApplyT(func(v WebAclAssociationConfig) []WebAclAssociationConfigRequestBody { return v.RequestBodies }).(WebAclAssociationConfigRequestBodyArrayOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) } -type WebAclAssociationConfigPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclAssociationConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclAssociationConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclAssociationConfigPtrOutput) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclAssociationConfigPtrOutput) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclAssociationConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclAssociationConfig] { - return pulumix.Output[*WebAclAssociationConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -func (o WebAclAssociationConfigPtrOutput) Elem() WebAclAssociationConfigOutput { - return o.ApplyT(func(v *WebAclAssociationConfig) WebAclAssociationConfig { - if v != nil { - return *v - } - var ret WebAclAssociationConfig - return ret - }).(WebAclAssociationConfigOutput) -} - -// Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. -func (o WebAclAssociationConfigPtrOutput) RequestBodies() WebAclAssociationConfigRequestBodyArrayOutput { - return o.ApplyT(func(v *WebAclAssociationConfig) []WebAclAssociationConfigRequestBody { - if v == nil { - return nil - } - return v.RequestBodies - }).(WebAclAssociationConfigRequestBodyArrayOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader { + return vs[0].([]RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderOutput) } -type WebAclAssociationConfigRequestBody struct { - // Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. - Cloudfronts []WebAclAssociationConfigRequestBodyCloudfront `pulumi:"cloudfronts"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// WebAclAssociationConfigRequestBodyInput is an input type that accepts WebAclAssociationConfigRequestBodyArgs and WebAclAssociationConfigRequestBodyOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// WebAclAssociationConfigRequestBodyArgs{...} -type WebAclAssociationConfigRequestBodyInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput - ToWebAclAssociationConfigRequestBodyOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyOutput -} - -type WebAclAssociationConfigRequestBodyArgs struct { - // Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. - Cloudfronts WebAclAssociationConfigRequestBodyCloudfrontArrayInput `pulumi:"cloudfronts"` -} - -func (WebAclAssociationConfigRequestBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfigRequestBody)(nil)).Elem() -} - -func (i WebAclAssociationConfigRequestBodyArgs) ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput { - return i.ToWebAclAssociationConfigRequestBodyOutputWithContext(context.Background()) -} - -func (i WebAclAssociationConfigRequestBodyArgs) ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyOutput) -} - -func (i WebAclAssociationConfigRequestBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBody] { - return pulumix.Output[WebAclAssociationConfigRequestBody]{ - OutputState: i.ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx).OutputState, - } + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput } -// WebAclAssociationConfigRequestBodyArrayInput is an input type that accepts WebAclAssociationConfigRequestBodyArray and WebAclAssociationConfigRequestBodyArrayOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyArrayInput` via: -// -// WebAclAssociationConfigRequestBodyArray{ WebAclAssociationConfigRequestBodyArgs{...} } -type WebAclAssociationConfigRequestBodyArrayInput interface { - pulumi.Input - - ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput - ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyArrayOutput +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -type WebAclAssociationConfigRequestBodyArray []WebAclAssociationConfigRequestBodyInput - -func (WebAclAssociationConfigRequestBodyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclAssociationConfigRequestBody)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i WebAclAssociationConfigRequestBodyArray) ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput { - return i.ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i WebAclAssociationConfigRequestBodyArray) ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyArrayOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i WebAclAssociationConfigRequestBodyArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBody] { - return pulumix.Output[[]WebAclAssociationConfigRequestBody]{ - OutputState: i.ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type WebAclAssociationConfigRequestBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclAssociationConfigRequestBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfigRequestBody)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o WebAclAssociationConfigRequestBodyOutput) ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclAssociationConfigRequestBodyOutput) ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclAssociationConfigRequestBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBody] { - return pulumix.Output[WebAclAssociationConfigRequestBody]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -// Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. -func (o WebAclAssociationConfigRequestBodyOutput) Cloudfronts() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { - return o.ApplyT(func(v WebAclAssociationConfigRequestBody) []WebAclAssociationConfigRequestBodyCloudfront { - return v.Cloudfronts - }).(WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -type WebAclAssociationConfigRequestBodyArrayOutput struct{ *pulumi.OutputState } - -func (WebAclAssociationConfigRequestBodyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclAssociationConfigRequestBody)(nil)).Elem() +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (o WebAclAssociationConfigRequestBodyArrayOutput) ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput { - return o +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -func (o WebAclAssociationConfigRequestBodyArrayOutput) ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyArrayOutput { - return o +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -func (o WebAclAssociationConfigRequestBodyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBody] { - return pulumix.Output[[]WebAclAssociationConfigRequestBody]{ - OutputState: o.OutputState, - } -} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input -func (o WebAclAssociationConfigRequestBodyArrayOutput) Index(i pulumi.IntInput) WebAclAssociationConfigRequestBodyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclAssociationConfigRequestBody { - return vs[0].([]WebAclAssociationConfigRequestBody)[vs[1].(int)] - }).(WebAclAssociationConfigRequestBodyOutput) + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type WebAclAssociationConfigRequestBodyCloudfront struct { - // Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. - DefaultSizeInspectionLimit string `pulumi:"defaultSizeInspectionLimit"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -// WebAclAssociationConfigRequestBodyCloudfrontInput is an input type that accepts WebAclAssociationConfigRequestBodyCloudfrontArgs and WebAclAssociationConfigRequestBodyCloudfrontOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyCloudfrontInput` via: -// -// WebAclAssociationConfigRequestBodyCloudfrontArgs{...} -type WebAclAssociationConfigRequestBodyCloudfrontInput interface { - pulumi.Input - - ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput - ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -type WebAclAssociationConfigRequestBodyCloudfrontArgs struct { - // Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. - DefaultSizeInspectionLimit pulumi.StringInput `pulumi:"defaultSizeInspectionLimit"` +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (WebAclAssociationConfigRequestBodyCloudfrontArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput { - return i.ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, + } } -func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyCloudfrontOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront] { - return pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront]{ - OutputState: i.ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx).OutputState, - } +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclAssociationConfigRequestBodyCloudfrontArrayInput is an input type that accepts WebAclAssociationConfigRequestBodyCloudfrontArray and WebAclAssociationConfigRequestBodyCloudfrontArrayOutput values. -// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyCloudfrontArrayInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// WebAclAssociationConfigRequestBodyCloudfrontArray{ WebAclAssociationConfigRequestBodyCloudfrontArgs{...} } -type WebAclAssociationConfigRequestBodyCloudfrontArrayInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput - ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type WebAclAssociationConfigRequestBodyCloudfrontArray []WebAclAssociationConfigRequestBodyCloudfrontInput +type ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func (WebAclAssociationConfigRequestBodyCloudfrontArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() +func RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { - return i.ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront] { - return pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront]{ - OutputState: i.ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclAssociationConfigRequestBodyCloudfrontOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclAssociationConfigRequestBodyCloudfrontOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront] { - return pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -// Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. -func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) DefaultSizeInspectionLimit() pulumi.StringOutput { - return o.ApplyT(func(v WebAclAssociationConfigRequestBodyCloudfront) string { return v.DefaultSizeInspectionLimit }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + return &v + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -type WebAclAssociationConfigRequestBodyCloudfrontArrayOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} -func (WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() +type RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront] { - return pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) Index(i pulumi.IntInput) WebAclAssociationConfigRequestBodyCloudfrontOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclAssociationConfigRequestBodyCloudfront { - return vs[0].([]WebAclAssociationConfigRequestBodyCloudfront)[vs[1].(int)] - }).(WebAclAssociationConfigRequestBodyCloudfrontOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll + return ret + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclCaptchaConfig struct { - // Defines custom immunity time. See `immunityTimeProperty` below for details. - ImmunityTimeProperty *WebAclCaptchaConfigImmunityTimeProperty `pulumi:"immunityTimeProperty"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclCaptchaConfigInput is an input type that accepts WebAclCaptchaConfigArgs and WebAclCaptchaConfigOutput values. -// You can construct a concrete instance of `WebAclCaptchaConfigInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput` via: // -// WebAclCaptchaConfigArgs{...} -type WebAclCaptchaConfigInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput - ToWebAclCaptchaConfigOutputWithContext(context.Context) WebAclCaptchaConfigOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput } -type WebAclCaptchaConfigArgs struct { - // Defines custom immunity time. See `immunityTimeProperty` below for details. - ImmunityTimeProperty WebAclCaptchaConfigImmunityTimePropertyPtrInput `pulumi:"immunityTimeProperty"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclCaptchaConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCaptchaConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput { - return i.ToWebAclCaptchaConfigOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigOutputWithContext(ctx context.Context) WebAclCaptchaConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) } -func (i WebAclCaptchaConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfig] { - return pulumix.Output[WebAclCaptchaConfig]{ - OutputState: i.ToWebAclCaptchaConfigOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { - return i.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigOutput).ToWebAclCaptchaConfigPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclCaptchaConfigPtrInput is an input type that accepts WebAclCaptchaConfigArgs, WebAclCaptchaConfigPtr and WebAclCaptchaConfigPtrOutput values. -// You can construct a concrete instance of `WebAclCaptchaConfigPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclCaptchaConfigArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclCaptchaConfigPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput - ToWebAclCaptchaConfigPtrOutputWithContext(context.Context) WebAclCaptchaConfigPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput } -type webAclCaptchaConfigPtrType WebAclCaptchaConfigArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs -func WebAclCaptchaConfigPtr(v *WebAclCaptchaConfigArgs) WebAclCaptchaConfigPtrInput { - return (*webAclCaptchaConfigPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclCaptchaConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclCaptchaConfig)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclCaptchaConfigPtrType) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { - return i.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclCaptchaConfigPtrType) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclCaptchaConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfig] { - return pulumix.Output[*WebAclCaptchaConfig]{ - OutputState: i.ToWebAclCaptchaConfigPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclCaptchaConfigOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclCaptchaConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCaptchaConfig)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigOutputWithContext(ctx context.Context) WebAclCaptchaConfigOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { - return o.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclCaptchaConfig) *WebAclCaptchaConfig { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { return &v - }).(WebAclCaptchaConfigPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclCaptchaConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfig] { - return pulumix.Output[WebAclCaptchaConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// Defines custom immunity time. See `immunityTimeProperty` below for details. -func (o WebAclCaptchaConfigOutput) ImmunityTimeProperty() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyT(func(v WebAclCaptchaConfig) *WebAclCaptchaConfigImmunityTimeProperty { return v.ImmunityTimeProperty }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -type WebAclCaptchaConfigPtrOutput struct{ *pulumi.OutputState } +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} -func (WebAclCaptchaConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclCaptchaConfig)(nil)).Elem() +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -func (o WebAclCaptchaConfigPtrOutput) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclCaptchaConfigPtrOutput) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclCaptchaConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfig] { - return pulumix.Output[*WebAclCaptchaConfig]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclCaptchaConfigPtrOutput) Elem() WebAclCaptchaConfigOutput { - return o.ApplyT(func(v *WebAclCaptchaConfig) WebAclCaptchaConfig { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclCaptchaConfig + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody return ret - }).(WebAclCaptchaConfigOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyOutput) } -// Defines custom immunity time. See `immunityTimeProperty` below for details. -func (o WebAclCaptchaConfigPtrOutput) ImmunityTimeProperty() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyT(func(v *WebAclCaptchaConfig) *WebAclCaptchaConfigImmunityTimeProperty { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.ImmunityTimeProperty - }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -type WebAclCaptchaConfigImmunityTimeProperty struct { - // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - ImmunityTime *int `pulumi:"immunityTime"` +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -// WebAclCaptchaConfigImmunityTimePropertyInput is an input type that accepts WebAclCaptchaConfigImmunityTimePropertyArgs and WebAclCaptchaConfigImmunityTimePropertyOutput values. -// You can construct a concrete instance of `WebAclCaptchaConfigImmunityTimePropertyInput` via: +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclCaptchaConfigImmunityTimePropertyArgs{...} -type WebAclCaptchaConfigImmunityTimePropertyInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput - ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclCaptchaConfigImmunityTimePropertyArgs struct { - // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - ImmunityTime pulumi.IntPtrInput `pulumi:"immunityTime"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclCaptchaConfigImmunityTimePropertyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput { - return i.ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty]{ - OutputState: i.ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyOutput).ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclCaptchaConfigImmunityTimePropertyPtrInput is an input type that accepts WebAclCaptchaConfigImmunityTimePropertyArgs, WebAclCaptchaConfigImmunityTimePropertyPtr and WebAclCaptchaConfigImmunityTimePropertyPtrOutput values. -// You can construct a concrete instance of `WebAclCaptchaConfigImmunityTimePropertyPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclCaptchaConfigImmunityTimePropertyArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclCaptchaConfigImmunityTimePropertyPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput - ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclCaptchaConfigImmunityTimePropertyPtrType WebAclCaptchaConfigImmunityTimePropertyArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclCaptchaConfigImmunityTimePropertyPtr(v *WebAclCaptchaConfigImmunityTimePropertyArgs) WebAclCaptchaConfigImmunityTimePropertyPtrInput { - return (*webAclCaptchaConfigImmunityTimePropertyPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclCaptchaConfigImmunityTimePropertyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty]{ - OutputState: i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclCaptchaConfigImmunityTimePropertyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclCaptchaConfigImmunityTimePropertyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclCaptchaConfigImmunityTimeProperty) *WebAclCaptchaConfigImmunityTimeProperty { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. -func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ImmunityTime() pulumi.IntPtrOutput { - return o.ApplyT(func(v WebAclCaptchaConfigImmunityTimeProperty) *int { return v.ImmunityTime }).(pulumi.IntPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type WebAclCaptchaConfigImmunityTimePropertyPtrOutput struct{ *pulumi.OutputState } +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} -func (WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) Elem() WebAclCaptchaConfigImmunityTimePropertyOutput { - return o.ApplyT(func(v *WebAclCaptchaConfigImmunityTimeProperty) WebAclCaptchaConfigImmunityTimeProperty { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclCaptchaConfigImmunityTimeProperty + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclCaptchaConfigImmunityTimePropertyOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. -func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ImmunityTime() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclCaptchaConfigImmunityTimeProperty) *int { +// An empty configuration block that is used for inspecting all headers. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return v.ImmunityTime - }).(pulumi.IntPtrOutput) + return v.All + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type WebAclCustomResponseBody struct { - // Payload of the custom response. - Content string `pulumi:"content"` - // Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. - ContentType string `pulumi:"contentType"` - // Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. - Key string `pulumi:"key"` +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -// WebAclCustomResponseBodyInput is an input type that accepts WebAclCustomResponseBodyArgs and WebAclCustomResponseBodyOutput values. -// You can construct a concrete instance of `WebAclCustomResponseBodyInput` via: +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclCustomResponseBodyArgs{...} -type WebAclCustomResponseBodyInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput - ToWebAclCustomResponseBodyOutputWithContext(context.Context) WebAclCustomResponseBodyOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclCustomResponseBodyArgs struct { - // Payload of the custom response. - Content pulumi.StringInput `pulumi:"content"` - // Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. - ContentType pulumi.StringInput `pulumi:"contentType"` - // Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. - Key pulumi.StringInput `pulumi:"key"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclCustomResponseBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCustomResponseBody)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclCustomResponseBodyArgs) ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput { - return i.ToWebAclCustomResponseBodyOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclCustomResponseBodyArgs) ToWebAclCustomResponseBodyOutputWithContext(ctx context.Context) WebAclCustomResponseBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCustomResponseBodyOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclCustomResponseBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCustomResponseBody] { - return pulumix.Output[WebAclCustomResponseBody]{ - OutputState: i.ToWebAclCustomResponseBodyOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -// WebAclCustomResponseBodyArrayInput is an input type that accepts WebAclCustomResponseBodyArray and WebAclCustomResponseBodyArrayOutput values. -// You can construct a concrete instance of `WebAclCustomResponseBodyArrayInput` via: +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclCustomResponseBodyArray{ WebAclCustomResponseBodyArgs{...} } -type WebAclCustomResponseBodyArrayInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput - ToWebAclCustomResponseBodyArrayOutputWithContext(context.Context) WebAclCustomResponseBodyArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type WebAclCustomResponseBodyArray []WebAclCustomResponseBodyInput +type ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func (WebAclCustomResponseBodyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclCustomResponseBody)(nil)).Elem() +func RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (i WebAclCustomResponseBodyArray) ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput { - return i.ToWebAclCustomResponseBodyArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclCustomResponseBodyArray) ToWebAclCustomResponseBodyArrayOutputWithContext(ctx context.Context) WebAclCustomResponseBodyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclCustomResponseBodyArrayOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclCustomResponseBodyArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclCustomResponseBody] { - return pulumix.Output[[]WebAclCustomResponseBody]{ - OutputState: i.ToWebAclCustomResponseBodyArrayOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclCustomResponseBodyOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclCustomResponseBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclCustomResponseBody)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclCustomResponseBodyOutput) ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclCustomResponseBodyOutput) ToWebAclCustomResponseBodyOutputWithContext(ctx context.Context) WebAclCustomResponseBodyOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclCustomResponseBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCustomResponseBody] { - return pulumix.Output[WebAclCustomResponseBody]{ - OutputState: o.OutputState, - } -} - -// Payload of the custom response. -func (o WebAclCustomResponseBodyOutput) Content() pulumi.StringOutput { - return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.Content }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -// Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. -func (o WebAclCustomResponseBodyOutput) ContentType() pulumi.StringOutput { - return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.ContentType }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. -func (o WebAclCustomResponseBodyOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.Key }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } } -type WebAclCustomResponseBodyArrayOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclCustomResponseBodyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclCustomResponseBody)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclCustomResponseBodyArrayOutput) ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclCustomResponseBodyArrayOutput) ToWebAclCustomResponseBodyArrayOutputWithContext(ctx context.Context) WebAclCustomResponseBodyArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclCustomResponseBodyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclCustomResponseBody] { - return pulumix.Output[[]WebAclCustomResponseBody]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclCustomResponseBodyArrayOutput) Index(i pulumi.IntInput) WebAclCustomResponseBodyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclCustomResponseBody { - return vs[0].([]WebAclCustomResponseBody)[vs[1].(int)] - }).(WebAclCustomResponseBodyOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclDefaultAction struct { - // Specifies that AWS WAF should allow requests by default. See `allow` below for details. - Allow *WebAclDefaultActionAllow `pulumi:"allow"` - // Specifies that AWS WAF should block requests by default. See `block` below for details. - Block *WebAclDefaultActionBlock `pulumi:"block"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod struct { } -// WebAclDefaultActionInput is an input type that accepts WebAclDefaultActionArgs and WebAclDefaultActionOutput values. -// You can construct a concrete instance of `WebAclDefaultActionInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput` via: // -// WebAclDefaultActionArgs{...} -type WebAclDefaultActionInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclDefaultActionOutput() WebAclDefaultActionOutput - ToWebAclDefaultActionOutputWithContext(context.Context) WebAclDefaultActionOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput } -type WebAclDefaultActionArgs struct { - // Specifies that AWS WAF should allow requests by default. See `allow` below for details. - Allow WebAclDefaultActionAllowPtrInput `pulumi:"allow"` - // Specifies that AWS WAF should block requests by default. See `block` below for details. - Block WebAclDefaultActionBlockPtrInput `pulumi:"block"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs struct { } -func (WebAclDefaultActionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultAction)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclDefaultActionArgs) ToWebAclDefaultActionOutput() WebAclDefaultActionOutput { - return i.ToWebAclDefaultActionOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclDefaultActionArgs) ToWebAclDefaultActionOutputWithContext(ctx context.Context) WebAclDefaultActionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionOutput) -} +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) +} -func (i WebAclDefaultActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultAction] { - return pulumix.Output[WebAclDefaultAction]{ - OutputState: i.ToWebAclDefaultActionOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclDefaultActionArgs) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { - return i.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclDefaultActionArgs) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionOutput).ToWebAclDefaultActionPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclDefaultActionPtrInput is an input type that accepts WebAclDefaultActionArgs, WebAclDefaultActionPtr and WebAclDefaultActionPtrOutput values. -// You can construct a concrete instance of `WebAclDefaultActionPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput` via: // -// WebAclDefaultActionArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclDefaultActionPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput - ToWebAclDefaultActionPtrOutputWithContext(context.Context) WebAclDefaultActionPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput } -type webAclDefaultActionPtrType WebAclDefaultActionArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs -func WebAclDefaultActionPtr(v *WebAclDefaultActionArgs) WebAclDefaultActionPtrInput { - return (*webAclDefaultActionPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType)(v) } -func (*webAclDefaultActionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultAction)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclDefaultActionPtrType) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { - return i.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclDefaultActionPtrType) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (i *webAclDefaultActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultAction] { - return pulumix.Output[*WebAclDefaultAction]{ - OutputState: i.ToWebAclDefaultActionPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclDefaultActionOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultAction)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclDefaultActionOutput) ToWebAclDefaultActionOutput() WebAclDefaultActionOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclDefaultActionOutput) ToWebAclDefaultActionOutputWithContext(ctx context.Context) WebAclDefaultActionOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclDefaultActionOutput) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { - return o.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclDefaultActionOutput) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultAction) *WebAclDefaultAction { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod) *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { return &v - }).(WebAclDefaultActionPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclDefaultActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultAction] { - return pulumix.Output[WebAclDefaultAction]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// Specifies that AWS WAF should allow requests by default. See `allow` below for details. -func (o WebAclDefaultActionOutput) Allow() WebAclDefaultActionAllowPtrOutput { - return o.ApplyT(func(v WebAclDefaultAction) *WebAclDefaultActionAllow { return v.Allow }).(WebAclDefaultActionAllowPtrOutput) -} - -// Specifies that AWS WAF should block requests by default. See `block` below for details. -func (o WebAclDefaultActionOutput) Block() WebAclDefaultActionBlockPtrOutput { - return o.ApplyT(func(v WebAclDefaultAction) *WebAclDefaultActionBlock { return v.Block }).(WebAclDefaultActionBlockPtrOutput) -} - -type WebAclDefaultActionPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultAction)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclDefaultActionPtrOutput) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclDefaultActionPtrOutput) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclDefaultActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultAction] { - return pulumix.Output[*WebAclDefaultAction]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionPtrOutput) Elem() WebAclDefaultActionOutput { - return o.ApplyT(func(v *WebAclDefaultAction) WebAclDefaultAction { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod) RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclDefaultAction + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod return ret - }).(WebAclDefaultActionOutput) -} - -// Specifies that AWS WAF should allow requests by default. See `allow` below for details. -func (o WebAclDefaultActionPtrOutput) Allow() WebAclDefaultActionAllowPtrOutput { - return o.ApplyT(func(v *WebAclDefaultAction) *WebAclDefaultActionAllow { - if v == nil { - return nil - } - return v.Allow - }).(WebAclDefaultActionAllowPtrOutput) -} - -// Specifies that AWS WAF should block requests by default. See `block` below for details. -func (o WebAclDefaultActionPtrOutput) Block() WebAclDefaultActionBlockPtrOutput { - return o.ApplyT(func(v *WebAclDefaultAction) *WebAclDefaultActionBlock { - if v == nil { - return nil - } - return v.Block - }).(WebAclDefaultActionBlockPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodOutput) } -type WebAclDefaultActionAllow struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclDefaultActionAllowCustomRequestHandling `pulumi:"customRequestHandling"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString struct { } -// WebAclDefaultActionAllowInput is an input type that accepts WebAclDefaultActionAllowArgs and WebAclDefaultActionAllowOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput` via: // -// WebAclDefaultActionAllowArgs{...} -type WebAclDefaultActionAllowInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput - ToWebAclDefaultActionAllowOutputWithContext(context.Context) WebAclDefaultActionAllowOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput } -type WebAclDefaultActionAllowArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclDefaultActionAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs struct { } -func (WebAclDefaultActionAllowArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllow)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput { - return i.ToWebAclDefaultActionAllowOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowOutputWithContext(ctx context.Context) WebAclDefaultActionAllowOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) } -func (i WebAclDefaultActionAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllow] { - return pulumix.Output[WebAclDefaultActionAllow]{ - OutputState: i.ToWebAclDefaultActionAllowOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { - return i.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowOutput).ToWebAclDefaultActionAllowPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// WebAclDefaultActionAllowPtrInput is an input type that accepts WebAclDefaultActionAllowArgs, WebAclDefaultActionAllowPtr and WebAclDefaultActionAllowPtrOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclDefaultActionAllowArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type WebAclDefaultActionAllowPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput - ToWebAclDefaultActionAllowPtrOutputWithContext(context.Context) WebAclDefaultActionAllowPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput } -type webAclDefaultActionAllowPtrType WebAclDefaultActionAllowArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs -func WebAclDefaultActionAllowPtr(v *WebAclDefaultActionAllowArgs) WebAclDefaultActionAllowPtrInput { - return (*webAclDefaultActionAllowPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*webAclDefaultActionAllowPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionAllow)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *webAclDefaultActionAllowPtrType) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { - return i.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *webAclDefaultActionAllowPtrType) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *webAclDefaultActionAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllow] { - return pulumix.Output[*WebAclDefaultActionAllow]{ - OutputState: i.ToWebAclDefaultActionAllowPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclDefaultActionAllowOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionAllowOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllow)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowOutputWithContext(ctx context.Context) WebAclDefaultActionAllowOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { - return o.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionAllow) *WebAclDefaultActionAllow { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString) *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { return &v - }).(WebAclDefaultActionAllowPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclDefaultActionAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllow] { - return pulumix.Output[WebAclDefaultActionAllow]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclDefaultActionAllowOutput) CustomRequestHandling() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclDefaultActionAllow) *WebAclDefaultActionAllowCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) -} - -type WebAclDefaultActionAllowPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionAllowPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionAllow)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclDefaultActionAllowPtrOutput) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclDefaultActionAllowPtrOutput) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclDefaultActionAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllow] { - return pulumix.Output[*WebAclDefaultActionAllow]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionAllowPtrOutput) Elem() WebAclDefaultActionAllowOutput { - return o.ApplyT(func(v *WebAclDefaultActionAllow) WebAclDefaultActionAllow { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString) RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret WebAclDefaultActionAllow + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString return ret - }).(WebAclDefaultActionAllowOutput) -} - -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclDefaultActionAllowPtrOutput) CustomRequestHandling() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclDefaultActionAllow) *WebAclDefaultActionAllowCustomRequestHandling { - if v == nil { - return nil - } - return v.CustomRequestHandling - }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringOutput) } -type WebAclDefaultActionAllowCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclDefaultActionAllowCustomRequestHandlingInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingArgs and WebAclDefaultActionAllowCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: // -// WebAclDefaultActionAllowCustomRequestHandlingArgs{...} -type WebAclDefaultActionAllowCustomRequestHandlingInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput - ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput } -type WebAclDefaultActionAllowCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclDefaultActionAllowCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput { - return i.ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) } -func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling] { - return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling]{ - OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingOutput).ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// WebAclDefaultActionAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingArgs, WebAclDefaultActionAllowCustomRequestHandlingPtr and WebAclDefaultActionAllowCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// WebAclDefaultActionAllowCustomRequestHandlingArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type WebAclDefaultActionAllowCustomRequestHandlingPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput - ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput } -type webAclDefaultActionAllowCustomRequestHandlingPtrType WebAclDefaultActionAllowCustomRequestHandlingArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs -func WebAclDefaultActionAllowCustomRequestHandlingPtr(v *WebAclDefaultActionAllowCustomRequestHandlingArgs) WebAclDefaultActionAllowCustomRequestHandlingPtrInput { - return (*webAclDefaultActionAllowCustomRequestHandlingPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*webAclDefaultActionAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling] { - return pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling]{ - OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclDefaultActionAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionAllowCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return o.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionAllowCustomRequestHandling) *WebAclDefaultActionAllowCustomRequestHandling { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { return &v - }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling] { - return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) InsertHeaders() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandling) []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclDefaultActionAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling] { - return pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) Elem() WebAclDefaultActionAllowCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclDefaultActionAllowCustomRequestHandling) WebAclDefaultActionAllowCustomRequestHandling { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret WebAclDefaultActionAllowCustomRequestHandling + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader return ret - }).(WebAclDefaultActionAllowCustomRequestHandlingOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclDefaultActionAllowCustomRequestHandling) []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` } -// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs and WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs{...} -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput - ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // The name of the query header to inspect. This setting must be provided as lower case characters. Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` } -func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray and WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput` via: +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray{ WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// +// or: +// +// nil +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray []WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput +type ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs -func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, + } } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +} + +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { + return &v + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// Value of the custom header. -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: o.OutputState, + } } -type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) +} -func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +type RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument { + if v != nil { + return *v + } + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument + return ret + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) } -type WebAclDefaultActionBlock struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse *WebAclDefaultActionBlockCustomResponse `pulumi:"customResponse"` +// The name of the query header to inspect. This setting must be provided as lower case characters. +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclDefaultActionBlockInput is an input type that accepts WebAclDefaultActionBlockArgs and WebAclDefaultActionBlockOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockInput` via: +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath struct { +} + +// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs and RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput` via: // -// WebAclDefaultActionBlockArgs{...} -type WebAclDefaultActionBlockInput interface { +// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs{...} +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput - ToWebAclDefaultActionBlockOutputWithContext(context.Context) WebAclDefaultActionBlockOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput } -type WebAclDefaultActionBlockArgs struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse WebAclDefaultActionBlockCustomResponsePtrInput `pulumi:"customResponse"` +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs struct { } -func (WebAclDefaultActionBlockArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlock)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput { - return i.ToWebAclDefaultActionBlockOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockOutputWithContext(ctx context.Context) WebAclDefaultActionBlockOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockOutput) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclDefaultActionBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlock] { - return pulumix.Output[WebAclDefaultActionBlock]{ - OutputState: i.ToWebAclDefaultActionBlockOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { - return i.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockOutput).ToWebAclDefaultActionBlockPtrOutputWithContext(ctx) +func (i RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput).ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclDefaultActionBlockPtrInput is an input type that accepts WebAclDefaultActionBlockArgs, WebAclDefaultActionBlockPtr and WebAclDefaultActionBlockPtrOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockPtrInput` via: +// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs, RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtr and RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: // -// WebAclDefaultActionBlockArgs{...} +// RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclDefaultActionBlockPtrInput interface { +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput - ToWebAclDefaultActionBlockPtrOutputWithContext(context.Context) WebAclDefaultActionBlockPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput } -type webAclDefaultActionBlockPtrType WebAclDefaultActionBlockArgs +type ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs -func WebAclDefaultActionBlockPtr(v *WebAclDefaultActionBlockArgs) WebAclDefaultActionBlockPtrInput { - return (*webAclDefaultActionBlockPtrType)(v) +func RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtr(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrInput { + return (*ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclDefaultActionBlockPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionBlock)(nil)).Elem() +func (*ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclDefaultActionBlockPtrType) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { - return i.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclDefaultActionBlockPtrType) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockPtrOutput) +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclDefaultActionBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlock] { - return pulumix.Output[*WebAclDefaultActionBlock]{ - OutputState: i.ToWebAclDefaultActionBlockPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclDefaultActionBlockOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionBlockOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlock)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockOutputWithContext(ctx context.Context) WebAclDefaultActionBlockOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { - return o.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionBlock) *WebAclDefaultActionBlock { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath) *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { return &v - }).(WebAclDefaultActionBlockPtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclDefaultActionBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlock] { - return pulumix.Output[WebAclDefaultActionBlock]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclDefaultActionBlockOutput) CustomResponse() WebAclDefaultActionBlockCustomResponsePtrOutput { - return o.ApplyT(func(v WebAclDefaultActionBlock) *WebAclDefaultActionBlockCustomResponse { return v.CustomResponse }).(WebAclDefaultActionBlockCustomResponsePtrOutput) -} - -type WebAclDefaultActionBlockPtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionBlockPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionBlock)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclDefaultActionBlockPtrOutput) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclDefaultActionBlockPtrOutput) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToRuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclDefaultActionBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlock] { - return pulumix.Output[*WebAclDefaultActionBlock]{ +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionBlockPtrOutput) Elem() WebAclDefaultActionBlockOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlock) WebAclDefaultActionBlock { +func (o RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath) RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret WebAclDefaultActionBlock + var ret RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath return ret - }).(WebAclDefaultActionBlockOutput) -} - -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclDefaultActionBlockPtrOutput) CustomResponse() WebAclDefaultActionBlockCustomResponsePtrOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlock) *WebAclDefaultActionBlockCustomResponse { - if v == nil { - return nil - } - return v.CustomResponse - }).(WebAclDefaultActionBlockCustomResponsePtrOutput) + }).(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathOutput) } -type WebAclDefaultActionBlockCustomResponse struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode int `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders []WebAclDefaultActionBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` +type RuleGroupRuleStatementXssMatchStatementTextTransformation struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclDefaultActionBlockCustomResponseInput is an input type that accepts WebAclDefaultActionBlockCustomResponseArgs and WebAclDefaultActionBlockCustomResponseOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseInput` via: +// RuleGroupRuleStatementXssMatchStatementTextTransformationInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementTextTransformationArgs and RuleGroupRuleStatementXssMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementTextTransformationInput` via: // -// WebAclDefaultActionBlockCustomResponseArgs{...} -type WebAclDefaultActionBlockCustomResponseInput interface { +// RuleGroupRuleStatementXssMatchStatementTextTransformationArgs{...} +type RuleGroupRuleStatementXssMatchStatementTextTransformationInput interface { pulumi.Input - ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput - ToWebAclDefaultActionBlockCustomResponseOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseOutput + ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput + ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput } -type WebAclDefaultActionBlockCustomResponseArgs struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode pulumi.IntInput `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` +type RuleGroupRuleStatementXssMatchStatementTextTransformationArgs struct { + // The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (WebAclDefaultActionBlockCustomResponseArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponse)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput { - return i.ToWebAclDefaultActionBlockCustomResponseOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseOutput) +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) } -func (i WebAclDefaultActionBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponse] { - return pulumix.Output[WebAclDefaultActionBlockCustomResponse]{ - OutputState: i.ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { - return i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) -} - -func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseOutput).ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx) -} - -// WebAclDefaultActionBlockCustomResponsePtrInput is an input type that accepts WebAclDefaultActionBlockCustomResponseArgs, WebAclDefaultActionBlockCustomResponsePtr and WebAclDefaultActionBlockCustomResponsePtrOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponsePtrInput` via: -// -// WebAclDefaultActionBlockCustomResponseArgs{...} -// -// or: +// RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts RuleGroupRuleStatementXssMatchStatementTextTransformationArray and RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput` via: // -// nil -type WebAclDefaultActionBlockCustomResponsePtrInput interface { +// RuleGroupRuleStatementXssMatchStatementTextTransformationArray{ RuleGroupRuleStatementXssMatchStatementTextTransformationArgs{...} } +type RuleGroupRuleStatementXssMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput - ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput + ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput + ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput } -type webAclDefaultActionBlockCustomResponsePtrType WebAclDefaultActionBlockCustomResponseArgs - -func WebAclDefaultActionBlockCustomResponsePtr(v *WebAclDefaultActionBlockCustomResponseArgs) WebAclDefaultActionBlockCustomResponsePtrInput { - return (*webAclDefaultActionBlockCustomResponsePtrType)(v) -} +type RuleGroupRuleStatementXssMatchStatementTextTransformationArray []RuleGroupRuleStatementXssMatchStatementTextTransformationInput -func (*webAclDefaultActionBlockCustomResponsePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionBlockCustomResponse)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (i *webAclDefaultActionBlockCustomResponsePtrType) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { - return i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { + return i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *webAclDefaultActionBlockCustomResponsePtrType) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponsePtrOutput) +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) } -func (i *webAclDefaultActionBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlockCustomResponse] { - return pulumix.Output[*WebAclDefaultActionBlockCustomResponse]{ - OutputState: i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclDefaultActionBlockCustomResponseOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionBlockCustomResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponse)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput { +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { return o } -func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseOutput { +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { return o } -func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { - return o.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) -} - -func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionBlockCustomResponse) *WebAclDefaultActionBlockCustomResponse { - return &v - }).(WebAclDefaultActionBlockCustomResponsePtrOutput) -} - -func (o WebAclDefaultActionBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponse] { - return pulumix.Output[WebAclDefaultActionBlockCustomResponse]{ +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation] { + return pulumix.Output[RuleGroupRuleStatementXssMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclDefaultActionBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) *string { return v.CustomResponseBodyKey }).(pulumi.StringPtrOutput) -} - -// The HTTP status code to return to the client. -func (o WebAclDefaultActionBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { - return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) int { return v.ResponseCode }).(pulumi.IntOutput) +// The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclDefaultActionBlockCustomResponseOutput) ResponseHeaders() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) []WebAclDefaultActionBlockCustomResponseResponseHeader { - return v.ResponseHeaders - }).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) +// The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleStatementXssMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type WebAclDefaultActionBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } +type RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclDefaultActionBlockCustomResponsePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclDefaultActionBlockCustomResponse)(nil)).Elem() +func (RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RuleGroupRuleStatementXssMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput() RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToRuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlockCustomResponse] { - return pulumix.Output[*WebAclDefaultActionBlockCustomResponse]{ +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]RuleGroupRuleStatementXssMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) Elem() WebAclDefaultActionBlockCustomResponseOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) WebAclDefaultActionBlockCustomResponse { - if v != nil { - return *v - } - var ret WebAclDefaultActionBlockCustomResponse - return ret - }).(WebAclDefaultActionBlockCustomResponseOutput) -} - -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) *string { - if v == nil { - return nil - } - return v.CustomResponseBodyKey - }).(pulumi.StringPtrOutput) -} - -// The HTTP status code to return to the client. -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) *int { - if v == nil { - return nil - } - return &v.ResponseCode - }).(pulumi.IntPtrOutput) -} - -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ResponseHeaders() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) []WebAclDefaultActionBlockCustomResponseResponseHeader { - if v == nil { - return nil - } - return v.ResponseHeaders - }).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) +func (o RuleGroupRuleStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) RuleGroupRuleStatementXssMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuleGroupRuleStatementXssMatchStatementTextTransformation { + return vs[0].([]RuleGroupRuleStatementXssMatchStatementTextTransformation)[vs[1].(int)] + }).(RuleGroupRuleStatementXssMatchStatementTextTransformationOutput) } -type WebAclDefaultActionBlockCustomResponseResponseHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type RuleGroupRuleVisibilityConfig struct { + // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + CloudwatchMetricsEnabled bool `pulumi:"cloudwatchMetricsEnabled"` + // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + MetricName string `pulumi:"metricName"` + // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + SampledRequestsEnabled bool `pulumi:"sampledRequestsEnabled"` } -// WebAclDefaultActionBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclDefaultActionBlockCustomResponseResponseHeaderArgs and WebAclDefaultActionBlockCustomResponseResponseHeaderOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseResponseHeaderInput` via: +// RuleGroupRuleVisibilityConfigInput is an input type that accepts RuleGroupRuleVisibilityConfigArgs and RuleGroupRuleVisibilityConfigOutput values. +// You can construct a concrete instance of `RuleGroupRuleVisibilityConfigInput` via: // -// WebAclDefaultActionBlockCustomResponseResponseHeaderArgs{...} -type WebAclDefaultActionBlockCustomResponseResponseHeaderInput interface { +// RuleGroupRuleVisibilityConfigArgs{...} +type RuleGroupRuleVisibilityConfigInput interface { pulumi.Input - ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput - ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput + ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput + ToRuleGroupRuleVisibilityConfigOutputWithContext(context.Context) RuleGroupRuleVisibilityConfigOutput } -type WebAclDefaultActionBlockCustomResponseResponseHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type RuleGroupRuleVisibilityConfigArgs struct { + // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + CloudwatchMetricsEnabled pulumi.BoolInput `pulumi:"cloudwatchMetricsEnabled"` + // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + MetricName pulumi.StringInput `pulumi:"metricName"` + // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + SampledRequestsEnabled pulumi.BoolInput `pulumi:"sampledRequestsEnabled"` } -func (WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() +func (RuleGroupRuleVisibilityConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleVisibilityConfig)(nil)).Elem() } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { - return i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) +func (i RuleGroupRuleVisibilityConfigArgs) ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput { + return i.ToRuleGroupRuleVisibilityConfigOutputWithContext(context.Background()) } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) +func (i RuleGroupRuleVisibilityConfigArgs) ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupRuleVisibilityConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupRuleVisibilityConfigOutput) } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, +func (i RuleGroupRuleVisibilityConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleVisibilityConfig] { + return pulumix.Output[RuleGroupRuleVisibilityConfig]{ + OutputState: i.ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx).OutputState, } } -// WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclDefaultActionBlockCustomResponseResponseHeaderArray and WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput` via: -// -// WebAclDefaultActionBlockCustomResponseResponseHeaderArray{ WebAclDefaultActionBlockCustomResponseResponseHeaderArgs{...} } -type WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput interface { - pulumi.Input +type RuleGroupRuleVisibilityConfigOutput struct{ *pulumi.OutputState } - ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput - ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput +func (RuleGroupRuleVisibilityConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupRuleVisibilityConfig)(nil)).Elem() } -type WebAclDefaultActionBlockCustomResponseResponseHeaderArray []WebAclDefaultActionBlockCustomResponseResponseHeaderInput +func (o RuleGroupRuleVisibilityConfigOutput) ToRuleGroupRuleVisibilityConfigOutput() RuleGroupRuleVisibilityConfigOutput { + return o +} -func (WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() +func (o RuleGroupRuleVisibilityConfigOutput) ToRuleGroupRuleVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupRuleVisibilityConfigOutput { + return o } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) +func (o RuleGroupRuleVisibilityConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupRuleVisibilityConfig] { + return pulumix.Output[RuleGroupRuleVisibilityConfig]{ + OutputState: o.OutputState, + } } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) +// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). +func (o RuleGroupRuleVisibilityConfigOutput) CloudwatchMetricsEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) bool { return v.CloudwatchMetricsEnabled }).(pulumi.BoolOutput) } -func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, - } +// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. +func (o RuleGroupRuleVisibilityConfigOutput) MetricName() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) string { return v.MetricName }).(pulumi.StringOutput) } -type WebAclDefaultActionBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { - return o -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { - return o -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader]{ - OutputState: o.OutputState, - } -} - -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponseResponseHeader) string { return v.Name }).(pulumi.StringOutput) -} - -// Value of the custom header. -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponseResponseHeader) string { return v.Value }).(pulumi.StringOutput) -} - -type WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } - -func (WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return o -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { - return o -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader]{ - OutputState: o.OutputState, - } -} - -func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclDefaultActionBlockCustomResponseResponseHeader { - return vs[0].([]WebAclDefaultActionBlockCustomResponseResponseHeader)[vs[1].(int)] - }).(WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) +// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. +func (o RuleGroupRuleVisibilityConfigOutput) SampledRequestsEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v RuleGroupRuleVisibilityConfig) bool { return v.SampledRequestsEnabled }).(pulumi.BoolOutput) } -type WebAclLoggingConfigurationLoggingFilter struct { - // Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. - DefaultBehavior string `pulumi:"defaultBehavior"` - // Filter(s) that you want to apply to the logs. See Filter below for more details. - Filters []WebAclLoggingConfigurationLoggingFilterFilter `pulumi:"filters"` +type RuleGroupVisibilityConfig struct { + // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + CloudwatchMetricsEnabled bool `pulumi:"cloudwatchMetricsEnabled"` + // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + MetricName string `pulumi:"metricName"` + // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + SampledRequestsEnabled bool `pulumi:"sampledRequestsEnabled"` } -// WebAclLoggingConfigurationLoggingFilterInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterArgs and WebAclLoggingConfigurationLoggingFilterOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterInput` via: +// RuleGroupVisibilityConfigInput is an input type that accepts RuleGroupVisibilityConfigArgs and RuleGroupVisibilityConfigOutput values. +// You can construct a concrete instance of `RuleGroupVisibilityConfigInput` via: // -// WebAclLoggingConfigurationLoggingFilterArgs{...} -type WebAclLoggingConfigurationLoggingFilterInput interface { +// RuleGroupVisibilityConfigArgs{...} +type RuleGroupVisibilityConfigInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput - ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterOutput + ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput + ToRuleGroupVisibilityConfigOutputWithContext(context.Context) RuleGroupVisibilityConfigOutput } -type WebAclLoggingConfigurationLoggingFilterArgs struct { - // Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. - DefaultBehavior pulumi.StringInput `pulumi:"defaultBehavior"` - // Filter(s) that you want to apply to the logs. See Filter below for more details. - Filters WebAclLoggingConfigurationLoggingFilterFilterArrayInput `pulumi:"filters"` +type RuleGroupVisibilityConfigArgs struct { + // A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + CloudwatchMetricsEnabled pulumi.BoolInput `pulumi:"cloudwatchMetricsEnabled"` + // A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + MetricName pulumi.StringInput `pulumi:"metricName"` + // A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + SampledRequestsEnabled pulumi.BoolInput `pulumi:"sampledRequestsEnabled"` } -func (WebAclLoggingConfigurationLoggingFilterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() +func (RuleGroupVisibilityConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupVisibilityConfig)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(context.Background()) +func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput { + return i.ToRuleGroupVisibilityConfigOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterOutput) +func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigOutput) } -func (i WebAclLoggingConfigurationLoggingFilterArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilter] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilter]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx).OutputState, +func (i RuleGroupVisibilityConfigArgs) ToOutput(ctx context.Context) pulumix.Output[RuleGroupVisibilityConfig] { + return pulumix.Output[RuleGroupVisibilityConfig]{ + OutputState: i.ToRuleGroupVisibilityConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) +func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { + return i.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterOutput).ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx) +func (i RuleGroupVisibilityConfigArgs) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigOutput).ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx) } -// WebAclLoggingConfigurationLoggingFilterPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterArgs, WebAclLoggingConfigurationLoggingFilterPtr and WebAclLoggingConfigurationLoggingFilterPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterPtrInput` via: +// RuleGroupVisibilityConfigPtrInput is an input type that accepts RuleGroupVisibilityConfigArgs, RuleGroupVisibilityConfigPtr and RuleGroupVisibilityConfigPtrOutput values. +// You can construct a concrete instance of `RuleGroupVisibilityConfigPtrInput` via: // -// WebAclLoggingConfigurationLoggingFilterArgs{...} +// RuleGroupVisibilityConfigArgs{...} // // or: // // nil -type WebAclLoggingConfigurationLoggingFilterPtrInput interface { +type RuleGroupVisibilityConfigPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput - ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput + ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput + ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Context) RuleGroupVisibilityConfigPtrOutput } -type webAclLoggingConfigurationLoggingFilterPtrType WebAclLoggingConfigurationLoggingFilterArgs +type ruleGroupVisibilityConfigPtrType RuleGroupVisibilityConfigArgs -func WebAclLoggingConfigurationLoggingFilterPtr(v *WebAclLoggingConfigurationLoggingFilterArgs) WebAclLoggingConfigurationLoggingFilterPtrInput { - return (*webAclLoggingConfigurationLoggingFilterPtrType)(v) +func RuleGroupVisibilityConfigPtr(v *RuleGroupVisibilityConfigArgs) RuleGroupVisibilityConfigPtrInput { + return (*ruleGroupVisibilityConfigPtrType)(v) } -func (*webAclLoggingConfigurationLoggingFilterPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() +func (*ruleGroupVisibilityConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupVisibilityConfig)(nil)).Elem() } -func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) +func (i *ruleGroupVisibilityConfigPtrType) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { + return i.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterPtrOutput) +func (i *ruleGroupVisibilityConfigPtrType) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(RuleGroupVisibilityConfigPtrOutput) } -func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilter] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilter]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx).OutputState, +func (i *ruleGroupVisibilityConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupVisibilityConfig] { + return pulumix.Output[*RuleGroupVisibilityConfig]{ + OutputState: i.ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationLoggingFilterOutput struct{ *pulumi.OutputState } +type RuleGroupVisibilityConfigOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() +func (RuleGroupVisibilityConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RuleGroupVisibilityConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput { +func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigOutput() RuleGroupVisibilityConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterOutput { +func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { - return o.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) +func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { + return o.ToRuleGroupVisibilityConfigPtrOutputWithContext(context.Background()) } -func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilter) *WebAclLoggingConfigurationLoggingFilter { +func (o RuleGroupVisibilityConfigOutput) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v RuleGroupVisibilityConfig) *RuleGroupVisibilityConfig { return &v - }).(WebAclLoggingConfigurationLoggingFilterPtrOutput) + }).(RuleGroupVisibilityConfigPtrOutput) } -func (o WebAclLoggingConfigurationLoggingFilterOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilter] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilter]{ +func (o RuleGroupVisibilityConfigOutput) ToOutput(ctx context.Context) pulumix.Output[RuleGroupVisibilityConfig] { + return pulumix.Output[RuleGroupVisibilityConfig]{ OutputState: o.OutputState, } } -// Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. -func (o WebAclLoggingConfigurationLoggingFilterOutput) DefaultBehavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilter) string { return v.DefaultBehavior }).(pulumi.StringOutput) +// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). +func (o RuleGroupVisibilityConfigOutput) CloudwatchMetricsEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v RuleGroupVisibilityConfig) bool { return v.CloudwatchMetricsEnabled }).(pulumi.BoolOutput) } -// Filter(s) that you want to apply to the logs. See Filter below for more details. -func (o WebAclLoggingConfigurationLoggingFilterOutput) Filters() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilter) []WebAclLoggingConfigurationLoggingFilterFilter { - return v.Filters - }).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) +// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. +func (o RuleGroupVisibilityConfigOutput) MetricName() pulumi.StringOutput { + return o.ApplyT(func(v RuleGroupVisibilityConfig) string { return v.MetricName }).(pulumi.StringOutput) } -type WebAclLoggingConfigurationLoggingFilterPtrOutput struct{ *pulumi.OutputState } +// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. +func (o RuleGroupVisibilityConfigOutput) SampledRequestsEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v RuleGroupVisibilityConfig) bool { return v.SampledRequestsEnabled }).(pulumi.BoolOutput) +} -func (WebAclLoggingConfigurationLoggingFilterPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() +type RuleGroupVisibilityConfigPtrOutput struct{ *pulumi.OutputState } + +func (RuleGroupVisibilityConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**RuleGroupVisibilityConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { +func (o RuleGroupVisibilityConfigPtrOutput) ToRuleGroupVisibilityConfigPtrOutput() RuleGroupVisibilityConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { +func (o RuleGroupVisibilityConfigPtrOutput) ToRuleGroupVisibilityConfigPtrOutputWithContext(ctx context.Context) RuleGroupVisibilityConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilter] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilter]{ +func (o RuleGroupVisibilityConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*RuleGroupVisibilityConfig] { + return pulumix.Output[*RuleGroupVisibilityConfig]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) WebAclLoggingConfigurationLoggingFilter { +func (o RuleGroupVisibilityConfigPtrOutput) Elem() RuleGroupVisibilityConfigOutput { + return o.ApplyT(func(v *RuleGroupVisibilityConfig) RuleGroupVisibilityConfig { if v != nil { return *v } - var ret WebAclLoggingConfigurationLoggingFilter + var ret RuleGroupVisibilityConfig return ret - }).(WebAclLoggingConfigurationLoggingFilterOutput) + }).(RuleGroupVisibilityConfigOutput) } -// Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) DefaultBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) *string { +// A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). +func (o RuleGroupVisibilityConfigPtrOutput) CloudwatchMetricsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *RuleGroupVisibilityConfig) *bool { if v == nil { return nil } - return &v.DefaultBehavior + return &v.CloudwatchMetricsEnabled + }).(pulumi.BoolPtrOutput) +} + +// A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. +func (o RuleGroupVisibilityConfigPtrOutput) MetricName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *RuleGroupVisibilityConfig) *string { + if v == nil { + return nil + } + return &v.MetricName }).(pulumi.StringPtrOutput) } -// Filter(s) that you want to apply to the logs. See Filter below for more details. -func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) Filters() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) []WebAclLoggingConfigurationLoggingFilterFilter { +// A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. +func (o RuleGroupVisibilityConfigPtrOutput) SampledRequestsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *RuleGroupVisibilityConfig) *bool { if v == nil { return nil } - return v.Filters - }).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) + return &v.SampledRequestsEnabled + }).(pulumi.BoolPtrOutput) } -type WebAclLoggingConfigurationLoggingFilterFilter struct { - // Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. - Behavior string `pulumi:"behavior"` - // Match condition(s) for the filter. See Condition below for more details. - Conditions []WebAclLoggingConfigurationLoggingFilterFilterCondition `pulumi:"conditions"` - // Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. - Requirement string `pulumi:"requirement"` +type WebAclAssociationConfig struct { + // Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. + RequestBodies []WebAclAssociationConfigRequestBody `pulumi:"requestBodies"` } -// WebAclLoggingConfigurationLoggingFilterFilterInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterArgs and WebAclLoggingConfigurationLoggingFilterFilterOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterInput` via: +// WebAclAssociationConfigInput is an input type that accepts WebAclAssociationConfigArgs and WebAclAssociationConfigOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterArgs{...} -type WebAclLoggingConfigurationLoggingFilterFilterInput interface { +// WebAclAssociationConfigArgs{...} +type WebAclAssociationConfigInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput - ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput + ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput + ToWebAclAssociationConfigOutputWithContext(context.Context) WebAclAssociationConfigOutput } -type WebAclLoggingConfigurationLoggingFilterFilterArgs struct { - // Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. - Behavior pulumi.StringInput `pulumi:"behavior"` - // Match condition(s) for the filter. See Condition below for more details. - Conditions WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput `pulumi:"conditions"` - // Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. - Requirement pulumi.StringInput `pulumi:"requirement"` +type WebAclAssociationConfigArgs struct { + // Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. + RequestBodies WebAclAssociationConfigRequestBodyArrayInput `pulumi:"requestBodies"` } -func (WebAclLoggingConfigurationLoggingFilterFilterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() +func (WebAclAssociationConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfig)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(context.Background()) +func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput { + return i.ToWebAclAssociationConfigOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterOutput) +func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigOutputWithContext(ctx context.Context) WebAclAssociationConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigOutput) } -func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx).OutputState, +func (i WebAclAssociationConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfig] { + return pulumix.Output[WebAclAssociationConfig]{ + OutputState: i.ToWebAclAssociationConfigOutputWithContext(ctx).OutputState, } } -// WebAclLoggingConfigurationLoggingFilterFilterArrayInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterArray and WebAclLoggingConfigurationLoggingFilterFilterArrayOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterArrayInput` via: +func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { + return i.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) +} + +func (i WebAclAssociationConfigArgs) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigOutput).ToWebAclAssociationConfigPtrOutputWithContext(ctx) +} + +// WebAclAssociationConfigPtrInput is an input type that accepts WebAclAssociationConfigArgs, WebAclAssociationConfigPtr and WebAclAssociationConfigPtrOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigPtrInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterArray{ WebAclLoggingConfigurationLoggingFilterFilterArgs{...} } -type WebAclLoggingConfigurationLoggingFilterFilterArrayInput interface { +// WebAclAssociationConfigArgs{...} +// +// or: +// +// nil +type WebAclAssociationConfigPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput - ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput + ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput + ToWebAclAssociationConfigPtrOutputWithContext(context.Context) WebAclAssociationConfigPtrOutput } -type WebAclLoggingConfigurationLoggingFilterFilterArray []WebAclLoggingConfigurationLoggingFilterFilterInput +type webAclAssociationConfigPtrType WebAclAssociationConfigArgs -func (WebAclLoggingConfigurationLoggingFilterFilterArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() +func WebAclAssociationConfigPtr(v *WebAclAssociationConfigArgs) WebAclAssociationConfigPtrInput { + return (*webAclAssociationConfigPtrType)(v) } -func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(context.Background()) +func (*webAclAssociationConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclAssociationConfig)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) +func (i *webAclAssociationConfigPtrType) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { + return i.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter] { - return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx).OutputState, +func (i *webAclAssociationConfigPtrType) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigPtrOutput) +} + +func (i *webAclAssociationConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclAssociationConfig] { + return pulumix.Output[*WebAclAssociationConfig]{ + OutputState: i.ToWebAclAssociationConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationLoggingFilterFilterOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() +func (WebAclAssociationConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput { +func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigOutput() WebAclAssociationConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput { +func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigOutputWithContext(ctx context.Context) WebAclAssociationConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter]{ - OutputState: o.OutputState, - } +func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { + return o.ToWebAclAssociationConfigPtrOutputWithContext(context.Background()) } -// Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Behavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) string { return v.Behavior }).(pulumi.StringOutput) +func (o WebAclAssociationConfigOutput) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclAssociationConfig) *WebAclAssociationConfig { + return &v + }).(WebAclAssociationConfigPtrOutput) } -// Match condition(s) for the filter. See Condition below for more details. -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Conditions() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) []WebAclLoggingConfigurationLoggingFilterFilterCondition { - return v.Conditions - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) +func (o WebAclAssociationConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfig] { + return pulumix.Output[WebAclAssociationConfig]{ + OutputState: o.OutputState, + } } -// Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. -func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Requirement() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) string { return v.Requirement }).(pulumi.StringOutput) +// Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. +func (o WebAclAssociationConfigOutput) RequestBodies() WebAclAssociationConfigRequestBodyArrayOutput { + return o.ApplyT(func(v WebAclAssociationConfig) []WebAclAssociationConfigRequestBody { return v.RequestBodies }).(WebAclAssociationConfigRequestBodyArrayOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterArrayOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigPtrOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() +func (WebAclAssociationConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclAssociationConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { +func (o WebAclAssociationConfigPtrOutput) ToWebAclAssociationConfigPtrOutput() WebAclAssociationConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { +func (o WebAclAssociationConfigPtrOutput) ToWebAclAssociationConfigPtrOutputWithContext(ctx context.Context) WebAclAssociationConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter] { - return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter]{ +func (o WebAclAssociationConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclAssociationConfig] { + return pulumix.Output[*WebAclAssociationConfig]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationLoggingFilterFilterOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationLoggingFilterFilter { - return vs[0].([]WebAclLoggingConfigurationLoggingFilterFilter)[vs[1].(int)] - }).(WebAclLoggingConfigurationLoggingFilterFilterOutput) +func (o WebAclAssociationConfigPtrOutput) Elem() WebAclAssociationConfigOutput { + return o.ApplyT(func(v *WebAclAssociationConfig) WebAclAssociationConfig { + if v != nil { + return *v + } + var ret WebAclAssociationConfig + return ret + }).(WebAclAssociationConfigOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterCondition struct { - // Configuration for a single action condition. See Action Condition below for more details. - ActionCondition *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition `pulumi:"actionCondition"` - // Condition for a single label name. See Label Name Condition below for more details. - LabelNameCondition *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition `pulumi:"labelNameCondition"` +// Customizes the request body that your protected resource forward to AWS WAF for inspection. See `requestBody` below for details. +func (o WebAclAssociationConfigPtrOutput) RequestBodies() WebAclAssociationConfigRequestBodyArrayOutput { + return o.ApplyT(func(v *WebAclAssociationConfig) []WebAclAssociationConfigRequestBody { + if v == nil { + return nil + } + return v.RequestBodies + }).(WebAclAssociationConfigRequestBodyArrayOutput) } -// WebAclLoggingConfigurationLoggingFilterFilterConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionInput` via: +type WebAclAssociationConfigRequestBody struct { + // Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + Cloudfronts []WebAclAssociationConfigRequestBodyCloudfront `pulumi:"cloudfronts"` +} + +// WebAclAssociationConfigRequestBodyInput is an input type that accepts WebAclAssociationConfigRequestBodyArgs and WebAclAssociationConfigRequestBodyOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterConditionArgs{...} -type WebAclLoggingConfigurationLoggingFilterFilterConditionInput interface { +// WebAclAssociationConfigRequestBodyArgs{...} +type WebAclAssociationConfigRequestBodyInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput + ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput + ToWebAclAssociationConfigRequestBodyOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyOutput } -type WebAclLoggingConfigurationLoggingFilterFilterConditionArgs struct { - // Configuration for a single action condition. See Action Condition below for more details. - ActionCondition WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput `pulumi:"actionCondition"` - // Condition for a single label name. See Label Name Condition below for more details. - LabelNameCondition WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput `pulumi:"labelNameCondition"` +type WebAclAssociationConfigRequestBodyArgs struct { + // Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + Cloudfronts WebAclAssociationConfigRequestBodyCloudfrontArrayInput `pulumi:"cloudfronts"` } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfigRequestBody)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(context.Background()) +func (i WebAclAssociationConfigRequestBodyArgs) ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput { + return i.ToWebAclAssociationConfigRequestBodyOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) +func (i WebAclAssociationConfigRequestBodyArgs) ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyOutput) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx).OutputState, +func (i WebAclAssociationConfigRequestBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBody] { + return pulumix.Output[WebAclAssociationConfigRequestBody]{ + OutputState: i.ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx).OutputState, } } -// WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionArray and WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput` via: +// WebAclAssociationConfigRequestBodyArrayInput is an input type that accepts WebAclAssociationConfigRequestBodyArray and WebAclAssociationConfigRequestBodyArrayOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyArrayInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterConditionArray{ WebAclLoggingConfigurationLoggingFilterFilterConditionArgs{...} } -type WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput interface { +// WebAclAssociationConfigRequestBodyArray{ WebAclAssociationConfigRequestBodyArgs{...} } +type WebAclAssociationConfigRequestBodyArrayInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput + ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput + ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyArrayOutput } -type WebAclLoggingConfigurationLoggingFilterFilterConditionArray []WebAclLoggingConfigurationLoggingFilterFilterConditionInput +type WebAclAssociationConfigRequestBodyArray []WebAclAssociationConfigRequestBodyInput -func (WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclAssociationConfigRequestBody)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(context.Background()) +func (i WebAclAssociationConfigRequestBodyArray) ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput { + return i.ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) +func (i WebAclAssociationConfigRequestBodyArray) ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyArrayOutput) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition] { - return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx).OutputState, +func (i WebAclAssociationConfigRequestBodyArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBody] { + return pulumix.Output[[]WebAclAssociationConfigRequestBody]{ + OutputState: i.ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationLoggingFilterFilterConditionOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigRequestBodyOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfigRequestBody)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { +func (o WebAclAssociationConfigRequestBodyOutput) ToWebAclAssociationConfigRequestBodyOutput() WebAclAssociationConfigRequestBodyOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { +func (o WebAclAssociationConfigRequestBodyOutput) ToWebAclAssociationConfigRequestBodyOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition]{ +func (o WebAclAssociationConfigRequestBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBody] { + return pulumix.Output[WebAclAssociationConfigRequestBody]{ OutputState: o.OutputState, } } -// Configuration for a single action condition. See Action Condition below for more details. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ActionCondition() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { - return v.ActionCondition - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) -} - -// Condition for a single label name. See Label Name Condition below for more details. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) LabelNameCondition() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { - return v.LabelNameCondition - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) +// Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. +func (o WebAclAssociationConfigRequestBodyOutput) Cloudfronts() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { + return o.ApplyT(func(v WebAclAssociationConfigRequestBody) []WebAclAssociationConfigRequestBodyCloudfront { + return v.Cloudfronts + }).(WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigRequestBodyArrayOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclAssociationConfigRequestBody)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { +func (o WebAclAssociationConfigRequestBodyArrayOutput) ToWebAclAssociationConfigRequestBodyArrayOutput() WebAclAssociationConfigRequestBodyArrayOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { +func (o WebAclAssociationConfigRequestBodyArrayOutput) ToWebAclAssociationConfigRequestBodyArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyArrayOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition] { - return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition]{ +func (o WebAclAssociationConfigRequestBodyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBody] { + return pulumix.Output[[]WebAclAssociationConfigRequestBody]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationLoggingFilterFilterCondition { - return vs[0].([]WebAclLoggingConfigurationLoggingFilterFilterCondition)[vs[1].(int)] - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) +func (o WebAclAssociationConfigRequestBodyArrayOutput) Index(i pulumi.IntInput) WebAclAssociationConfigRequestBodyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclAssociationConfigRequestBody { + return vs[0].([]WebAclAssociationConfigRequestBody)[vs[1].(int)] + }).(WebAclAssociationConfigRequestBodyOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition struct { - // Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. - Action string `pulumi:"action"` +type WebAclAssociationConfigRequestBodyCloudfront struct { + // Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + DefaultSizeInspectionLimit string `pulumi:"defaultSizeInspectionLimit"` } -// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput` via: +// WebAclAssociationConfigRequestBodyCloudfrontInput is an input type that accepts WebAclAssociationConfigRequestBodyCloudfrontArgs and WebAclAssociationConfigRequestBodyCloudfrontOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyCloudfrontInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs{...} -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput interface { +// WebAclAssociationConfigRequestBodyCloudfrontArgs{...} +type WebAclAssociationConfigRequestBodyCloudfrontInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput + ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput + ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput } -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs struct { - // Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. - Action pulumi.StringInput `pulumi:"action"` +type WebAclAssociationConfigRequestBodyCloudfrontArgs struct { + // Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + DefaultSizeInspectionLimit pulumi.StringInput `pulumi:"defaultSizeInspectionLimit"` } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyCloudfrontArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(context.Background()) +func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput { + return i.ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) +func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyCloudfrontOutput) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx).OutputState, +func (i WebAclAssociationConfigRequestBodyCloudfrontArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront] { + return pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront]{ + OutputState: i.ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) -} - -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput).ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx) -} - -// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs, WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtr and WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput` via: -// -// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs{...} -// -// or: +// WebAclAssociationConfigRequestBodyCloudfrontArrayInput is an input type that accepts WebAclAssociationConfigRequestBodyCloudfrontArray and WebAclAssociationConfigRequestBodyCloudfrontArrayOutput values. +// You can construct a concrete instance of `WebAclAssociationConfigRequestBodyCloudfrontArrayInput` via: // -// nil -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput interface { +// WebAclAssociationConfigRequestBodyCloudfrontArray{ WebAclAssociationConfigRequestBodyCloudfrontArgs{...} } +type WebAclAssociationConfigRequestBodyCloudfrontArrayInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput + ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput + ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput } -type webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs - -func WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtr(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput { - return (*webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType)(v) -} +type WebAclAssociationConfigRequestBodyCloudfrontArray []WebAclAssociationConfigRequestBodyCloudfrontInput -func (*webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyCloudfrontArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) +func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { + return i.ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) +func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx).OutputState, +func (i WebAclAssociationConfigRequestBodyCloudfrontArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront] { + return pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront]{ + OutputState: i.ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigRequestBodyCloudfrontOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyCloudfrontOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { +func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToWebAclAssociationConfigRequestBodyCloudfrontOutput() WebAclAssociationConfigRequestBodyCloudfrontOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { +func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToWebAclAssociationConfigRequestBodyCloudfrontOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return o.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) -} - -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { - return &v - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) -} - -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ +func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront] { + return pulumix.Output[WebAclAssociationConfigRequestBodyCloudfront]{ OutputState: o.OutputState, } } -// Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) Action() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) string { return v.Action }).(pulumi.StringOutput) +// Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. +func (o WebAclAssociationConfigRequestBodyCloudfrontOutput) DefaultSizeInspectionLimit() pulumi.StringOutput { + return o.ApplyT(func(v WebAclAssociationConfigRequestBodyCloudfront) string { return v.DefaultSizeInspectionLimit }).(pulumi.StringOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput struct{ *pulumi.OutputState } +type WebAclAssociationConfigRequestBodyCloudfrontArrayOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() +func (WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclAssociationConfigRequestBodyCloudfront)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { +func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutput() WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { +func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToWebAclAssociationConfigRequestBodyCloudfrontArrayOutputWithContext(ctx context.Context) WebAclAssociationConfigRequestBodyCloudfrontArrayOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ +func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront] { + return pulumix.Output[[]WebAclAssociationConfigRequestBodyCloudfront]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { - if v != nil { - return *v - } - var ret WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition - return ret - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) -} - -// Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) Action() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) *string { - if v == nil { - return nil - } - return &v.Action - }).(pulumi.StringPtrOutput) +func (o WebAclAssociationConfigRequestBodyCloudfrontArrayOutput) Index(i pulumi.IntInput) WebAclAssociationConfigRequestBodyCloudfrontOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclAssociationConfigRequestBodyCloudfront { + return vs[0].([]WebAclAssociationConfigRequestBodyCloudfront)[vs[1].(int)] + }).(WebAclAssociationConfigRequestBodyCloudfrontOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition struct { - // Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. - LabelName string `pulumi:"labelName"` +type WebAclCaptchaConfig struct { + // Defines custom immunity time. See `immunityTimeProperty` below for details. + ImmunityTimeProperty *WebAclCaptchaConfigImmunityTimeProperty `pulumi:"immunityTimeProperty"` } -// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput` via: +// WebAclCaptchaConfigInput is an input type that accepts WebAclCaptchaConfigArgs and WebAclCaptchaConfigOutput values. +// You can construct a concrete instance of `WebAclCaptchaConfigInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs{...} -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput interface { +// WebAclCaptchaConfigArgs{...} +type WebAclCaptchaConfigInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput + ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput + ToWebAclCaptchaConfigOutputWithContext(context.Context) WebAclCaptchaConfigOutput } -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs struct { - // Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. - LabelName pulumi.StringInput `pulumi:"labelName"` +type WebAclCaptchaConfigArgs struct { + // Defines custom immunity time. See `immunityTimeProperty` below for details. + ImmunityTimeProperty WebAclCaptchaConfigImmunityTimePropertyPtrInput `pulumi:"immunityTimeProperty"` } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() +func (WebAclCaptchaConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCaptchaConfig)(nil)).Elem() } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(context.Background()) +func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput { + return i.ToWebAclCaptchaConfigOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) +func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigOutputWithContext(ctx context.Context) WebAclCaptchaConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigOutput) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx).OutputState, +func (i WebAclCaptchaConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfig] { + return pulumix.Output[WebAclCaptchaConfig]{ + OutputState: i.ToWebAclCaptchaConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) +func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { + return i.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput).ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx) +func (i WebAclCaptchaConfigArgs) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigOutput).ToWebAclCaptchaConfigPtrOutputWithContext(ctx) } -// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs, WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtr and WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput` via: +// WebAclCaptchaConfigPtrInput is an input type that accepts WebAclCaptchaConfigArgs, WebAclCaptchaConfigPtr and WebAclCaptchaConfigPtrOutput values. +// You can construct a concrete instance of `WebAclCaptchaConfigPtrInput` via: // -// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs{...} +// WebAclCaptchaConfigArgs{...} // // or: // // nil -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput interface { +type WebAclCaptchaConfigPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput - ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput + ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput + ToWebAclCaptchaConfigPtrOutputWithContext(context.Context) WebAclCaptchaConfigPtrOutput } -type webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs +type webAclCaptchaConfigPtrType WebAclCaptchaConfigArgs -func WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtr(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput { - return (*webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType)(v) +func WebAclCaptchaConfigPtr(v *WebAclCaptchaConfigArgs) WebAclCaptchaConfigPtrInput { + return (*webAclCaptchaConfigPtrType)(v) } -func (*webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() +func (*webAclCaptchaConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclCaptchaConfig)(nil)).Elem() } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) +func (i *webAclCaptchaConfigPtrType) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { + return i.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) +func (i *webAclCaptchaConfigPtrType) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigPtrOutput) } -func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ - OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx).OutputState, +func (i *webAclCaptchaConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfig] { + return pulumix.Output[*WebAclCaptchaConfig]{ + OutputState: i.ToWebAclCaptchaConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput struct{ *pulumi.OutputState } +type WebAclCaptchaConfigOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() +func (WebAclCaptchaConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCaptchaConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { +func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigOutput() WebAclCaptchaConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { +func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigOutputWithContext(ctx context.Context) WebAclCaptchaConfigOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return o.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) +func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { + return o.ToWebAclCaptchaConfigPtrOutputWithContext(context.Background()) } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { +func (o WebAclCaptchaConfigOutput) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclCaptchaConfig) *WebAclCaptchaConfig { return &v - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) + }).(WebAclCaptchaConfigPtrOutput) } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { - return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ +func (o WebAclCaptchaConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfig] { + return pulumix.Output[WebAclCaptchaConfig]{ OutputState: o.OutputState, } } -// Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) LabelName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) string { - return v.LabelName - }).(pulumi.StringOutput) +// Defines custom immunity time. See `immunityTimeProperty` below for details. +func (o WebAclCaptchaConfigOutput) ImmunityTimeProperty() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyT(func(v WebAclCaptchaConfig) *WebAclCaptchaConfigImmunityTimeProperty { return v.ImmunityTimeProperty }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) } -type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput struct{ *pulumi.OutputState } +type WebAclCaptchaConfigPtrOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() +func (WebAclCaptchaConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclCaptchaConfig)(nil)).Elem() } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { +func (o WebAclCaptchaConfigPtrOutput) ToWebAclCaptchaConfigPtrOutput() WebAclCaptchaConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { +func (o WebAclCaptchaConfigPtrOutput) ToWebAclCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigPtrOutput { return o } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { - return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ +func (o WebAclCaptchaConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfig] { + return pulumix.Output[*WebAclCaptchaConfig]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { +func (o WebAclCaptchaConfigPtrOutput) Elem() WebAclCaptchaConfigOutput { + return o.ApplyT(func(v *WebAclCaptchaConfig) WebAclCaptchaConfig { if v != nil { return *v } - var ret WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition + var ret WebAclCaptchaConfig return ret - }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) + }).(WebAclCaptchaConfigOutput) } -// Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. -func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) LabelName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) *string { +// Defines custom immunity time. See `immunityTimeProperty` below for details. +func (o WebAclCaptchaConfigPtrOutput) ImmunityTimeProperty() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyT(func(v *WebAclCaptchaConfig) *WebAclCaptchaConfigImmunityTimeProperty { if v == nil { return nil } - return &v.LabelName - }).(pulumi.StringPtrOutput) + return v.ImmunityTimeProperty + }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) } -type WebAclLoggingConfigurationRedactedField struct { - // HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclLoggingConfigurationRedactedFieldMethod `pulumi:"method"` - // Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclLoggingConfigurationRedactedFieldQueryString `pulumi:"queryString"` - // "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. - SingleHeader *WebAclLoggingConfigurationRedactedFieldSingleHeader `pulumi:"singleHeader"` - // Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. - UriPath *WebAclLoggingConfigurationRedactedFieldUriPath `pulumi:"uriPath"` +type WebAclCaptchaConfigImmunityTimeProperty struct { + // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + ImmunityTime *int `pulumi:"immunityTime"` } -// WebAclLoggingConfigurationRedactedFieldInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldArgs and WebAclLoggingConfigurationRedactedFieldOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldInput` via: +// WebAclCaptchaConfigImmunityTimePropertyInput is an input type that accepts WebAclCaptchaConfigImmunityTimePropertyArgs and WebAclCaptchaConfigImmunityTimePropertyOutput values. +// You can construct a concrete instance of `WebAclCaptchaConfigImmunityTimePropertyInput` via: // -// WebAclLoggingConfigurationRedactedFieldArgs{...} -type WebAclLoggingConfigurationRedactedFieldInput interface { +// WebAclCaptchaConfigImmunityTimePropertyArgs{...} +type WebAclCaptchaConfigImmunityTimePropertyInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput - ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldOutput + ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput + ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput } -type WebAclLoggingConfigurationRedactedFieldArgs struct { - // HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclLoggingConfigurationRedactedFieldMethodPtrInput `pulumi:"method"` - // Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. - QueryString WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput `pulumi:"queryString"` - // "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. - SingleHeader WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput `pulumi:"singleHeader"` - // Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. - UriPath WebAclLoggingConfigurationRedactedFieldUriPathPtrInput `pulumi:"uriPath"` +type WebAclCaptchaConfigImmunityTimePropertyArgs struct { + // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + ImmunityTime pulumi.IntPtrInput `pulumi:"immunityTime"` } -func (WebAclLoggingConfigurationRedactedFieldArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedField)(nil)).Elem() +func (WebAclCaptchaConfigImmunityTimePropertyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldArgs) ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(context.Background()) +func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput { + return i.ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldArgs) ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldOutput) +func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyOutput) } -func (i WebAclLoggingConfigurationRedactedFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedField] { - return pulumix.Output[WebAclLoggingConfigurationRedactedField]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx).OutputState, +func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty]{ + OutputState: i.ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx).OutputState, } } -// WebAclLoggingConfigurationRedactedFieldArrayInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldArray and WebAclLoggingConfigurationRedactedFieldArrayOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldArrayInput` via: +func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) +} + +func (i WebAclCaptchaConfigImmunityTimePropertyArgs) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyOutput).ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx) +} + +// WebAclCaptchaConfigImmunityTimePropertyPtrInput is an input type that accepts WebAclCaptchaConfigImmunityTimePropertyArgs, WebAclCaptchaConfigImmunityTimePropertyPtr and WebAclCaptchaConfigImmunityTimePropertyPtrOutput values. +// You can construct a concrete instance of `WebAclCaptchaConfigImmunityTimePropertyPtrInput` via: // -// WebAclLoggingConfigurationRedactedFieldArray{ WebAclLoggingConfigurationRedactedFieldArgs{...} } -type WebAclLoggingConfigurationRedactedFieldArrayInput interface { +// WebAclCaptchaConfigImmunityTimePropertyArgs{...} +// +// or: +// +// nil +type WebAclCaptchaConfigImmunityTimePropertyPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput - ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput + ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput + ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput } -type WebAclLoggingConfigurationRedactedFieldArray []WebAclLoggingConfigurationRedactedFieldInput +type webAclCaptchaConfigImmunityTimePropertyPtrType WebAclCaptchaConfigImmunityTimePropertyArgs -func (WebAclLoggingConfigurationRedactedFieldArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationRedactedField)(nil)).Elem() +func WebAclCaptchaConfigImmunityTimePropertyPtr(v *WebAclCaptchaConfigImmunityTimePropertyArgs) WebAclCaptchaConfigImmunityTimePropertyPtrInput { + return (*webAclCaptchaConfigImmunityTimePropertyPtrType)(v) } -func (i WebAclLoggingConfigurationRedactedFieldArray) ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(context.Background()) +func (*webAclCaptchaConfigImmunityTimePropertyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldArray) ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldArrayOutput) +func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationRedactedField] { - return pulumix.Output[[]WebAclLoggingConfigurationRedactedField]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx).OutputState, +func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) +} + +func (i *webAclCaptchaConfigImmunityTimePropertyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty]{ + OutputState: i.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationRedactedFieldOutput struct{ *pulumi.OutputState } +type WebAclCaptchaConfigImmunityTimePropertyOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedField)(nil)).Elem() +func (WebAclCaptchaConfigImmunityTimePropertyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldOutput) ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput { +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyOutput() WebAclCaptchaConfigImmunityTimePropertyOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldOutput) ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldOutput { +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedField] { - return pulumix.Output[WebAclLoggingConfigurationRedactedField]{ - OutputState: o.OutputState, - } -} - -// HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclLoggingConfigurationRedactedFieldOutput) Method() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldMethod { - return v.Method - }).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) } -// Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. -func (o WebAclLoggingConfigurationRedactedFieldOutput) QueryString() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldQueryString { - return v.QueryString - }).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclCaptchaConfigImmunityTimeProperty) *WebAclCaptchaConfigImmunityTimeProperty { + return &v + }).(WebAclCaptchaConfigImmunityTimePropertyPtrOutput) } -// "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. -func (o WebAclLoggingConfigurationRedactedFieldOutput) SingleHeader() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldSingleHeader { - return v.SingleHeader - }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[WebAclCaptchaConfigImmunityTimeProperty]{ + OutputState: o.OutputState, + } } -// Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. -func (o WebAclLoggingConfigurationRedactedFieldOutput) UriPath() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldUriPath { - return v.UriPath - }).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) +// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. +func (o WebAclCaptchaConfigImmunityTimePropertyOutput) ImmunityTime() pulumi.IntPtrOutput { + return o.ApplyT(func(v WebAclCaptchaConfigImmunityTimeProperty) *int { return v.ImmunityTime }).(pulumi.IntPtrOutput) } -type WebAclLoggingConfigurationRedactedFieldArrayOutput struct{ *pulumi.OutputState } +type WebAclCaptchaConfigImmunityTimePropertyPtrOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclLoggingConfigurationRedactedField)(nil)).Elem() +func (WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput { +func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutput() WebAclCaptchaConfigImmunityTimePropertyPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput { +func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclCaptchaConfigImmunityTimePropertyPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationRedactedField] { - return pulumix.Output[[]WebAclLoggingConfigurationRedactedField]{ +func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[*WebAclCaptchaConfigImmunityTimeProperty]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationRedactedFieldOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationRedactedField { - return vs[0].([]WebAclLoggingConfigurationRedactedField)[vs[1].(int)] - }).(WebAclLoggingConfigurationRedactedFieldOutput) +func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) Elem() WebAclCaptchaConfigImmunityTimePropertyOutput { + return o.ApplyT(func(v *WebAclCaptchaConfigImmunityTimeProperty) WebAclCaptchaConfigImmunityTimeProperty { + if v != nil { + return *v + } + var ret WebAclCaptchaConfigImmunityTimeProperty + return ret + }).(WebAclCaptchaConfigImmunityTimePropertyOutput) } -type WebAclLoggingConfigurationRedactedFieldMethod struct { +// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. +func (o WebAclCaptchaConfigImmunityTimePropertyPtrOutput) ImmunityTime() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclCaptchaConfigImmunityTimeProperty) *int { + if v == nil { + return nil + } + return v.ImmunityTime + }).(pulumi.IntPtrOutput) } -// WebAclLoggingConfigurationRedactedFieldMethodInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldMethodArgs and WebAclLoggingConfigurationRedactedFieldMethodOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldMethodInput` via: +type WebAclCustomResponseBody struct { + // Payload of the custom response. + Content string `pulumi:"content"` + // Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + ContentType string `pulumi:"contentType"` + // Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. + Key string `pulumi:"key"` +} + +// WebAclCustomResponseBodyInput is an input type that accepts WebAclCustomResponseBodyArgs and WebAclCustomResponseBodyOutput values. +// You can construct a concrete instance of `WebAclCustomResponseBodyInput` via: // -// WebAclLoggingConfigurationRedactedFieldMethodArgs{...} -type WebAclLoggingConfigurationRedactedFieldMethodInput interface { +// WebAclCustomResponseBodyArgs{...} +type WebAclCustomResponseBodyInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput - ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput + ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput + ToWebAclCustomResponseBodyOutputWithContext(context.Context) WebAclCustomResponseBodyOutput } -type WebAclLoggingConfigurationRedactedFieldMethodArgs struct { +type WebAclCustomResponseBodyArgs struct { + // Payload of the custom response. + Content pulumi.StringInput `pulumi:"content"` + // Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + ContentType pulumi.StringInput `pulumi:"contentType"` + // Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. + Key pulumi.StringInput `pulumi:"key"` } -func (WebAclLoggingConfigurationRedactedFieldMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() +func (WebAclCustomResponseBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCustomResponseBody)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(context.Background()) +func (i WebAclCustomResponseBodyArgs) ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput { + return i.ToWebAclCustomResponseBodyOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodOutput) +func (i WebAclCustomResponseBodyArgs) ToWebAclCustomResponseBodyOutputWithContext(ctx context.Context) WebAclCustomResponseBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCustomResponseBodyOutput) } -func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx).OutputState, +func (i WebAclCustomResponseBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclCustomResponseBody] { + return pulumix.Output[WebAclCustomResponseBody]{ + OutputState: i.ToWebAclCustomResponseBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) -} - -func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodOutput).ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx) -} - -// WebAclLoggingConfigurationRedactedFieldMethodPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldMethodArgs, WebAclLoggingConfigurationRedactedFieldMethodPtr and WebAclLoggingConfigurationRedactedFieldMethodPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldMethodPtrInput` via: -// -// WebAclLoggingConfigurationRedactedFieldMethodArgs{...} -// -// or: +// WebAclCustomResponseBodyArrayInput is an input type that accepts WebAclCustomResponseBodyArray and WebAclCustomResponseBodyArrayOutput values. +// You can construct a concrete instance of `WebAclCustomResponseBodyArrayInput` via: // -// nil -type WebAclLoggingConfigurationRedactedFieldMethodPtrInput interface { +// WebAclCustomResponseBodyArray{ WebAclCustomResponseBodyArgs{...} } +type WebAclCustomResponseBodyArrayInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput - ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput + ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput + ToWebAclCustomResponseBodyArrayOutputWithContext(context.Context) WebAclCustomResponseBodyArrayOutput } -type webAclLoggingConfigurationRedactedFieldMethodPtrType WebAclLoggingConfigurationRedactedFieldMethodArgs - -func WebAclLoggingConfigurationRedactedFieldMethodPtr(v *WebAclLoggingConfigurationRedactedFieldMethodArgs) WebAclLoggingConfigurationRedactedFieldMethodPtrInput { - return (*webAclLoggingConfigurationRedactedFieldMethodPtrType)(v) -} +type WebAclCustomResponseBodyArray []WebAclCustomResponseBodyInput -func (*webAclLoggingConfigurationRedactedFieldMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() +func (WebAclCustomResponseBodyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclCustomResponseBody)(nil)).Elem() } -func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) +func (i WebAclCustomResponseBodyArray) ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput { + return i.ToWebAclCustomResponseBodyArrayOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) +func (i WebAclCustomResponseBodyArray) ToWebAclCustomResponseBodyArrayOutputWithContext(ctx context.Context) WebAclCustomResponseBodyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclCustomResponseBodyArrayOutput) } -func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx).OutputState, +func (i WebAclCustomResponseBodyArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclCustomResponseBody] { + return pulumix.Output[[]WebAclCustomResponseBody]{ + OutputState: i.ToWebAclCustomResponseBodyArrayOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationRedactedFieldMethodOutput struct{ *pulumi.OutputState } +type WebAclCustomResponseBodyOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() +func (WebAclCustomResponseBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclCustomResponseBody)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput { +func (o WebAclCustomResponseBodyOutput) ToWebAclCustomResponseBodyOutput() WebAclCustomResponseBodyOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput { +func (o WebAclCustomResponseBodyOutput) ToWebAclCustomResponseBodyOutputWithContext(ctx context.Context) WebAclCustomResponseBodyOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return o.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) +func (o WebAclCustomResponseBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclCustomResponseBody] { + return pulumix.Output[WebAclCustomResponseBody]{ + OutputState: o.OutputState, + } } -func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldMethod) *WebAclLoggingConfigurationRedactedFieldMethod { - return &v - }).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) +// Payload of the custom response. +func (o WebAclCustomResponseBodyOutput) Content() pulumi.StringOutput { + return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.Content }).(pulumi.StringOutput) } -func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod]{ - OutputState: o.OutputState, - } +// Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. +func (o WebAclCustomResponseBodyOutput) ContentType() pulumi.StringOutput { + return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.ContentType }).(pulumi.StringOutput) } -type WebAclLoggingConfigurationRedactedFieldMethodPtrOutput struct{ *pulumi.OutputState } +// Unique key identifying the custom response body. This is referenced by the `customResponseBodyKey` argument in the `customResponse` block. +func (o WebAclCustomResponseBodyOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v WebAclCustomResponseBody) string { return v.Key }).(pulumi.StringOutput) +} -func (WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() +type WebAclCustomResponseBodyArrayOutput struct{ *pulumi.OutputState } + +func (WebAclCustomResponseBodyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclCustomResponseBody)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { +func (o WebAclCustomResponseBodyArrayOutput) ToWebAclCustomResponseBodyArrayOutput() WebAclCustomResponseBodyArrayOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { +func (o WebAclCustomResponseBodyArrayOutput) ToWebAclCustomResponseBodyArrayOutputWithContext(ctx context.Context) WebAclCustomResponseBodyArrayOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod]{ +func (o WebAclCustomResponseBodyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclCustomResponseBody] { + return pulumix.Output[[]WebAclCustomResponseBody]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldMethodOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldMethod) WebAclLoggingConfigurationRedactedFieldMethod { - if v != nil { - return *v - } - var ret WebAclLoggingConfigurationRedactedFieldMethod - return ret - }).(WebAclLoggingConfigurationRedactedFieldMethodOutput) +func (o WebAclCustomResponseBodyArrayOutput) Index(i pulumi.IntInput) WebAclCustomResponseBodyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclCustomResponseBody { + return vs[0].([]WebAclCustomResponseBody)[vs[1].(int)] + }).(WebAclCustomResponseBodyOutput) } -type WebAclLoggingConfigurationRedactedFieldQueryString struct { +type WebAclDefaultAction struct { + // Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Allow *WebAclDefaultActionAllow `pulumi:"allow"` + // Specifies that AWS WAF should block requests by default. See `block` below for details. + Block *WebAclDefaultActionBlock `pulumi:"block"` } -// WebAclLoggingConfigurationRedactedFieldQueryStringInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldQueryStringArgs and WebAclLoggingConfigurationRedactedFieldQueryStringOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldQueryStringInput` via: +// WebAclDefaultActionInput is an input type that accepts WebAclDefaultActionArgs and WebAclDefaultActionOutput values. +// You can construct a concrete instance of `WebAclDefaultActionInput` via: // -// WebAclLoggingConfigurationRedactedFieldQueryStringArgs{...} -type WebAclLoggingConfigurationRedactedFieldQueryStringInput interface { +// WebAclDefaultActionArgs{...} +type WebAclDefaultActionInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput - ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput + ToWebAclDefaultActionOutput() WebAclDefaultActionOutput + ToWebAclDefaultActionOutputWithContext(context.Context) WebAclDefaultActionOutput } -type WebAclLoggingConfigurationRedactedFieldQueryStringArgs struct { +type WebAclDefaultActionArgs struct { + // Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Allow WebAclDefaultActionAllowPtrInput `pulumi:"allow"` + // Specifies that AWS WAF should block requests by default. See `block` below for details. + Block WebAclDefaultActionBlockPtrInput `pulumi:"block"` } -func (WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() +func (WebAclDefaultActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultAction)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(context.Background()) +func (i WebAclDefaultActionArgs) ToWebAclDefaultActionOutput() WebAclDefaultActionOutput { + return i.ToWebAclDefaultActionOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput) +func (i WebAclDefaultActionArgs) ToWebAclDefaultActionOutputWithContext(ctx context.Context) WebAclDefaultActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionOutput) } -func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultAction] { + return pulumix.Output[WebAclDefaultAction]{ + OutputState: i.ToWebAclDefaultActionOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionArgs) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { + return i.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput).ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx) +func (i WebAclDefaultActionArgs) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionOutput).ToWebAclDefaultActionPtrOutputWithContext(ctx) } -// WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldQueryStringArgs, WebAclLoggingConfigurationRedactedFieldQueryStringPtr and WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput` via: +// WebAclDefaultActionPtrInput is an input type that accepts WebAclDefaultActionArgs, WebAclDefaultActionPtr and WebAclDefaultActionPtrOutput values. +// You can construct a concrete instance of `WebAclDefaultActionPtrInput` via: // -// WebAclLoggingConfigurationRedactedFieldQueryStringArgs{...} +// WebAclDefaultActionArgs{...} // // or: // // nil -type WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput interface { +type WebAclDefaultActionPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput - ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput + ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput + ToWebAclDefaultActionPtrOutputWithContext(context.Context) WebAclDefaultActionPtrOutput } -type webAclLoggingConfigurationRedactedFieldQueryStringPtrType WebAclLoggingConfigurationRedactedFieldQueryStringArgs +type webAclDefaultActionPtrType WebAclDefaultActionArgs -func WebAclLoggingConfigurationRedactedFieldQueryStringPtr(v *WebAclLoggingConfigurationRedactedFieldQueryStringArgs) WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput { - return (*webAclLoggingConfigurationRedactedFieldQueryStringPtrType)(v) +func WebAclDefaultActionPtr(v *WebAclDefaultActionArgs) WebAclDefaultActionPtrInput { + return (*webAclDefaultActionPtrType)(v) } -func (*webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() +func (*webAclDefaultActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultAction)(nil)).Elem() } -func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclDefaultActionPtrType) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { + return i.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) +func (i *webAclDefaultActionPtrType) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionPtrOutput) } -func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclDefaultActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultAction] { + return pulumix.Output[*WebAclDefaultAction]{ + OutputState: i.ToWebAclDefaultActionPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationRedactedFieldQueryStringOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() +func (WebAclDefaultActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultAction)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { +func (o WebAclDefaultActionOutput) ToWebAclDefaultActionOutput() WebAclDefaultActionOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput { +func (o WebAclDefaultActionOutput) ToWebAclDefaultActionOutputWithContext(ctx context.Context) WebAclDefaultActionOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return o.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclDefaultActionOutput) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { + return o.ToWebAclDefaultActionPtrOutputWithContext(context.Background()) } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldQueryString) *WebAclLoggingConfigurationRedactedFieldQueryString { +func (o WebAclDefaultActionOutput) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultAction) *WebAclDefaultAction { return &v - }).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) + }).(WebAclDefaultActionPtrOutput) } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString]{ +func (o WebAclDefaultActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultAction] { + return pulumix.Output[WebAclDefaultAction]{ OutputState: o.OutputState, } } -type WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput struct{ *pulumi.OutputState } +// Specifies that AWS WAF should allow requests by default. See `allow` below for details. +func (o WebAclDefaultActionOutput) Allow() WebAclDefaultActionAllowPtrOutput { + return o.ApplyT(func(v WebAclDefaultAction) *WebAclDefaultActionAllow { return v.Allow }).(WebAclDefaultActionAllowPtrOutput) +} -func (WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() +// Specifies that AWS WAF should block requests by default. See `block` below for details. +func (o WebAclDefaultActionOutput) Block() WebAclDefaultActionBlockPtrOutput { + return o.ApplyT(func(v WebAclDefaultAction) *WebAclDefaultActionBlock { return v.Block }).(WebAclDefaultActionBlockPtrOutput) } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { +type WebAclDefaultActionPtrOutput struct{ *pulumi.OutputState } + +func (WebAclDefaultActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultAction)(nil)).Elem() +} + +func (o WebAclDefaultActionPtrOutput) ToWebAclDefaultActionPtrOutput() WebAclDefaultActionPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { +func (o WebAclDefaultActionPtrOutput) ToWebAclDefaultActionPtrOutputWithContext(ctx context.Context) WebAclDefaultActionPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString]{ +func (o WebAclDefaultActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultAction] { + return pulumix.Output[*WebAclDefaultAction]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldQueryString) WebAclLoggingConfigurationRedactedFieldQueryString { +func (o WebAclDefaultActionPtrOutput) Elem() WebAclDefaultActionOutput { + return o.ApplyT(func(v *WebAclDefaultAction) WebAclDefaultAction { if v != nil { return *v } - var ret WebAclLoggingConfigurationRedactedFieldQueryString + var ret WebAclDefaultAction return ret - }).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput) + }).(WebAclDefaultActionOutput) } -type WebAclLoggingConfigurationRedactedFieldSingleHeader struct { - // Name of the query header to redact. This setting must be provided in lowercase characters. - Name string `pulumi:"name"` +// Specifies that AWS WAF should allow requests by default. See `allow` below for details. +func (o WebAclDefaultActionPtrOutput) Allow() WebAclDefaultActionAllowPtrOutput { + return o.ApplyT(func(v *WebAclDefaultAction) *WebAclDefaultActionAllow { + if v == nil { + return nil + } + return v.Allow + }).(WebAclDefaultActionAllowPtrOutput) } -// WebAclLoggingConfigurationRedactedFieldSingleHeaderInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs and WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldSingleHeaderInput` via: +// Specifies that AWS WAF should block requests by default. See `block` below for details. +func (o WebAclDefaultActionPtrOutput) Block() WebAclDefaultActionBlockPtrOutput { + return o.ApplyT(func(v *WebAclDefaultAction) *WebAclDefaultActionBlock { + if v == nil { + return nil + } + return v.Block + }).(WebAclDefaultActionBlockPtrOutput) +} + +type WebAclDefaultActionAllow struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclDefaultActionAllowCustomRequestHandling `pulumi:"customRequestHandling"` +} + +// WebAclDefaultActionAllowInput is an input type that accepts WebAclDefaultActionAllowArgs and WebAclDefaultActionAllowOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowInput` via: // -// WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs{...} -type WebAclLoggingConfigurationRedactedFieldSingleHeaderInput interface { +// WebAclDefaultActionAllowArgs{...} +type WebAclDefaultActionAllowInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput - ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput + ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput + ToWebAclDefaultActionAllowOutputWithContext(context.Context) WebAclDefaultActionAllowOutput } -type WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs struct { - // Name of the query header to redact. This setting must be provided in lowercase characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclDefaultActionAllowArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclDefaultActionAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() +func (WebAclDefaultActionAllowArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllow)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput { + return i.ToWebAclDefaultActionAllowOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) +func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowOutputWithContext(ctx context.Context) WebAclDefaultActionAllowOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowOutput) } -func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllow] { + return pulumix.Output[WebAclDefaultActionAllow]{ + OutputState: i.ToWebAclDefaultActionAllowOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { + return i.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput).ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclDefaultActionAllowArgs) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowOutput).ToWebAclDefaultActionAllowPtrOutputWithContext(ctx) } -// WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs, WebAclLoggingConfigurationRedactedFieldSingleHeaderPtr and WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput` via: +// WebAclDefaultActionAllowPtrInput is an input type that accepts WebAclDefaultActionAllowArgs, WebAclDefaultActionAllowPtr and WebAclDefaultActionAllowPtrOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowPtrInput` via: // -// WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs{...} +// WebAclDefaultActionAllowArgs{...} // // or: // // nil -type WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput interface { +type WebAclDefaultActionAllowPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput - ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput + ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput + ToWebAclDefaultActionAllowPtrOutputWithContext(context.Context) WebAclDefaultActionAllowPtrOutput } -type webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs +type webAclDefaultActionAllowPtrType WebAclDefaultActionAllowArgs -func WebAclLoggingConfigurationRedactedFieldSingleHeaderPtr(v *WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput { - return (*webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType)(v) +func WebAclDefaultActionAllowPtr(v *WebAclDefaultActionAllowArgs) WebAclDefaultActionAllowPtrInput { + return (*webAclDefaultActionAllowPtrType)(v) } -func (*webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() +func (*webAclDefaultActionAllowPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionAllow)(nil)).Elem() } -func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclDefaultActionAllowPtrType) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { + return i.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) +func (i *webAclDefaultActionAllowPtrType) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowPtrOutput) } -func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclDefaultActionAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllow] { + return pulumix.Output[*WebAclDefaultActionAllow]{ + OutputState: i.ToWebAclDefaultActionAllowPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionAllowOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() +func (WebAclDefaultActionAllowOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllow)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { +func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowOutput() WebAclDefaultActionAllowOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { +func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowOutputWithContext(ctx context.Context) WebAclDefaultActionAllowOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return o.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { + return o.ToWebAclDefaultActionAllowPtrOutputWithContext(context.Background()) } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldSingleHeader) *WebAclLoggingConfigurationRedactedFieldSingleHeader { +func (o WebAclDefaultActionAllowOutput) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionAllow) *WebAclDefaultActionAllow { return &v - }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) + }).(WebAclDefaultActionAllowPtrOutput) } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader]{ +func (o WebAclDefaultActionAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllow] { + return pulumix.Output[WebAclDefaultActionAllow]{ OutputState: o.OutputState, } } -// Name of the query header to redact. This setting must be provided in lowercase characters. -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclLoggingConfigurationRedactedFieldSingleHeader) string { return v.Name }).(pulumi.StringOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclDefaultActionAllowOutput) CustomRequestHandling() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclDefaultActionAllow) *WebAclDefaultActionAllowCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) } -type WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionAllowPtrOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() +func (WebAclDefaultActionAllowPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionAllow)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { +func (o WebAclDefaultActionAllowPtrOutput) ToWebAclDefaultActionAllowPtrOutput() WebAclDefaultActionAllowPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { +func (o WebAclDefaultActionAllowPtrOutput) ToWebAclDefaultActionAllowPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader]{ +func (o WebAclDefaultActionAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllow] { + return pulumix.Output[*WebAclDefaultActionAllow]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldSingleHeader) WebAclLoggingConfigurationRedactedFieldSingleHeader { +func (o WebAclDefaultActionAllowPtrOutput) Elem() WebAclDefaultActionAllowOutput { + return o.ApplyT(func(v *WebAclDefaultActionAllow) WebAclDefaultActionAllow { if v != nil { return *v } - var ret WebAclLoggingConfigurationRedactedFieldSingleHeader + var ret WebAclDefaultActionAllow return ret - }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) + }).(WebAclDefaultActionAllowOutput) } -// Name of the query header to redact. This setting must be provided in lowercase characters. -func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldSingleHeader) *string { +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclDefaultActionAllowPtrOutput) CustomRequestHandling() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclDefaultActionAllow) *WebAclDefaultActionAllowCustomRequestHandling { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.CustomRequestHandling + }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) } -type WebAclLoggingConfigurationRedactedFieldUriPath struct { +type WebAclDefaultActionAllowCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// WebAclLoggingConfigurationRedactedFieldUriPathInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldUriPathArgs and WebAclLoggingConfigurationRedactedFieldUriPathOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldUriPathInput` via: +// WebAclDefaultActionAllowCustomRequestHandlingInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingArgs and WebAclDefaultActionAllowCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInput` via: // -// WebAclLoggingConfigurationRedactedFieldUriPathArgs{...} -type WebAclLoggingConfigurationRedactedFieldUriPathInput interface { +// WebAclDefaultActionAllowCustomRequestHandlingArgs{...} +type WebAclDefaultActionAllowCustomRequestHandlingInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput - ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput + ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput + ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput } -type WebAclLoggingConfigurationRedactedFieldUriPathArgs struct { +type WebAclDefaultActionAllowCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclLoggingConfigurationRedactedFieldUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() } -func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput { + return i.ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathOutput) +func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingOutput) } -func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling] { + return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling]{ + OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathOutput).ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx) +func (i WebAclDefaultActionAllowCustomRequestHandlingArgs) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingOutput).ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclLoggingConfigurationRedactedFieldUriPathPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldUriPathArgs, WebAclLoggingConfigurationRedactedFieldUriPathPtr and WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldUriPathPtrInput` via: +// WebAclDefaultActionAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingArgs, WebAclDefaultActionAllowCustomRequestHandlingPtr and WebAclDefaultActionAllowCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingPtrInput` via: // -// WebAclLoggingConfigurationRedactedFieldUriPathArgs{...} +// WebAclDefaultActionAllowCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclLoggingConfigurationRedactedFieldUriPathPtrInput interface { +type WebAclDefaultActionAllowCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput - ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput + ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput + ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput } -type webAclLoggingConfigurationRedactedFieldUriPathPtrType WebAclLoggingConfigurationRedactedFieldUriPathArgs +type webAclDefaultActionAllowCustomRequestHandlingPtrType WebAclDefaultActionAllowCustomRequestHandlingArgs -func WebAclLoggingConfigurationRedactedFieldUriPathPtr(v *WebAclLoggingConfigurationRedactedFieldUriPathArgs) WebAclLoggingConfigurationRedactedFieldUriPathPtrInput { - return (*webAclLoggingConfigurationRedactedFieldUriPathPtrType)(v) +func WebAclDefaultActionAllowCustomRequestHandlingPtr(v *WebAclDefaultActionAllowCustomRequestHandlingArgs) WebAclDefaultActionAllowCustomRequestHandlingPtrInput { + return (*webAclDefaultActionAllowCustomRequestHandlingPtrType)(v) } -func (*webAclLoggingConfigurationRedactedFieldUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() +func (*webAclDefaultActionAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() } -func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) +func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) +func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) } -func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath]{ - OutputState: i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclDefaultActionAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling] { + return pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling]{ + OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclLoggingConfigurationRedactedFieldUriPathOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclLoggingConfigurationRedactedFieldUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingOutput() WebAclDefaultActionAllowCustomRequestHandlingOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return o.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return o.ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldUriPath) *WebAclLoggingConfigurationRedactedFieldUriPath { +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionAllowCustomRequestHandling) *WebAclDefaultActionAllowCustomRequestHandling { return &v - }).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) + }).(WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) } -func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath] { - return pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath]{ +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling] { + return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -type WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput struct{ *pulumi.OutputState } +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclDefaultActionAllowCustomRequestHandlingOutput) InsertHeaders() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandling) []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +} -func (WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() +type WebAclDefaultActionAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } + +func (WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionAllowCustomRequestHandling)(nil)).Elem() } -func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutput() WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToWebAclDefaultActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath] { - return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath]{ +func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling] { + return pulumix.Output[*WebAclDefaultActionAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldUriPathOutput { - return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldUriPath) WebAclLoggingConfigurationRedactedFieldUriPath { +func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) Elem() WebAclDefaultActionAllowCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclDefaultActionAllowCustomRequestHandling) WebAclDefaultActionAllowCustomRequestHandling { if v != nil { return *v } - var ret WebAclLoggingConfigurationRedactedFieldUriPath + var ret WebAclDefaultActionAllowCustomRequestHandling return ret - }).(WebAclLoggingConfigurationRedactedFieldUriPathOutput) + }).(WebAclDefaultActionAllowCustomRequestHandlingOutput) } -type WebAclRule struct { - // Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. - Action *WebAclRuleAction `pulumi:"action"` - // Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. - CaptchaConfig *WebAclRuleCaptchaConfig `pulumi:"captchaConfig"` - // Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclDefaultActionAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclDefaultActionAllowCustomRequestHandling) []WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { + if v == nil { + return nil + } + return v.InsertHeaders + }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +} + +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. Name string `pulumi:"name"` - // Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. - OverrideAction *WebAclRuleOverrideAction `pulumi:"overrideAction"` - // If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. - Priority int `pulumi:"priority"` - // Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. - RuleLabels []WebAclRuleRuleLabel `pulumi:"ruleLabels"` - // The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. - Statement WebAclRuleStatement `pulumi:"statement"` - // Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. - VisibilityConfig WebAclRuleVisibilityConfig `pulumi:"visibilityConfig"` + // Value of the custom header. + Value string `pulumi:"value"` } -// WebAclRuleInput is an input type that accepts WebAclRuleArgs and WebAclRuleOutput values. -// You can construct a concrete instance of `WebAclRuleInput` via: +// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs and WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleArgs{...} -type WebAclRuleInput interface { +// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs{...} +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleOutput() WebAclRuleOutput - ToWebAclRuleOutputWithContext(context.Context) WebAclRuleOutput + ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput + ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleArgs struct { - // Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. - Action WebAclRuleActionPtrInput `pulumi:"action"` - // Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. - CaptchaConfig WebAclRuleCaptchaConfigPtrInput `pulumi:"captchaConfig"` - // Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. Name pulumi.StringInput `pulumi:"name"` - // Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. - OverrideAction WebAclRuleOverrideActionPtrInput `pulumi:"overrideAction"` - // If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. - Priority pulumi.IntInput `pulumi:"priority"` - // Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. - RuleLabels WebAclRuleRuleLabelArrayInput `pulumi:"ruleLabels"` - // The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. - Statement WebAclRuleStatementInput `pulumi:"statement"` - // Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. - VisibilityConfig WebAclRuleVisibilityConfigInput `pulumi:"visibilityConfig"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRule)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleArgs) ToWebAclRuleOutput() WebAclRuleOutput { - return i.ToWebAclRuleOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleArgs) ToWebAclRuleOutputWithContext(ctx context.Context) WebAclRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOutput) +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRule] { - return pulumix.Output[WebAclRule]{ - OutputState: i.ToWebAclRuleOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -// WebAclRuleArrayInput is an input type that accepts WebAclRuleArray and WebAclRuleArrayOutput values. -// You can construct a concrete instance of `WebAclRuleArrayInput` via: +// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray and WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput` via: // -// WebAclRuleArray{ WebAclRuleArgs{...} } -type WebAclRuleArrayInput interface { +// WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray{ WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleArrayOutput() WebAclRuleArrayOutput - ToWebAclRuleArrayOutputWithContext(context.Context) WebAclRuleArrayOutput + ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput } -type WebAclRuleArray []WebAclRuleInput +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray []WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderInput -func (WebAclRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRule)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleArray) ToWebAclRuleArrayOutput() WebAclRuleArrayOutput { - return i.ToWebAclRuleArrayOutputWithContext(context.Background()) +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i WebAclRuleArray) ToWebAclRuleArrayOutputWithContext(ctx context.Context) WebAclRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleArrayOutput) +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) } -func (i WebAclRuleArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRule] { - return pulumix.Output[[]WebAclRule]{ - OutputState: i.ToWebAclRuleArrayOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRule)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleOutput) ToWebAclRuleOutput() WebAclRuleOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleOutput) ToWebAclRuleOutputWithContext(ctx context.Context) WebAclRuleOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRule] { - return pulumix.Output[WebAclRule]{ +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -// Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. -func (o WebAclRuleOutput) Action() WebAclRuleActionPtrOutput { - return o.ApplyT(func(v WebAclRule) *WebAclRuleAction { return v.Action }).(WebAclRuleActionPtrOutput) -} - -// Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. -func (o WebAclRuleOutput) CaptchaConfig() WebAclRuleCaptchaConfigPtrOutput { - return o.ApplyT(func(v WebAclRule) *WebAclRuleCaptchaConfig { return v.CaptchaConfig }).(WebAclRuleCaptchaConfigPtrOutput) -} - -// Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. -func (o WebAclRuleOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRule) string { return v.Name }).(pulumi.StringOutput) -} - -// Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. -func (o WebAclRuleOutput) OverrideAction() WebAclRuleOverrideActionPtrOutput { - return o.ApplyT(func(v WebAclRule) *WebAclRuleOverrideAction { return v.OverrideAction }).(WebAclRuleOverrideActionPtrOutput) -} - -// If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. -func (o WebAclRuleOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRule) int { return v.Priority }).(pulumi.IntOutput) -} - -// Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. -func (o WebAclRuleOutput) RuleLabels() WebAclRuleRuleLabelArrayOutput { - return o.ApplyT(func(v WebAclRule) []WebAclRuleRuleLabel { return v.RuleLabels }).(WebAclRuleRuleLabelArrayOutput) -} - -// The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. -func (o WebAclRuleOutput) Statement() WebAclRuleStatementOutput { - return o.ApplyT(func(v WebAclRule) WebAclRuleStatement { return v.Statement }).(WebAclRuleStatementOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) } -// Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. -func (o WebAclRuleOutput) VisibilityConfig() WebAclRuleVisibilityConfigOutput { - return o.ApplyT(func(v WebAclRule) WebAclRuleVisibilityConfig { return v.VisibilityConfig }).(WebAclRuleVisibilityConfigOutput) +// Value of the custom header. +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclDefaultActionAllowCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) } -type WebAclRuleArrayOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRule)(nil)).Elem() +func (WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleArrayOutput) ToWebAclRuleArrayOutput() WebAclRuleArrayOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleArrayOutput) ToWebAclRuleArrayOutputWithContext(ctx context.Context) WebAclRuleArrayOutput { +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRule] { - return pulumix.Output[[]WebAclRule]{ +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleArrayOutput) Index(i pulumi.IntInput) WebAclRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRule { - return vs[0].([]WebAclRule)[vs[1].(int)] - }).(WebAclRuleOutput) +func (o WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclDefaultActionAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleAction struct { - // Instructs AWS WAF to allow the web request. See `allow` below for details. - Allow *WebAclRuleActionAllow `pulumi:"allow"` - // Instructs AWS WAF to block the web request. See `block` below for details. - Block *WebAclRuleActionBlock `pulumi:"block"` - // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - Captcha *WebAclRuleActionCaptcha `pulumi:"captcha"` - // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - Challenge *WebAclRuleActionChallenge `pulumi:"challenge"` - // Instructs AWS WAF to count the web request and allow it. See `count` below for details. - Count *WebAclRuleActionCount `pulumi:"count"` +type WebAclDefaultActionBlock struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse *WebAclDefaultActionBlockCustomResponse `pulumi:"customResponse"` } -// WebAclRuleActionInput is an input type that accepts WebAclRuleActionArgs and WebAclRuleActionOutput values. -// You can construct a concrete instance of `WebAclRuleActionInput` via: +// WebAclDefaultActionBlockInput is an input type that accepts WebAclDefaultActionBlockArgs and WebAclDefaultActionBlockOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockInput` via: // -// WebAclRuleActionArgs{...} -type WebAclRuleActionInput interface { +// WebAclDefaultActionBlockArgs{...} +type WebAclDefaultActionBlockInput interface { pulumi.Input - ToWebAclRuleActionOutput() WebAclRuleActionOutput - ToWebAclRuleActionOutputWithContext(context.Context) WebAclRuleActionOutput + ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput + ToWebAclDefaultActionBlockOutputWithContext(context.Context) WebAclDefaultActionBlockOutput } -type WebAclRuleActionArgs struct { - // Instructs AWS WAF to allow the web request. See `allow` below for details. - Allow WebAclRuleActionAllowPtrInput `pulumi:"allow"` - // Instructs AWS WAF to block the web request. See `block` below for details. - Block WebAclRuleActionBlockPtrInput `pulumi:"block"` - // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - Captcha WebAclRuleActionCaptchaPtrInput `pulumi:"captcha"` - // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - Challenge WebAclRuleActionChallengePtrInput `pulumi:"challenge"` - // Instructs AWS WAF to count the web request and allow it. See `count` below for details. - Count WebAclRuleActionCountPtrInput `pulumi:"count"` +type WebAclDefaultActionBlockArgs struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse WebAclDefaultActionBlockCustomResponsePtrInput `pulumi:"customResponse"` } -func (WebAclRuleActionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleAction)(nil)).Elem() +func (WebAclDefaultActionBlockArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlock)(nil)).Elem() } -func (i WebAclRuleActionArgs) ToWebAclRuleActionOutput() WebAclRuleActionOutput { - return i.ToWebAclRuleActionOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput { + return i.ToWebAclDefaultActionBlockOutputWithContext(context.Background()) } -func (i WebAclRuleActionArgs) ToWebAclRuleActionOutputWithContext(ctx context.Context) WebAclRuleActionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionOutput) +func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockOutputWithContext(ctx context.Context) WebAclDefaultActionBlockOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockOutput) } -func (i WebAclRuleActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleAction] { - return pulumix.Output[WebAclRuleAction]{ - OutputState: i.ToWebAclRuleActionOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlock] { + return pulumix.Output[WebAclDefaultActionBlock]{ + OutputState: i.ToWebAclDefaultActionBlockOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionArgs) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { - return i.ToWebAclRuleActionPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { + return i.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionArgs) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionOutput).ToWebAclRuleActionPtrOutputWithContext(ctx) +func (i WebAclDefaultActionBlockArgs) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockOutput).ToWebAclDefaultActionBlockPtrOutputWithContext(ctx) } -// WebAclRuleActionPtrInput is an input type that accepts WebAclRuleActionArgs, WebAclRuleActionPtr and WebAclRuleActionPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionPtrInput` via: +// WebAclDefaultActionBlockPtrInput is an input type that accepts WebAclDefaultActionBlockArgs, WebAclDefaultActionBlockPtr and WebAclDefaultActionBlockPtrOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockPtrInput` via: // -// WebAclRuleActionArgs{...} +// WebAclDefaultActionBlockArgs{...} // // or: // // nil -type WebAclRuleActionPtrInput interface { +type WebAclDefaultActionBlockPtrInput interface { pulumi.Input - ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput - ToWebAclRuleActionPtrOutputWithContext(context.Context) WebAclRuleActionPtrOutput + ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput + ToWebAclDefaultActionBlockPtrOutputWithContext(context.Context) WebAclDefaultActionBlockPtrOutput } -type webAclRuleActionPtrType WebAclRuleActionArgs +type webAclDefaultActionBlockPtrType WebAclDefaultActionBlockArgs -func WebAclRuleActionPtr(v *WebAclRuleActionArgs) WebAclRuleActionPtrInput { - return (*webAclRuleActionPtrType)(v) +func WebAclDefaultActionBlockPtr(v *WebAclDefaultActionBlockArgs) WebAclDefaultActionBlockPtrInput { + return (*webAclDefaultActionBlockPtrType)(v) } -func (*webAclRuleActionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleAction)(nil)).Elem() +func (*webAclDefaultActionBlockPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionBlock)(nil)).Elem() } -func (i *webAclRuleActionPtrType) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { - return i.ToWebAclRuleActionPtrOutputWithContext(context.Background()) +func (i *webAclDefaultActionBlockPtrType) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { + return i.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionPtrType) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionPtrOutput) +func (i *webAclDefaultActionBlockPtrType) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockPtrOutput) } -func (i *webAclRuleActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleAction] { - return pulumix.Output[*WebAclRuleAction]{ - OutputState: i.ToWebAclRuleActionPtrOutputWithContext(ctx).OutputState, +func (i *webAclDefaultActionBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlock] { + return pulumix.Output[*WebAclDefaultActionBlock]{ + OutputState: i.ToWebAclDefaultActionBlockPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionBlockOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleAction)(nil)).Elem() +func (WebAclDefaultActionBlockOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlock)(nil)).Elem() } -func (o WebAclRuleActionOutput) ToWebAclRuleActionOutput() WebAclRuleActionOutput { +func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockOutput() WebAclDefaultActionBlockOutput { return o } -func (o WebAclRuleActionOutput) ToWebAclRuleActionOutputWithContext(ctx context.Context) WebAclRuleActionOutput { +func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockOutputWithContext(ctx context.Context) WebAclDefaultActionBlockOutput { return o } -func (o WebAclRuleActionOutput) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { - return o.ToWebAclRuleActionPtrOutputWithContext(context.Background()) +func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { + return o.ToWebAclDefaultActionBlockPtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionOutput) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleAction) *WebAclRuleAction { +func (o WebAclDefaultActionBlockOutput) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionBlock) *WebAclDefaultActionBlock { return &v - }).(WebAclRuleActionPtrOutput) + }).(WebAclDefaultActionBlockPtrOutput) } -func (o WebAclRuleActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleAction] { - return pulumix.Output[WebAclRuleAction]{ +func (o WebAclDefaultActionBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlock] { + return pulumix.Output[WebAclDefaultActionBlock]{ OutputState: o.OutputState, } } -// Instructs AWS WAF to allow the web request. See `allow` below for details. -func (o WebAclRuleActionOutput) Allow() WebAclRuleActionAllowPtrOutput { - return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionAllow { return v.Allow }).(WebAclRuleActionAllowPtrOutput) -} - -// Instructs AWS WAF to block the web request. See `block` below for details. -func (o WebAclRuleActionOutput) Block() WebAclRuleActionBlockPtrOutput { - return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionBlock { return v.Block }).(WebAclRuleActionBlockPtrOutput) -} - -// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. -func (o WebAclRuleActionOutput) Captcha() WebAclRuleActionCaptchaPtrOutput { - return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionCaptcha { return v.Captcha }).(WebAclRuleActionCaptchaPtrOutput) -} - -// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. -func (o WebAclRuleActionOutput) Challenge() WebAclRuleActionChallengePtrOutput { - return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionChallenge { return v.Challenge }).(WebAclRuleActionChallengePtrOutput) -} - -// Instructs AWS WAF to count the web request and allow it. See `count` below for details. -func (o WebAclRuleActionOutput) Count() WebAclRuleActionCountPtrOutput { - return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionCount { return v.Count }).(WebAclRuleActionCountPtrOutput) +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclDefaultActionBlockOutput) CustomResponse() WebAclDefaultActionBlockCustomResponsePtrOutput { + return o.ApplyT(func(v WebAclDefaultActionBlock) *WebAclDefaultActionBlockCustomResponse { return v.CustomResponse }).(WebAclDefaultActionBlockCustomResponsePtrOutput) } -type WebAclRuleActionPtrOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionBlockPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleAction)(nil)).Elem() +func (WebAclDefaultActionBlockPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionBlock)(nil)).Elem() } -func (o WebAclRuleActionPtrOutput) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { +func (o WebAclDefaultActionBlockPtrOutput) ToWebAclDefaultActionBlockPtrOutput() WebAclDefaultActionBlockPtrOutput { return o } -func (o WebAclRuleActionPtrOutput) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { +func (o WebAclDefaultActionBlockPtrOutput) ToWebAclDefaultActionBlockPtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockPtrOutput { return o } -func (o WebAclRuleActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleAction] { - return pulumix.Output[*WebAclRuleAction]{ +func (o WebAclDefaultActionBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlock] { + return pulumix.Output[*WebAclDefaultActionBlock]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionPtrOutput) Elem() WebAclRuleActionOutput { - return o.ApplyT(func(v *WebAclRuleAction) WebAclRuleAction { +func (o WebAclDefaultActionBlockPtrOutput) Elem() WebAclDefaultActionBlockOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlock) WebAclDefaultActionBlock { if v != nil { return *v } - var ret WebAclRuleAction + var ret WebAclDefaultActionBlock return ret - }).(WebAclRuleActionOutput) -} - -// Instructs AWS WAF to allow the web request. See `allow` below for details. -func (o WebAclRuleActionPtrOutput) Allow() WebAclRuleActionAllowPtrOutput { - return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionAllow { - if v == nil { - return nil - } - return v.Allow - }).(WebAclRuleActionAllowPtrOutput) + }).(WebAclDefaultActionBlockOutput) } -// Instructs AWS WAF to block the web request. See `block` below for details. -func (o WebAclRuleActionPtrOutput) Block() WebAclRuleActionBlockPtrOutput { - return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionBlock { +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclDefaultActionBlockPtrOutput) CustomResponse() WebAclDefaultActionBlockCustomResponsePtrOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlock) *WebAclDefaultActionBlockCustomResponse { if v == nil { return nil } - return v.Block - }).(WebAclRuleActionBlockPtrOutput) + return v.CustomResponse + }).(WebAclDefaultActionBlockCustomResponsePtrOutput) } -// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. -func (o WebAclRuleActionPtrOutput) Captcha() WebAclRuleActionCaptchaPtrOutput { - return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionCaptcha { - if v == nil { - return nil - } - return v.Captcha - }).(WebAclRuleActionCaptchaPtrOutput) +type WebAclDefaultActionBlockCustomResponse struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode int `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders []WebAclDefaultActionBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` } -// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. -func (o WebAclRuleActionPtrOutput) Challenge() WebAclRuleActionChallengePtrOutput { - return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionChallenge { - if v == nil { - return nil - } - return v.Challenge - }).(WebAclRuleActionChallengePtrOutput) -} - -// Instructs AWS WAF to count the web request and allow it. See `count` below for details. -func (o WebAclRuleActionPtrOutput) Count() WebAclRuleActionCountPtrOutput { - return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionCount { - if v == nil { - return nil - } - return v.Count - }).(WebAclRuleActionCountPtrOutput) -} - -type WebAclRuleActionAllow struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleActionAllowCustomRequestHandling `pulumi:"customRequestHandling"` -} - -// WebAclRuleActionAllowInput is an input type that accepts WebAclRuleActionAllowArgs and WebAclRuleActionAllowOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowInput` via: +// WebAclDefaultActionBlockCustomResponseInput is an input type that accepts WebAclDefaultActionBlockCustomResponseArgs and WebAclDefaultActionBlockCustomResponseOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseInput` via: // -// WebAclRuleActionAllowArgs{...} -type WebAclRuleActionAllowInput interface { +// WebAclDefaultActionBlockCustomResponseArgs{...} +type WebAclDefaultActionBlockCustomResponseInput interface { pulumi.Input - ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput - ToWebAclRuleActionAllowOutputWithContext(context.Context) WebAclRuleActionAllowOutput + ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput + ToWebAclDefaultActionBlockCustomResponseOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseOutput } -type WebAclRuleActionAllowArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleActionAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclDefaultActionBlockCustomResponseArgs struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode pulumi.IntInput `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` } -func (WebAclRuleActionAllowArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllow)(nil)).Elem() +func (WebAclDefaultActionBlockCustomResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponse)(nil)).Elem() } -func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput { - return i.ToWebAclRuleActionAllowOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput { + return i.ToWebAclDefaultActionBlockCustomResponseOutputWithContext(context.Background()) } -func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowOutputWithContext(ctx context.Context) WebAclRuleActionAllowOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowOutput) +func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseOutput) } -func (i WebAclRuleActionAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllow] { - return pulumix.Output[WebAclRuleActionAllow]{ - OutputState: i.ToWebAclRuleActionAllowOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponse] { + return pulumix.Output[WebAclDefaultActionBlockCustomResponse]{ + OutputState: i.ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { - return i.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { + return i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowOutput).ToWebAclRuleActionAllowPtrOutputWithContext(ctx) +func (i WebAclDefaultActionBlockCustomResponseArgs) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseOutput).ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx) } -// WebAclRuleActionAllowPtrInput is an input type that accepts WebAclRuleActionAllowArgs, WebAclRuleActionAllowPtr and WebAclRuleActionAllowPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowPtrInput` via: +// WebAclDefaultActionBlockCustomResponsePtrInput is an input type that accepts WebAclDefaultActionBlockCustomResponseArgs, WebAclDefaultActionBlockCustomResponsePtr and WebAclDefaultActionBlockCustomResponsePtrOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponsePtrInput` via: // -// WebAclRuleActionAllowArgs{...} +// WebAclDefaultActionBlockCustomResponseArgs{...} // // or: // // nil -type WebAclRuleActionAllowPtrInput interface { +type WebAclDefaultActionBlockCustomResponsePtrInput interface { pulumi.Input - ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput - ToWebAclRuleActionAllowPtrOutputWithContext(context.Context) WebAclRuleActionAllowPtrOutput + ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput + ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput } -type webAclRuleActionAllowPtrType WebAclRuleActionAllowArgs +type webAclDefaultActionBlockCustomResponsePtrType WebAclDefaultActionBlockCustomResponseArgs -func WebAclRuleActionAllowPtr(v *WebAclRuleActionAllowArgs) WebAclRuleActionAllowPtrInput { - return (*webAclRuleActionAllowPtrType)(v) +func WebAclDefaultActionBlockCustomResponsePtr(v *WebAclDefaultActionBlockCustomResponseArgs) WebAclDefaultActionBlockCustomResponsePtrInput { + return (*webAclDefaultActionBlockCustomResponsePtrType)(v) } -func (*webAclRuleActionAllowPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionAllow)(nil)).Elem() +func (*webAclDefaultActionBlockCustomResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionBlockCustomResponse)(nil)).Elem() } -func (i *webAclRuleActionAllowPtrType) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { - return i.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) +func (i *webAclDefaultActionBlockCustomResponsePtrType) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { + return i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionAllowPtrType) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowPtrOutput) +func (i *webAclDefaultActionBlockCustomResponsePtrType) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponsePtrOutput) } -func (i *webAclRuleActionAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllow] { - return pulumix.Output[*WebAclRuleActionAllow]{ - OutputState: i.ToWebAclRuleActionAllowPtrOutputWithContext(ctx).OutputState, +func (i *webAclDefaultActionBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlockCustomResponse] { + return pulumix.Output[*WebAclDefaultActionBlockCustomResponse]{ + OutputState: i.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionAllowOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionBlockCustomResponseOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionAllowOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllow)(nil)).Elem() +func (WebAclDefaultActionBlockCustomResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponse)(nil)).Elem() } -func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput { +func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponseOutput() WebAclDefaultActionBlockCustomResponseOutput { return o } -func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowOutputWithContext(ctx context.Context) WebAclRuleActionAllowOutput { +func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseOutput { return o } -func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { - return o.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) +func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { + return o.ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionAllow) *WebAclRuleActionAllow { +func (o WebAclDefaultActionBlockCustomResponseOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclDefaultActionBlockCustomResponse) *WebAclDefaultActionBlockCustomResponse { return &v - }).(WebAclRuleActionAllowPtrOutput) + }).(WebAclDefaultActionBlockCustomResponsePtrOutput) } -func (o WebAclRuleActionAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllow] { - return pulumix.Output[WebAclRuleActionAllow]{ +func (o WebAclDefaultActionBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponse] { + return pulumix.Output[WebAclDefaultActionBlockCustomResponse]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionAllowOutput) CustomRequestHandling() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleActionAllow) *WebAclRuleActionAllowCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclDefaultActionBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) *string { return v.CustomResponseBodyKey }).(pulumi.StringPtrOutput) } -type WebAclRuleActionAllowPtrOutput struct{ *pulumi.OutputState } +// The HTTP status code to return to the client. +func (o WebAclDefaultActionBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { + return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) int { return v.ResponseCode }).(pulumi.IntOutput) +} -func (WebAclRuleActionAllowPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionAllow)(nil)).Elem() +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclDefaultActionBlockCustomResponseOutput) ResponseHeaders() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponse) []WebAclDefaultActionBlockCustomResponseResponseHeader { + return v.ResponseHeaders + }).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) } -func (o WebAclRuleActionAllowPtrOutput) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { +type WebAclDefaultActionBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } + +func (WebAclDefaultActionBlockCustomResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclDefaultActionBlockCustomResponse)(nil)).Elem() +} + +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutput() WebAclDefaultActionBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleActionAllowPtrOutput) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToWebAclDefaultActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleActionAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllow] { - return pulumix.Output[*WebAclRuleActionAllow]{ +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclDefaultActionBlockCustomResponse] { + return pulumix.Output[*WebAclDefaultActionBlockCustomResponse]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionAllowPtrOutput) Elem() WebAclRuleActionAllowOutput { - return o.ApplyT(func(v *WebAclRuleActionAllow) WebAclRuleActionAllow { +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) Elem() WebAclDefaultActionBlockCustomResponseOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) WebAclDefaultActionBlockCustomResponse { if v != nil { return *v } - var ret WebAclRuleActionAllow + var ret WebAclDefaultActionBlockCustomResponse return ret - }).(WebAclRuleActionAllowOutput) + }).(WebAclDefaultActionBlockCustomResponseOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionAllowPtrOutput) CustomRequestHandling() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionAllow) *WebAclRuleActionAllowCustomRequestHandling { +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) *string { if v == nil { return nil } - return v.CustomRequestHandling - }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) + return v.CustomResponseBodyKey + }).(pulumi.StringPtrOutput) } -type WebAclRuleActionAllowCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleActionAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +// The HTTP status code to return to the client. +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) *int { + if v == nil { + return nil + } + return &v.ResponseCode + }).(pulumi.IntPtrOutput) } -// WebAclRuleActionAllowCustomRequestHandlingInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingArgs and WebAclRuleActionAllowCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInput` via: -// -// WebAclRuleActionAllowCustomRequestHandlingArgs{...} -type WebAclRuleActionAllowCustomRequestHandlingInput interface { - pulumi.Input - - ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput - ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclDefaultActionBlockCustomResponsePtrOutput) ResponseHeaders() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v *WebAclDefaultActionBlockCustomResponse) []WebAclDefaultActionBlockCustomResponseResponseHeader { + if v == nil { + return nil + } + return v.ResponseHeaders + }).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) } -type WebAclRuleActionAllowCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclDefaultActionBlockCustomResponseResponseHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -func (WebAclRuleActionAllowCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() +// WebAclDefaultActionBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclDefaultActionBlockCustomResponseResponseHeaderArgs and WebAclDefaultActionBlockCustomResponseResponseHeaderOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseResponseHeaderInput` via: +// +// WebAclDefaultActionBlockCustomResponseResponseHeaderArgs{...} +type WebAclDefaultActionBlockCustomResponseResponseHeaderInput interface { + pulumi.Input + + ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput + ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput } -func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput { - return i.ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(context.Background()) +type WebAclDefaultActionBlockCustomResponseResponseHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingOutput) +func (WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionAllowCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, - } +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { + return i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) } -func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingOutput).ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, + } } -// WebAclRuleActionAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingArgs, WebAclRuleActionAllowCustomRequestHandlingPtr and WebAclRuleActionAllowCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingPtrInput` via: -// -// WebAclRuleActionAllowCustomRequestHandlingArgs{...} -// -// or: +// WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclDefaultActionBlockCustomResponseResponseHeaderArray and WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput` via: // -// nil -type WebAclRuleActionAllowCustomRequestHandlingPtrInput interface { +// WebAclDefaultActionBlockCustomResponseResponseHeaderArray{ WebAclDefaultActionBlockCustomResponseResponseHeaderArgs{...} } +type WebAclDefaultActionBlockCustomResponseResponseHeaderArrayInput interface { pulumi.Input - ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput - ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput + ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput + ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput } -type webAclRuleActionAllowCustomRequestHandlingPtrType WebAclRuleActionAllowCustomRequestHandlingArgs - -func WebAclRuleActionAllowCustomRequestHandlingPtr(v *WebAclRuleActionAllowCustomRequestHandlingArgs) WebAclRuleActionAllowCustomRequestHandlingPtrInput { - return (*webAclRuleActionAllowCustomRequestHandlingPtrType)(v) -} +type WebAclDefaultActionBlockCustomResponseResponseHeaderArray []WebAclDefaultActionBlockCustomResponseResponseHeaderInput -func (*webAclRuleActionAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() +func (WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { + return i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) } -func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i WebAclDefaultActionBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclDefaultActionBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionAllowCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() +func (WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput { +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput { +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionAllowCustomRequestHandling) *WebAclRuleActionAllowCustomRequestHandling { - return &v - }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) -} - -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionAllowCustomRequestHandling]{ +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclDefaultActionBlockCustomResponseResponseHeader]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionAllowCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandling) []WebAclRuleActionAllowCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponseResponseHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleActionAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// Value of the custom header. +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclDefaultActionBlockCustomResponseResponseHeader) string { return v.Value }).(pulumi.StringOutput) +} -func (WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() +type WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclDefaultActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput() WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling]{ +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclDefaultActionBlockCustomResponseResponseHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionAllowCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleActionAllowCustomRequestHandling) WebAclRuleActionAllowCustomRequestHandling { - if v != nil { - return *v - } - var ret WebAclRuleActionAllowCustomRequestHandling - return ret - }).(WebAclRuleActionAllowCustomRequestHandlingOutput) -} - -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleActionAllowCustomRequestHandling) []WebAclRuleActionAllowCustomRequestHandlingInsertHeader { - if v == nil { - return nil - } - return v.InsertHeaders - }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +func (o WebAclDefaultActionBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclDefaultActionBlockCustomResponseResponseHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclDefaultActionBlockCustomResponseResponseHeader { + return vs[0].([]WebAclDefaultActionBlockCustomResponseResponseHeader)[vs[1].(int)] + }).(WebAclDefaultActionBlockCustomResponseResponseHeaderOutput) } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclLoggingConfigurationLoggingFilter struct { + // Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. + DefaultBehavior string `pulumi:"defaultBehavior"` + // Filter(s) that you want to apply to the logs. See Filter below for more details. + Filters []WebAclLoggingConfigurationLoggingFilterFilter `pulumi:"filters"` } -// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput` via: +// WebAclLoggingConfigurationLoggingFilterInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterArgs and WebAclLoggingConfigurationLoggingFilterOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterInput` via: // -// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput interface { +// WebAclLoggingConfigurationLoggingFilterArgs{...} +type WebAclLoggingConfigurationLoggingFilterInput interface { pulumi.Input - ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput + ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput + ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterOutput } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclLoggingConfigurationLoggingFilterArgs struct { + // Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. + DefaultBehavior pulumi.StringInput `pulumi:"defaultBehavior"` + // Filter(s) that you want to apply to the logs. See Filter below for more details. + Filters WebAclLoggingConfigurationLoggingFilterFilterArrayInput `pulumi:"filters"` } -func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(context.Background()) } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) +func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterOutput) } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationLoggingFilterArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilter] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilter]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx).OutputState, } } -// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray and WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) +} + +func (i WebAclLoggingConfigurationLoggingFilterArgs) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterOutput).ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx) +} + +// WebAclLoggingConfigurationLoggingFilterPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterArgs, WebAclLoggingConfigurationLoggingFilterPtr and WebAclLoggingConfigurationLoggingFilterPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterPtrInput` via: // -// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclLoggingConfigurationLoggingFilterArgs{...} +// +// or: +// +// nil +type WebAclLoggingConfigurationLoggingFilterPtrInput interface { pulumi.Input - ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput + ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray []WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput +type webAclLoggingConfigurationLoggingFilterPtrType WebAclLoggingConfigurationLoggingFilterArgs -func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclLoggingConfigurationLoggingFilterPtr(v *WebAclLoggingConfigurationLoggingFilterArgs) WebAclLoggingConfigurationLoggingFilterPtrInput { + return (*webAclLoggingConfigurationLoggingFilterPtrType)(v) } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclLoggingConfigurationLoggingFilterPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterPtrOutput) +} + +func (i *webAclLoggingConfigurationLoggingFilterPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilter] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilter]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterOutput() WebAclLoggingConfigurationLoggingFilterOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ +func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { + return o.ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(context.Background()) +} + +func (o WebAclLoggingConfigurationLoggingFilterOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilter) *WebAclLoggingConfigurationLoggingFilter { + return &v + }).(WebAclLoggingConfigurationLoggingFilterPtrOutput) +} + +func (o WebAclLoggingConfigurationLoggingFilterOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilter] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilter]{ OutputState: o.OutputState, } } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) +// Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. +func (o WebAclLoggingConfigurationLoggingFilterOutput) DefaultBehavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilter) string { return v.DefaultBehavior }).(pulumi.StringOutput) } -// Value of the custom header. -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +// Filter(s) that you want to apply to the logs. See Filter below for more details. +func (o WebAclLoggingConfigurationLoggingFilterOutput) Filters() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilter) []WebAclLoggingConfigurationLoggingFilterFilter { + return v.Filters + }).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) } -type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilter)(nil)).Elem() } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutput() WebAclLoggingConfigurationLoggingFilterPtrOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToWebAclLoggingConfigurationLoggingFilterPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterPtrOutput { return o } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilter] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilter]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionAllowCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) WebAclLoggingConfigurationLoggingFilter { + if v != nil { + return *v + } + var ret WebAclLoggingConfigurationLoggingFilter + return ret + }).(WebAclLoggingConfigurationLoggingFilterOutput) } -type WebAclRuleActionBlock struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse *WebAclRuleActionBlockCustomResponse `pulumi:"customResponse"` +// Default handling for logs that don't match any of the specified filtering conditions. Valid values for `defaultBehavior` are `KEEP` or `DROP`. +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) DefaultBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) *string { + if v == nil { + return nil + } + return &v.DefaultBehavior + }).(pulumi.StringPtrOutput) } -// WebAclRuleActionBlockInput is an input type that accepts WebAclRuleActionBlockArgs and WebAclRuleActionBlockOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockInput` via: -// -// WebAclRuleActionBlockArgs{...} -type WebAclRuleActionBlockInput interface { - pulumi.Input - - ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput - ToWebAclRuleActionBlockOutputWithContext(context.Context) WebAclRuleActionBlockOutput +// Filter(s) that you want to apply to the logs. See Filter below for more details. +func (o WebAclLoggingConfigurationLoggingFilterPtrOutput) Filters() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilter) []WebAclLoggingConfigurationLoggingFilterFilter { + if v == nil { + return nil + } + return v.Filters + }).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) } -type WebAclRuleActionBlockArgs struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse WebAclRuleActionBlockCustomResponsePtrInput `pulumi:"customResponse"` +type WebAclLoggingConfigurationLoggingFilterFilter struct { + // Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + Behavior string `pulumi:"behavior"` + // Match condition(s) for the filter. See Condition below for more details. + Conditions []WebAclLoggingConfigurationLoggingFilterFilterCondition `pulumi:"conditions"` + // Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + Requirement string `pulumi:"requirement"` } -func (WebAclRuleActionBlockArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlock)(nil)).Elem() +// WebAclLoggingConfigurationLoggingFilterFilterInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterArgs and WebAclLoggingConfigurationLoggingFilterFilterOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterInput` via: +// +// WebAclLoggingConfigurationLoggingFilterFilterArgs{...} +type WebAclLoggingConfigurationLoggingFilterFilterInput interface { + pulumi.Input + + ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput + ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput } -func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput { - return i.ToWebAclRuleActionBlockOutputWithContext(context.Background()) +type WebAclLoggingConfigurationLoggingFilterFilterArgs struct { + // Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + Behavior pulumi.StringInput `pulumi:"behavior"` + // Match condition(s) for the filter. See Condition below for more details. + Conditions WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput `pulumi:"conditions"` + // Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + Requirement pulumi.StringInput `pulumi:"requirement"` } -func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockOutputWithContext(ctx context.Context) WebAclRuleActionBlockOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockOutput) +func (WebAclLoggingConfigurationLoggingFilterFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() } -func (i WebAclRuleActionBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlock] { - return pulumix.Output[WebAclRuleActionBlock]{ - OutputState: i.ToWebAclRuleActionBlockOutputWithContext(ctx).OutputState, - } +func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(context.Background()) } -func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { - return i.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterOutput) } -func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockOutput).ToWebAclRuleActionBlockPtrOutputWithContext(ctx) +func (i WebAclLoggingConfigurationLoggingFilterFilterArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx).OutputState, + } } -// WebAclRuleActionBlockPtrInput is an input type that accepts WebAclRuleActionBlockArgs, WebAclRuleActionBlockPtr and WebAclRuleActionBlockPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockPtrInput` via: -// -// WebAclRuleActionBlockArgs{...} -// -// or: +// WebAclLoggingConfigurationLoggingFilterFilterArrayInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterArray and WebAclLoggingConfigurationLoggingFilterFilterArrayOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterArrayInput` via: // -// nil -type WebAclRuleActionBlockPtrInput interface { +// WebAclLoggingConfigurationLoggingFilterFilterArray{ WebAclLoggingConfigurationLoggingFilterFilterArgs{...} } +type WebAclLoggingConfigurationLoggingFilterFilterArrayInput interface { pulumi.Input - ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput - ToWebAclRuleActionBlockPtrOutputWithContext(context.Context) WebAclRuleActionBlockPtrOutput + ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput + ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput } -type webAclRuleActionBlockPtrType WebAclRuleActionBlockArgs - -func WebAclRuleActionBlockPtr(v *WebAclRuleActionBlockArgs) WebAclRuleActionBlockPtrInput { - return (*webAclRuleActionBlockPtrType)(v) -} +type WebAclLoggingConfigurationLoggingFilterFilterArray []WebAclLoggingConfigurationLoggingFilterFilterInput -func (*webAclRuleActionBlockPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionBlock)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() } -func (i *webAclRuleActionBlockPtrType) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { - return i.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(context.Background()) } -func (i *webAclRuleActionBlockPtrType) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockPtrOutput) +func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) } -func (i *webAclRuleActionBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlock] { - return pulumix.Output[*WebAclRuleActionBlock]{ - OutputState: i.ToWebAclRuleActionBlockPtrOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationLoggingFilterFilterArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter] { + return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionBlockOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionBlockOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlock)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() } -func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToWebAclLoggingConfigurationLoggingFilterFilterOutput() WebAclLoggingConfigurationLoggingFilterFilterOutput { return o } -func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockOutputWithContext(ctx context.Context) WebAclRuleActionBlockOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToWebAclLoggingConfigurationLoggingFilterFilterOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterOutput { return o } -func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { - return o.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilter]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionBlock) *WebAclRuleActionBlock { - return &v - }).(WebAclRuleActionBlockPtrOutput) +// Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Behavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) string { return v.Behavior }).(pulumi.StringOutput) } -func (o WebAclRuleActionBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlock] { - return pulumix.Output[WebAclRuleActionBlock]{ - OutputState: o.OutputState, - } +// Match condition(s) for the filter. See Condition below for more details. +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Conditions() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) []WebAclLoggingConfigurationLoggingFilterFilterCondition { + return v.Conditions + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) } -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclRuleActionBlockOutput) CustomResponse() WebAclRuleActionBlockCustomResponsePtrOutput { - return o.ApplyT(func(v WebAclRuleActionBlock) *WebAclRuleActionBlockCustomResponse { return v.CustomResponse }).(WebAclRuleActionBlockCustomResponsePtrOutput) +// Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. +func (o WebAclLoggingConfigurationLoggingFilterFilterOutput) Requirement() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilter) string { return v.Requirement }).(pulumi.StringOutput) } -type WebAclRuleActionBlockPtrOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionBlockPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionBlock)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilter)(nil)).Elem() } -func (o WebAclRuleActionBlockPtrOutput) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { return o } -func (o WebAclRuleActionBlockPtrOutput) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterArrayOutput { return o } -func (o WebAclRuleActionBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlock] { - return pulumix.Output[*WebAclRuleActionBlock]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter] { + return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilter]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionBlockPtrOutput) Elem() WebAclRuleActionBlockOutput { - return o.ApplyT(func(v *WebAclRuleActionBlock) WebAclRuleActionBlock { - if v != nil { - return *v - } - var ret WebAclRuleActionBlock - return ret - }).(WebAclRuleActionBlockOutput) -} - -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclRuleActionBlockPtrOutput) CustomResponse() WebAclRuleActionBlockCustomResponsePtrOutput { - return o.ApplyT(func(v *WebAclRuleActionBlock) *WebAclRuleActionBlockCustomResponse { - if v == nil { - return nil - } - return v.CustomResponse - }).(WebAclRuleActionBlockCustomResponsePtrOutput) +func (o WebAclLoggingConfigurationLoggingFilterFilterArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationLoggingFilterFilterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationLoggingFilterFilter { + return vs[0].([]WebAclLoggingConfigurationLoggingFilterFilter)[vs[1].(int)] + }).(WebAclLoggingConfigurationLoggingFilterFilterOutput) } -type WebAclRuleActionBlockCustomResponse struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode int `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders []WebAclRuleActionBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` +type WebAclLoggingConfigurationLoggingFilterFilterCondition struct { + // Configuration for a single action condition. See Action Condition below for more details. + ActionCondition *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition `pulumi:"actionCondition"` + // Condition for a single label name. See Label Name Condition below for more details. + LabelNameCondition *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition `pulumi:"labelNameCondition"` } -// WebAclRuleActionBlockCustomResponseInput is an input type that accepts WebAclRuleActionBlockCustomResponseArgs and WebAclRuleActionBlockCustomResponseOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseInput` via: +// WebAclLoggingConfigurationLoggingFilterFilterConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionInput` via: // -// WebAclRuleActionBlockCustomResponseArgs{...} -type WebAclRuleActionBlockCustomResponseInput interface { +// WebAclLoggingConfigurationLoggingFilterFilterConditionArgs{...} +type WebAclLoggingConfigurationLoggingFilterFilterConditionInput interface { pulumi.Input - ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput - ToWebAclRuleActionBlockCustomResponseOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput } -type WebAclRuleActionBlockCustomResponseArgs struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode pulumi.IntInput `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` +type WebAclLoggingConfigurationLoggingFilterFilterConditionArgs struct { + // Configuration for a single action condition. See Action Condition below for more details. + ActionCondition WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput `pulumi:"actionCondition"` + // Condition for a single label name. See Label Name Condition below for more details. + LabelNameCondition WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput `pulumi:"labelNameCondition"` } -func (WebAclRuleActionBlockCustomResponseArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlockCustomResponse)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() } -func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput { - return i.ToWebAclRuleActionBlockCustomResponseOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(context.Background()) } -func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseOutput) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) } -func (i WebAclRuleActionBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponse] { - return pulumix.Output[WebAclRuleActionBlockCustomResponse]{ - OutputState: i.ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { - return i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseOutput).ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx) -} - -// WebAclRuleActionBlockCustomResponsePtrInput is an input type that accepts WebAclRuleActionBlockCustomResponseArgs, WebAclRuleActionBlockCustomResponsePtr and WebAclRuleActionBlockCustomResponsePtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponsePtrInput` via: -// -// WebAclRuleActionBlockCustomResponseArgs{...} -// -// or: +// WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionArray and WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput` via: // -// nil -type WebAclRuleActionBlockCustomResponsePtrInput interface { +// WebAclLoggingConfigurationLoggingFilterFilterConditionArray{ WebAclLoggingConfigurationLoggingFilterFilterConditionArgs{...} } +type WebAclLoggingConfigurationLoggingFilterFilterConditionArrayInput interface { pulumi.Input - ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput - ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponsePtrOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput } -type webAclRuleActionBlockCustomResponsePtrType WebAclRuleActionBlockCustomResponseArgs - -func WebAclRuleActionBlockCustomResponsePtr(v *WebAclRuleActionBlockCustomResponseArgs) WebAclRuleActionBlockCustomResponsePtrInput { - return (*webAclRuleActionBlockCustomResponsePtrType)(v) -} +type WebAclLoggingConfigurationLoggingFilterFilterConditionArray []WebAclLoggingConfigurationLoggingFilterFilterConditionInput -func (*webAclRuleActionBlockCustomResponsePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionBlockCustomResponse)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() } -func (i *webAclRuleActionBlockCustomResponsePtrType) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { - return i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(context.Background()) } -func (i *webAclRuleActionBlockCustomResponsePtrType) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponsePtrOutput) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) } -func (i *webAclRuleActionBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlockCustomResponse] { - return pulumix.Output[*WebAclRuleActionBlockCustomResponse]{ - OutputState: i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition] { + return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionBlockCustomResponseOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterConditionOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionBlockCustomResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlockCustomResponse)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() } -func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { return o } -func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { return o } -func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { - return o.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionBlockCustomResponse) *WebAclRuleActionBlockCustomResponse { - return &v - }).(WebAclRuleActionBlockCustomResponsePtrOutput) -} - -func (o WebAclRuleActionBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponse] { - return pulumix.Output[WebAclRuleActionBlockCustomResponse]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterCondition]{ OutputState: o.OutputState, } } -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclRuleActionBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) *string { return v.CustomResponseBodyKey }).(pulumi.StringPtrOutput) -} - -// The HTTP status code to return to the client. -func (o WebAclRuleActionBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) int { return v.ResponseCode }).(pulumi.IntOutput) +// Configuration for a single action condition. See Action Condition below for more details. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) ActionCondition() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { + return v.ActionCondition + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) } -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclRuleActionBlockCustomResponseOutput) ResponseHeaders() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) []WebAclRuleActionBlockCustomResponseResponseHeader { - return v.ResponseHeaders - }).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) +// Condition for a single label name. See Label Name Condition below for more details. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) LabelNameCondition() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { + return v.LabelNameCondition + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) } -type WebAclRuleActionBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionBlockCustomResponsePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionBlockCustomResponse)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationLoggingFilterFilterCondition)(nil)).Elem() } -func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { return o } -func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput { return o } -func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlockCustomResponse] { - return pulumix.Output[*WebAclRuleActionBlockCustomResponse]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition] { + return pulumix.Output[[]WebAclLoggingConfigurationLoggingFilterFilterCondition]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionBlockCustomResponsePtrOutput) Elem() WebAclRuleActionBlockCustomResponseOutput { - return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) WebAclRuleActionBlockCustomResponse { - if v != nil { - return *v - } - var ret WebAclRuleActionBlockCustomResponse - return ret - }).(WebAclRuleActionBlockCustomResponseOutput) +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationLoggingFilterFilterConditionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationLoggingFilterFilterCondition { + return vs[0].([]WebAclLoggingConfigurationLoggingFilterFilterCondition)[vs[1].(int)] + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionOutput) } -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclRuleActionBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) *string { - if v == nil { - return nil - } - return v.CustomResponseBodyKey - }).(pulumi.StringPtrOutput) +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition struct { + // Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + Action string `pulumi:"action"` } -// The HTTP status code to return to the client. -func (o WebAclRuleActionBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) *int { - if v == nil { - return nil - } - return &v.ResponseCode - }).(pulumi.IntPtrOutput) -} +// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput` via: +// +// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs{...} +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionInput interface { + pulumi.Input -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclRuleActionBlockCustomResponsePtrOutput) ResponseHeaders() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) []WebAclRuleActionBlockCustomResponseResponseHeader { - if v == nil { - return nil - } - return v.ResponseHeaders - }).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) + ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput } -type WebAclRuleActionBlockCustomResponseResponseHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs struct { + // Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + Action pulumi.StringInput `pulumi:"action"` } -// WebAclRuleActionBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclRuleActionBlockCustomResponseResponseHeaderArgs and WebAclRuleActionBlockCustomResponseResponseHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseResponseHeaderInput` via: -// -// WebAclRuleActionBlockCustomResponseResponseHeaderArgs{...} -type WebAclRuleActionBlockCustomResponseResponseHeaderInput interface { - pulumi.Input - - ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput - ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput +func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() } -type WebAclRuleActionBlockCustomResponseResponseHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(context.Background()) } -func (WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput { - return i.ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx).OutputState, + } } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseResponseHeaderOutput) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, - } +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput).ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx) } -// WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclRuleActionBlockCustomResponseResponseHeaderArray and WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput` via: +// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs, WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtr and WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput` via: // -// WebAclRuleActionBlockCustomResponseResponseHeaderArray{ WebAclRuleActionBlockCustomResponseResponseHeaderArgs{...} } -type WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput interface { +// WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs{...} +// +// or: +// +// nil +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput interface { pulumi.Input - ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput - ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput } -type WebAclRuleActionBlockCustomResponseResponseHeaderArray []WebAclRuleActionBlockCustomResponseResponseHeaderInput +type webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs -func (WebAclRuleActionBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() +func WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtr(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrInput { + return (*webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType)(v) } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { - return i.ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) +func (*webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) } -type WebAclRuleActionBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx).OutputState, + } } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput { +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput struct{ *pulumi.OutputState } + +func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() +} + +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { return o } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { return o } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader]{ - OutputState: o.OutputState, - } +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return o.ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionBlockCustomResponseResponseHeader) string { return v.Name }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { + return &v + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) } -// Value of the custom header. -func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionBlockCustomResponseResponseHeader) string { return v.Value }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ + OutputState: o.OutputState, + } } -type WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } +// Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) Action() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) string { return v.Action }).(pulumi.StringOutput) +} -func (WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() +type WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput struct{ *pulumi.OutputState } + +func (WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition)(nil)).Elem() } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { return o } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput { return o } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionBlockCustomResponseResponseHeader { - return vs[0].([]WebAclRuleActionBlockCustomResponseResponseHeader)[vs[1].(int)] - }).(WebAclRuleActionBlockCustomResponseResponseHeaderOutput) +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { + if v != nil { + return *v + } + var ret WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition + return ret + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutput) } -type WebAclRuleActionCaptcha struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleActionCaptchaCustomRequestHandling `pulumi:"customRequestHandling"` +// Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionPtrOutput) Action() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition) *string { + if v == nil { + return nil + } + return &v.Action + }).(pulumi.StringPtrOutput) } -// WebAclRuleActionCaptchaInput is an input type that accepts WebAclRuleActionCaptchaArgs and WebAclRuleActionCaptchaOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaInput` via: +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition struct { + // Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + LabelName string `pulumi:"labelName"` +} + +// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs and WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput` via: // -// WebAclRuleActionCaptchaArgs{...} -type WebAclRuleActionCaptchaInput interface { +// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs{...} +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionInput interface { pulumi.Input - ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput - ToWebAclRuleActionCaptchaOutputWithContext(context.Context) WebAclRuleActionCaptchaOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput } -type WebAclRuleActionCaptchaArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleActionCaptchaCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs struct { + // Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + LabelName pulumi.StringInput `pulumi:"labelName"` } -func (WebAclRuleActionCaptchaArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptcha)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() } -func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput { - return i.ToWebAclRuleActionCaptchaOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(context.Background()) } -func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaOutput) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) } -func (i WebAclRuleActionCaptchaArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptcha] { - return pulumix.Output[WebAclRuleActionCaptcha]{ - OutputState: i.ToWebAclRuleActionCaptchaOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { - return i.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaOutput).ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx) +func (i WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput).ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx) } -// WebAclRuleActionCaptchaPtrInput is an input type that accepts WebAclRuleActionCaptchaArgs, WebAclRuleActionCaptchaPtr and WebAclRuleActionCaptchaPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaPtrInput` via: +// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput is an input type that accepts WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs, WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtr and WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput` via: // -// WebAclRuleActionCaptchaArgs{...} +// WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs{...} // // or: // // nil -type WebAclRuleActionCaptchaPtrInput interface { +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput interface { pulumi.Input - ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput - ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Context) WebAclRuleActionCaptchaPtrOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput + ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput } -type webAclRuleActionCaptchaPtrType WebAclRuleActionCaptchaArgs +type webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs -func WebAclRuleActionCaptchaPtr(v *WebAclRuleActionCaptchaArgs) WebAclRuleActionCaptchaPtrInput { - return (*webAclRuleActionCaptchaPtrType)(v) +func WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtr(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrInput { + return (*webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType)(v) } -func (*webAclRuleActionCaptchaPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCaptcha)(nil)).Elem() +func (*webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() } -func (i *webAclRuleActionCaptchaPtrType) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { - return i.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionCaptchaPtrType) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaPtrOutput) +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) } -func (i *webAclRuleActionCaptchaPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptcha] { - return pulumix.Output[*WebAclRuleActionCaptcha]{ - OutputState: i.ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ + OutputState: i.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionCaptchaOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCaptchaOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptcha)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() } -func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { return o } -func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { return o } -func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { - return o.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return o.ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCaptcha) *WebAclRuleActionCaptcha { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { return &v - }).(WebAclRuleActionCaptchaPtrOutput) + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) } -func (o WebAclRuleActionCaptchaOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptcha] { - return pulumix.Output[WebAclRuleActionCaptcha]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { + return pulumix.Output[WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionCaptchaOutput) CustomRequestHandling() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleActionCaptcha) *WebAclRuleActionCaptchaCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +// Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) LabelName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) string { + return v.LabelName + }).(pulumi.StringOutput) } -type WebAclRuleActionCaptchaPtrOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCaptchaPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCaptcha)(nil)).Elem() +func (WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition)(nil)).Elem() } -func (o WebAclRuleActionCaptchaPtrOutput) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { return o } -func (o WebAclRuleActionCaptchaPtrOutput) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToWebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput { return o } -func (o WebAclRuleActionCaptchaPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptcha] { - return pulumix.Output[*WebAclRuleActionCaptcha]{ +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition] { + return pulumix.Output[*WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCaptchaPtrOutput) Elem() WebAclRuleActionCaptchaOutput { - return o.ApplyT(func(v *WebAclRuleActionCaptcha) WebAclRuleActionCaptcha { +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) Elem() WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { if v != nil { return *v } - var ret WebAclRuleActionCaptcha + var ret WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition return ret - }).(WebAclRuleActionCaptchaOutput) + }).(WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionCaptchaPtrOutput) CustomRequestHandling() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionCaptcha) *WebAclRuleActionCaptchaCustomRequestHandling { +// Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. +func (o WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionPtrOutput) LabelName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition) *string { if v == nil { return nil } - return v.CustomRequestHandling - }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) + return &v.LabelName + }).(pulumi.StringPtrOutput) } -type WebAclRuleActionCaptchaCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +type WebAclLoggingConfigurationRedactedField struct { + // HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclLoggingConfigurationRedactedFieldMethod `pulumi:"method"` + // Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclLoggingConfigurationRedactedFieldQueryString `pulumi:"queryString"` + // "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. + SingleHeader *WebAclLoggingConfigurationRedactedFieldSingleHeader `pulumi:"singleHeader"` + // Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + UriPath *WebAclLoggingConfigurationRedactedFieldUriPath `pulumi:"uriPath"` } -// WebAclRuleActionCaptchaCustomRequestHandlingInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingArgs and WebAclRuleActionCaptchaCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInput` via: +// WebAclLoggingConfigurationRedactedFieldInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldArgs and WebAclLoggingConfigurationRedactedFieldOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldInput` via: // -// WebAclRuleActionCaptchaCustomRequestHandlingArgs{...} -type WebAclRuleActionCaptchaCustomRequestHandlingInput interface { +// WebAclLoggingConfigurationRedactedFieldArgs{...} +type WebAclLoggingConfigurationRedactedFieldInput interface { pulumi.Input - ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput - ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput + ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput + ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldOutput } -type WebAclRuleActionCaptchaCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclLoggingConfigurationRedactedFieldArgs struct { + // HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclLoggingConfigurationRedactedFieldMethodPtrInput `pulumi:"method"` + // Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. + QueryString WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput `pulumi:"queryString"` + // "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. + SingleHeader WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput `pulumi:"singleHeader"` + // Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + UriPath WebAclLoggingConfigurationRedactedFieldUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleActionCaptchaCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedField)(nil)).Elem() } -func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput { - return i.ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldArgs) ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(context.Background()) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingOutput) +func (i WebAclLoggingConfigurationRedactedFieldArgs) ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldOutput) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedField] { + return pulumix.Output[WebAclLoggingConfigurationRedactedField]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingOutput).ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx) -} - -// WebAclRuleActionCaptchaCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingArgs, WebAclRuleActionCaptchaCustomRequestHandlingPtr and WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingPtrInput` via: -// -// WebAclRuleActionCaptchaCustomRequestHandlingArgs{...} -// -// or: +// WebAclLoggingConfigurationRedactedFieldArrayInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldArray and WebAclLoggingConfigurationRedactedFieldArrayOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldArrayInput` via: // -// nil -type WebAclRuleActionCaptchaCustomRequestHandlingPtrInput interface { +// WebAclLoggingConfigurationRedactedFieldArray{ WebAclLoggingConfigurationRedactedFieldArgs{...} } +type WebAclLoggingConfigurationRedactedFieldArrayInput interface { pulumi.Input - ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput - ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput + ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput + ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput } -type webAclRuleActionCaptchaCustomRequestHandlingPtrType WebAclRuleActionCaptchaCustomRequestHandlingArgs - -func WebAclRuleActionCaptchaCustomRequestHandlingPtr(v *WebAclRuleActionCaptchaCustomRequestHandlingArgs) WebAclRuleActionCaptchaCustomRequestHandlingPtrInput { - return (*webAclRuleActionCaptchaCustomRequestHandlingPtrType)(v) -} +type WebAclLoggingConfigurationRedactedFieldArray []WebAclLoggingConfigurationRedactedFieldInput -func (*webAclRuleActionCaptchaCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationRedactedField)(nil)).Elem() } -func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldArray) ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(context.Background()) } -func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +func (i WebAclLoggingConfigurationRedactedFieldArray) ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldArrayOutput) } -func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationRedactedField] { + return pulumix.Output[[]WebAclLoggingConfigurationRedactedField]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionCaptchaCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCaptchaCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedField)(nil)).Elem() } -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput { +func (o WebAclLoggingConfigurationRedactedFieldOutput) ToWebAclLoggingConfigurationRedactedFieldOutput() WebAclLoggingConfigurationRedactedFieldOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput { +func (o WebAclLoggingConfigurationRedactedFieldOutput) ToWebAclLoggingConfigurationRedactedFieldOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclLoggingConfigurationRedactedFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedField] { + return pulumix.Output[WebAclLoggingConfigurationRedactedField]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCaptchaCustomRequestHandling) *WebAclRuleActionCaptchaCustomRequestHandling { - return &v - }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +// HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclLoggingConfigurationRedactedFieldOutput) Method() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldMethod { + return v.Method + }).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) } -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling]{ - OutputState: o.OutputState, - } +// Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. +func (o WebAclLoggingConfigurationRedactedFieldOutput) QueryString() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldQueryString { + return v.QueryString + }).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandling) []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +// "singleHeader" refers to the redaction of a single header. For more information, please see the details below under Single Header. +func (o WebAclLoggingConfigurationRedactedFieldOutput) SingleHeader() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldSingleHeader { + return v.SingleHeader + }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) } -type WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. +func (o WebAclLoggingConfigurationRedactedFieldOutput) UriPath() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationRedactedField) *WebAclLoggingConfigurationRedactedFieldUriPath { + return v.UriPath + }).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) +} -func (WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() +type WebAclLoggingConfigurationRedactedFieldArrayOutput struct{ *pulumi.OutputState } + +func (WebAclLoggingConfigurationRedactedFieldArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclLoggingConfigurationRedactedField)(nil)).Elem() } -func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToWebAclLoggingConfigurationRedactedFieldArrayOutput() WebAclLoggingConfigurationRedactedFieldArrayOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToWebAclLoggingConfigurationRedactedFieldArrayOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldArrayOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling]{ +func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclLoggingConfigurationRedactedField] { + return pulumix.Output[[]WebAclLoggingConfigurationRedactedField]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionCaptchaCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleActionCaptchaCustomRequestHandling) WebAclRuleActionCaptchaCustomRequestHandling { - if v != nil { - return *v - } - var ret WebAclRuleActionCaptchaCustomRequestHandling - return ret - }).(WebAclRuleActionCaptchaCustomRequestHandlingOutput) -} - -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleActionCaptchaCustomRequestHandling) []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { - if v == nil { - return nil - } - return v.InsertHeaders - }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +func (o WebAclLoggingConfigurationRedactedFieldArrayOutput) Index(i pulumi.IntInput) WebAclLoggingConfigurationRedactedFieldOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclLoggingConfigurationRedactedField { + return vs[0].([]WebAclLoggingConfigurationRedactedField)[vs[1].(int)] + }).(WebAclLoggingConfigurationRedactedFieldOutput) } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclLoggingConfigurationRedactedFieldMethod struct { } -// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput` via: +// WebAclLoggingConfigurationRedactedFieldMethodInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldMethodArgs and WebAclLoggingConfigurationRedactedFieldMethodOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldMethodInput` via: // -// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput interface { +// WebAclLoggingConfigurationRedactedFieldMethodArgs{...} +type WebAclLoggingConfigurationRedactedFieldMethodInput interface { pulumi.Input - ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput + ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput + ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclLoggingConfigurationRedactedFieldMethodArgs struct { } -func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(context.Background()) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) +func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodOutput) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx).OutputState, } } -// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray and WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) +} + +func (i WebAclLoggingConfigurationRedactedFieldMethodArgs) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodOutput).ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx) +} + +// WebAclLoggingConfigurationRedactedFieldMethodPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldMethodArgs, WebAclLoggingConfigurationRedactedFieldMethodPtr and WebAclLoggingConfigurationRedactedFieldMethodPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldMethodPtrInput` via: // -// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclLoggingConfigurationRedactedFieldMethodArgs{...} +// +// or: +// +// nil +type WebAclLoggingConfigurationRedactedFieldMethodPtrInput interface { pulumi.Input - ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput + ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput +type webAclLoggingConfigurationRedactedFieldMethodPtrType WebAclLoggingConfigurationRedactedFieldMethodArgs -func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclLoggingConfigurationRedactedFieldMethodPtr(v *WebAclLoggingConfigurationRedactedFieldMethodArgs) WebAclLoggingConfigurationRedactedFieldMethodPtrInput { + return (*webAclLoggingConfigurationRedactedFieldMethodPtrType)(v) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclLoggingConfigurationRedactedFieldMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) +} + +func (i *webAclLoggingConfigurationRedactedFieldMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodOutput() WebAclLoggingConfigurationRedactedFieldMethodOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return o.ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldMethod) *WebAclLoggingConfigurationRedactedFieldMethod { + return &v + }).(WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) } -// Value of the custom header. -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationRedactedFieldMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldMethod]{ + OutputState: o.OutputState, + } } -type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldMethod)(nil)).Elem() } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutput() WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToWebAclLoggingConfigurationRedactedFieldMethodPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldMethodPtrOutput { return o } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ +func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) +func (o WebAclLoggingConfigurationRedactedFieldMethodPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldMethodOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldMethod) WebAclLoggingConfigurationRedactedFieldMethod { + if v != nil { + return *v + } + var ret WebAclLoggingConfigurationRedactedFieldMethod + return ret + }).(WebAclLoggingConfigurationRedactedFieldMethodOutput) } -type WebAclRuleActionChallenge struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleActionChallengeCustomRequestHandling `pulumi:"customRequestHandling"` +type WebAclLoggingConfigurationRedactedFieldQueryString struct { } -// WebAclRuleActionChallengeInput is an input type that accepts WebAclRuleActionChallengeArgs and WebAclRuleActionChallengeOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengeInput` via: +// WebAclLoggingConfigurationRedactedFieldQueryStringInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldQueryStringArgs and WebAclLoggingConfigurationRedactedFieldQueryStringOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldQueryStringInput` via: // -// WebAclRuleActionChallengeArgs{...} -type WebAclRuleActionChallengeInput interface { +// WebAclLoggingConfigurationRedactedFieldQueryStringArgs{...} +type WebAclLoggingConfigurationRedactedFieldQueryStringInput interface { pulumi.Input - ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput - ToWebAclRuleActionChallengeOutputWithContext(context.Context) WebAclRuleActionChallengeOutput + ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput + ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput } -type WebAclRuleActionChallengeArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleActionChallengeCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclLoggingConfigurationRedactedFieldQueryStringArgs struct { } -func (WebAclRuleActionChallengeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallenge)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() } -func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput { - return i.ToWebAclRuleActionChallengeOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengeOutputWithContext(ctx context.Context) WebAclRuleActionChallengeOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeOutput) +func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput) } -func (i WebAclRuleActionChallengeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallenge] { - return pulumix.Output[WebAclRuleActionChallenge]{ - OutputState: i.ToWebAclRuleActionChallengeOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { - return i.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeOutput).ToWebAclRuleActionChallengePtrOutputWithContext(ctx) +func (i WebAclLoggingConfigurationRedactedFieldQueryStringArgs) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput).ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx) } -// WebAclRuleActionChallengePtrInput is an input type that accepts WebAclRuleActionChallengeArgs, WebAclRuleActionChallengePtr and WebAclRuleActionChallengePtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengePtrInput` via: +// WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldQueryStringArgs, WebAclLoggingConfigurationRedactedFieldQueryStringPtr and WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput` via: // -// WebAclRuleActionChallengeArgs{...} +// WebAclLoggingConfigurationRedactedFieldQueryStringArgs{...} // // or: // // nil -type WebAclRuleActionChallengePtrInput interface { +type WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput - ToWebAclRuleActionChallengePtrOutputWithContext(context.Context) WebAclRuleActionChallengePtrOutput + ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput + ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput } -type webAclRuleActionChallengePtrType WebAclRuleActionChallengeArgs +type webAclLoggingConfigurationRedactedFieldQueryStringPtrType WebAclLoggingConfigurationRedactedFieldQueryStringArgs -func WebAclRuleActionChallengePtr(v *WebAclRuleActionChallengeArgs) WebAclRuleActionChallengePtrInput { - return (*webAclRuleActionChallengePtrType)(v) +func WebAclLoggingConfigurationRedactedFieldQueryStringPtr(v *WebAclLoggingConfigurationRedactedFieldQueryStringArgs) WebAclLoggingConfigurationRedactedFieldQueryStringPtrInput { + return (*webAclLoggingConfigurationRedactedFieldQueryStringPtrType)(v) } -func (*webAclRuleActionChallengePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionChallenge)(nil)).Elem() +func (*webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() } -func (i *webAclRuleActionChallengePtrType) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { - return i.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) +func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionChallengePtrType) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengePtrOutput) +func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) } -func (i *webAclRuleActionChallengePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallenge] { - return pulumix.Output[*WebAclRuleActionChallenge]{ - OutputState: i.ToWebAclRuleActionChallengePtrOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationRedactedFieldQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionChallengeOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallenge)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() } -func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutput() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { return o } -func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengeOutputWithContext(ctx context.Context) WebAclRuleActionChallengeOutput { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringOutput { return o } -func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { - return o.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) +func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return o.ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionChallenge) *WebAclRuleActionChallenge { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldQueryString) *WebAclLoggingConfigurationRedactedFieldQueryString { return &v - }).(WebAclRuleActionChallengePtrOutput) + }).(WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) } -func (o WebAclRuleActionChallengeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallenge] { - return pulumix.Output[WebAclRuleActionChallenge]{ +func (o WebAclLoggingConfigurationRedactedFieldQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldQueryString]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionChallengeOutput) CustomRequestHandling() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleActionChallenge) *WebAclRuleActionChallengeCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) -} - -type WebAclRuleActionChallengePtrOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionChallenge)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldQueryString)(nil)).Elem() } -func (o WebAclRuleActionChallengePtrOutput) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput() WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { return o } -func (o WebAclRuleActionChallengePtrOutput) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToWebAclLoggingConfigurationRedactedFieldQueryStringPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput { return o } -func (o WebAclRuleActionChallengePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallenge] { - return pulumix.Output[*WebAclRuleActionChallenge]{ +func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldQueryString]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionChallengePtrOutput) Elem() WebAclRuleActionChallengeOutput { - return o.ApplyT(func(v *WebAclRuleActionChallenge) WebAclRuleActionChallenge { +func (o WebAclLoggingConfigurationRedactedFieldQueryStringPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldQueryStringOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldQueryString) WebAclLoggingConfigurationRedactedFieldQueryString { if v != nil { return *v } - var ret WebAclRuleActionChallenge + var ret WebAclLoggingConfigurationRedactedFieldQueryString return ret - }).(WebAclRuleActionChallengeOutput) -} - -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionChallengePtrOutput) CustomRequestHandling() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionChallenge) *WebAclRuleActionChallengeCustomRequestHandling { - if v == nil { - return nil - } - return v.CustomRequestHandling - }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) + }).(WebAclLoggingConfigurationRedactedFieldQueryStringOutput) } -type WebAclRuleActionChallengeCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +type WebAclLoggingConfigurationRedactedFieldSingleHeader struct { + // Name of the query header to redact. This setting must be provided in lowercase characters. + Name string `pulumi:"name"` } -// WebAclRuleActionChallengeCustomRequestHandlingInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingArgs and WebAclRuleActionChallengeCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInput` via: +// WebAclLoggingConfigurationRedactedFieldSingleHeaderInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs and WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldSingleHeaderInput` via: // -// WebAclRuleActionChallengeCustomRequestHandlingArgs{...} -type WebAclRuleActionChallengeCustomRequestHandlingInput interface { +// WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs{...} +type WebAclLoggingConfigurationRedactedFieldSingleHeaderInput interface { pulumi.Input - ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput - ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput + ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput + ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput } -type WebAclRuleActionChallengeCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs struct { + // Name of the query header to redact. This setting must be provided in lowercase characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleActionChallengeCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() } -func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput { - return i.ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingOutput) +func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) } -func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingOutput).ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput).ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx) } -// WebAclRuleActionChallengeCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingArgs, WebAclRuleActionChallengeCustomRequestHandlingPtr and WebAclRuleActionChallengeCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingPtrInput` via: +// WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs, WebAclLoggingConfigurationRedactedFieldSingleHeaderPtr and WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput` via: // -// WebAclRuleActionChallengeCustomRequestHandlingArgs{...} +// WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs{...} // // or: // // nil -type WebAclRuleActionChallengeCustomRequestHandlingPtrInput interface { +type WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput interface { pulumi.Input - ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput - ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput + ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput + ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput } -type webAclRuleActionChallengeCustomRequestHandlingPtrType WebAclRuleActionChallengeCustomRequestHandlingArgs +type webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs -func WebAclRuleActionChallengeCustomRequestHandlingPtr(v *WebAclRuleActionChallengeCustomRequestHandlingArgs) WebAclRuleActionChallengeCustomRequestHandlingPtrInput { - return (*webAclRuleActionChallengeCustomRequestHandlingPtrType)(v) +func WebAclLoggingConfigurationRedactedFieldSingleHeaderPtr(v *WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrInput { + return (*webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType)(v) } -func (*webAclRuleActionChallengeCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() +func (*webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() } -func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) +func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) } -func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationRedactedFieldSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionChallengeCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengeCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() } -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return o.ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionChallengeCustomRequestHandling) *WebAclRuleActionChallengeCustomRequestHandling { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldSingleHeader) *WebAclLoggingConfigurationRedactedFieldSingleHeader { return &v - }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) + }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) } -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling]{ +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldSingleHeader]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandling) []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) +// Name of the query header to redact. This setting must be provided in lowercase characters. +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclLoggingConfigurationRedactedFieldSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleActionChallengeCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldSingleHeader)(nil)).Elem() } -func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput() WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToWebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling]{ +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionChallengeCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleActionChallengeCustomRequestHandling) WebAclRuleActionChallengeCustomRequestHandling { +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldSingleHeader) WebAclLoggingConfigurationRedactedFieldSingleHeader { if v != nil { return *v } - var ret WebAclRuleActionChallengeCustomRequestHandling + var ret WebAclLoggingConfigurationRedactedFieldSingleHeader return ret - }).(WebAclRuleActionChallengeCustomRequestHandlingOutput) + }).(WebAclLoggingConfigurationRedactedFieldSingleHeaderOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleActionChallengeCustomRequestHandling) []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { +// Name of the query header to redact. This setting must be provided in lowercase characters. +func (o WebAclLoggingConfigurationRedactedFieldSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldSingleHeader) *string { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclLoggingConfigurationRedactedFieldUriPath struct { } -// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput` via: +// WebAclLoggingConfigurationRedactedFieldUriPathInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldUriPathArgs and WebAclLoggingConfigurationRedactedFieldUriPathOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldUriPathInput` via: // -// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput interface { +// WebAclLoggingConfigurationRedactedFieldUriPathArgs{...} +type WebAclLoggingConfigurationRedactedFieldUriPathInput interface { pulumi.Input - ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput + ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput + ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclLoggingConfigurationRedactedFieldUriPathArgs struct { } -func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) +func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathOutput) } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx).OutputState, } } -// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray and WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) +} + +func (i WebAclLoggingConfigurationRedactedFieldUriPathArgs) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathOutput).ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx) +} + +// WebAclLoggingConfigurationRedactedFieldUriPathPtrInput is an input type that accepts WebAclLoggingConfigurationRedactedFieldUriPathArgs, WebAclLoggingConfigurationRedactedFieldUriPathPtr and WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclLoggingConfigurationRedactedFieldUriPathPtrInput` via: // -// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclLoggingConfigurationRedactedFieldUriPathArgs{...} +// +// or: +// +// nil +type WebAclLoggingConfigurationRedactedFieldUriPathPtrInput interface { pulumi.Input - ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput + ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray []WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput +type webAclLoggingConfigurationRedactedFieldUriPathPtrType WebAclLoggingConfigurationRedactedFieldUriPathArgs -func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclLoggingConfigurationRedactedFieldUriPathPtr(v *WebAclLoggingConfigurationRedactedFieldUriPathArgs) WebAclLoggingConfigurationRedactedFieldUriPathPtrInput { + return (*webAclLoggingConfigurationRedactedFieldUriPathPtrType)(v) } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclLoggingConfigurationRedactedFieldUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) +} + +func (i *webAclLoggingConfigurationRedactedFieldUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath]{ + OutputState: i.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathOutput() WebAclLoggingConfigurationRedactedFieldUriPathOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { +func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return o.ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclLoggingConfigurationRedactedFieldUriPath) *WebAclLoggingConfigurationRedactedFieldUriPath { + return &v + }).(WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) } -// Value of the custom header. -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +func (o WebAclLoggingConfigurationRedactedFieldUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath] { + return pulumix.Output[WebAclLoggingConfigurationRedactedFieldUriPath]{ + OutputState: o.OutputState, + } } -type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclLoggingConfigurationRedactedFieldUriPath)(nil)).Elem() } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutput() WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToWebAclLoggingConfigurationRedactedFieldUriPathPtrOutputWithContext(ctx context.Context) WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput { return o } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ +func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath] { + return pulumix.Output[*WebAclLoggingConfigurationRedactedFieldUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) +func (o WebAclLoggingConfigurationRedactedFieldUriPathPtrOutput) Elem() WebAclLoggingConfigurationRedactedFieldUriPathOutput { + return o.ApplyT(func(v *WebAclLoggingConfigurationRedactedFieldUriPath) WebAclLoggingConfigurationRedactedFieldUriPath { + if v != nil { + return *v + } + var ret WebAclLoggingConfigurationRedactedFieldUriPath + return ret + }).(WebAclLoggingConfigurationRedactedFieldUriPathOutput) } -type WebAclRuleActionCount struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleActionCountCustomRequestHandling `pulumi:"customRequestHandling"` +type WebAclRule struct { + // Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + Action *WebAclRuleAction `pulumi:"action"` + // Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. + CaptchaConfig *WebAclRuleCaptchaConfig `pulumi:"captchaConfig"` + // Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. + Name string `pulumi:"name"` + // Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. + OverrideAction *WebAclRuleOverrideAction `pulumi:"overrideAction"` + // If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + Priority int `pulumi:"priority"` + // Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. + RuleLabels []WebAclRuleRuleLabel `pulumi:"ruleLabels"` + // The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. + Statement WebAclRuleStatement `pulumi:"statement"` + // Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. + VisibilityConfig WebAclRuleVisibilityConfig `pulumi:"visibilityConfig"` } -// WebAclRuleActionCountInput is an input type that accepts WebAclRuleActionCountArgs and WebAclRuleActionCountOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountInput` via: +// WebAclRuleInput is an input type that accepts WebAclRuleArgs and WebAclRuleOutput values. +// You can construct a concrete instance of `WebAclRuleInput` via: // -// WebAclRuleActionCountArgs{...} -type WebAclRuleActionCountInput interface { +// WebAclRuleArgs{...} +type WebAclRuleInput interface { pulumi.Input - ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput - ToWebAclRuleActionCountOutputWithContext(context.Context) WebAclRuleActionCountOutput + ToWebAclRuleOutput() WebAclRuleOutput + ToWebAclRuleOutputWithContext(context.Context) WebAclRuleOutput } -type WebAclRuleActionCountArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleActionCountCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclRuleArgs struct { + // Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + Action WebAclRuleActionPtrInput `pulumi:"action"` + // Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. + CaptchaConfig WebAclRuleCaptchaConfigPtrInput `pulumi:"captchaConfig"` + // Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. + Name pulumi.StringInput `pulumi:"name"` + // Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. + OverrideAction WebAclRuleOverrideActionPtrInput `pulumi:"overrideAction"` + // If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + Priority pulumi.IntInput `pulumi:"priority"` + // Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. + RuleLabels WebAclRuleRuleLabelArrayInput `pulumi:"ruleLabels"` + // The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. + Statement WebAclRuleStatementInput `pulumi:"statement"` + // Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. + VisibilityConfig WebAclRuleVisibilityConfigInput `pulumi:"visibilityConfig"` } -func (WebAclRuleActionCountArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCount)(nil)).Elem() +func (WebAclRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRule)(nil)).Elem() } -func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput { - return i.ToWebAclRuleActionCountOutputWithContext(context.Background()) +func (i WebAclRuleArgs) ToWebAclRuleOutput() WebAclRuleOutput { + return i.ToWebAclRuleOutputWithContext(context.Background()) } -func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountOutputWithContext(ctx context.Context) WebAclRuleActionCountOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountOutput) +func (i WebAclRuleArgs) ToWebAclRuleOutputWithContext(ctx context.Context) WebAclRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOutput) } -func (i WebAclRuleActionCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCount] { - return pulumix.Output[WebAclRuleActionCount]{ - OutputState: i.ToWebAclRuleActionCountOutputWithContext(ctx).OutputState, +func (i WebAclRuleArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRule] { + return pulumix.Output[WebAclRule]{ + OutputState: i.ToWebAclRuleOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { - return i.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) -} +// WebAclRuleArrayInput is an input type that accepts WebAclRuleArray and WebAclRuleArrayOutput values. +// You can construct a concrete instance of `WebAclRuleArrayInput` via: +// +// WebAclRuleArray{ WebAclRuleArgs{...} } +type WebAclRuleArrayInput interface { + pulumi.Input -func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountOutput).ToWebAclRuleActionCountPtrOutputWithContext(ctx) + ToWebAclRuleArrayOutput() WebAclRuleArrayOutput + ToWebAclRuleArrayOutputWithContext(context.Context) WebAclRuleArrayOutput } -// WebAclRuleActionCountPtrInput is an input type that accepts WebAclRuleActionCountArgs, WebAclRuleActionCountPtr and WebAclRuleActionCountPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountPtrInput` via: -// -// WebAclRuleActionCountArgs{...} -// -// or: -// -// nil -type WebAclRuleActionCountPtrInput interface { - pulumi.Input +type WebAclRuleArray []WebAclRuleInput - ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput - ToWebAclRuleActionCountPtrOutputWithContext(context.Context) WebAclRuleActionCountPtrOutput +func (WebAclRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRule)(nil)).Elem() } -type webAclRuleActionCountPtrType WebAclRuleActionCountArgs +func (i WebAclRuleArray) ToWebAclRuleArrayOutput() WebAclRuleArrayOutput { + return i.ToWebAclRuleArrayOutputWithContext(context.Background()) +} -func WebAclRuleActionCountPtr(v *WebAclRuleActionCountArgs) WebAclRuleActionCountPtrInput { - return (*webAclRuleActionCountPtrType)(v) +func (i WebAclRuleArray) ToWebAclRuleArrayOutputWithContext(ctx context.Context) WebAclRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleArrayOutput) } -func (*webAclRuleActionCountPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCount)(nil)).Elem() +func (i WebAclRuleArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRule] { + return pulumix.Output[[]WebAclRule]{ + OutputState: i.ToWebAclRuleArrayOutputWithContext(ctx).OutputState, + } } -func (i *webAclRuleActionCountPtrType) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { - return i.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) +type WebAclRuleOutput struct{ *pulumi.OutputState } + +func (WebAclRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRule)(nil)).Elem() } -func (i *webAclRuleActionCountPtrType) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountPtrOutput) +func (o WebAclRuleOutput) ToWebAclRuleOutput() WebAclRuleOutput { + return o } -func (i *webAclRuleActionCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCount] { - return pulumix.Output[*WebAclRuleActionCount]{ - OutputState: i.ToWebAclRuleActionCountPtrOutputWithContext(ctx).OutputState, +func (o WebAclRuleOutput) ToWebAclRuleOutputWithContext(ctx context.Context) WebAclRuleOutput { + return o +} + +func (o WebAclRuleOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRule] { + return pulumix.Output[WebAclRule]{ + OutputState: o.OutputState, } } -type WebAclRuleActionCountOutput struct{ *pulumi.OutputState } +// Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. +func (o WebAclRuleOutput) Action() WebAclRuleActionPtrOutput { + return o.ApplyT(func(v WebAclRule) *WebAclRuleAction { return v.Action }).(WebAclRuleActionPtrOutput) +} -func (WebAclRuleActionCountOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCount)(nil)).Elem() +// Specifies how AWS WAF should handle CAPTCHA evaluations. See `captchaConfig` below for details. +func (o WebAclRuleOutput) CaptchaConfig() WebAclRuleCaptchaConfigPtrOutput { + return o.ApplyT(func(v WebAclRule) *WebAclRuleCaptchaConfig { return v.CaptchaConfig }).(WebAclRuleCaptchaConfigPtrOutput) } -func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput { - return o +// Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. +func (o WebAclRuleOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRule) string { return v.Name }).(pulumi.StringOutput) } -func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountOutputWithContext(ctx context.Context) WebAclRuleActionCountOutput { - return o +// Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `ruleGroupReferenceStatement` and `managedRuleGroupStatement`. See `overrideAction` below for details. +func (o WebAclRuleOutput) OverrideAction() WebAclRuleOverrideActionPtrOutput { + return o.ApplyT(func(v WebAclRule) *WebAclRuleOverrideAction { return v.OverrideAction }).(WebAclRuleOverrideActionPtrOutput) } -func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { - return o.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) +// If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. +func (o WebAclRuleOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRule) int { return v.Priority }).(pulumi.IntOutput) } -func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCount) *WebAclRuleActionCount { - return &v - }).(WebAclRuleActionCountPtrOutput) +// Labels to apply to web requests that match the rule match statement. See `ruleLabel` below for details. +func (o WebAclRuleOutput) RuleLabels() WebAclRuleRuleLabelArrayOutput { + return o.ApplyT(func(v WebAclRule) []WebAclRuleRuleLabel { return v.RuleLabels }).(WebAclRuleRuleLabelArrayOutput) } -func (o WebAclRuleActionCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCount] { - return pulumix.Output[WebAclRuleActionCount]{ - OutputState: o.OutputState, - } +// The AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See `statement` below for details. +func (o WebAclRuleOutput) Statement() WebAclRuleStatementOutput { + return o.ApplyT(func(v WebAclRule) WebAclRuleStatement { return v.Statement }).(WebAclRuleStatementOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionCountOutput) CustomRequestHandling() WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleActionCount) *WebAclRuleActionCountCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) +// Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibilityConfig` below for details. +func (o WebAclRuleOutput) VisibilityConfig() WebAclRuleVisibilityConfigOutput { + return o.ApplyT(func(v WebAclRule) WebAclRuleVisibilityConfig { return v.VisibilityConfig }).(WebAclRuleVisibilityConfigOutput) } -type WebAclRuleActionCountPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCountPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCount)(nil)).Elem() +func (WebAclRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRule)(nil)).Elem() } -func (o WebAclRuleActionCountPtrOutput) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { +func (o WebAclRuleArrayOutput) ToWebAclRuleArrayOutput() WebAclRuleArrayOutput { return o } -func (o WebAclRuleActionCountPtrOutput) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { +func (o WebAclRuleArrayOutput) ToWebAclRuleArrayOutputWithContext(ctx context.Context) WebAclRuleArrayOutput { return o } -func (o WebAclRuleActionCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCount] { - return pulumix.Output[*WebAclRuleActionCount]{ +func (o WebAclRuleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRule] { + return pulumix.Output[[]WebAclRule]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCountPtrOutput) Elem() WebAclRuleActionCountOutput { - return o.ApplyT(func(v *WebAclRuleActionCount) WebAclRuleActionCount { - if v != nil { - return *v - } - var ret WebAclRuleActionCount - return ret - }).(WebAclRuleActionCountOutput) -} - -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleActionCountPtrOutput) CustomRequestHandling() WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleActionCount) *WebAclRuleActionCountCustomRequestHandling { - if v == nil { - return nil - } - return v.CustomRequestHandling - }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) +func (o WebAclRuleArrayOutput) Index(i pulumi.IntInput) WebAclRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRule { + return vs[0].([]WebAclRule)[vs[1].(int)] + }).(WebAclRuleOutput) } -type WebAclRuleActionCountCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleActionCountCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +type WebAclRuleAction struct { + // Instructs AWS WAF to allow the web request. See `allow` below for details. + Allow *WebAclRuleActionAllow `pulumi:"allow"` + // Instructs AWS WAF to block the web request. See `block` below for details. + Block *WebAclRuleActionBlock `pulumi:"block"` + // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Captcha *WebAclRuleActionCaptcha `pulumi:"captcha"` + // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Challenge *WebAclRuleActionChallenge `pulumi:"challenge"` + // Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Count *WebAclRuleActionCount `pulumi:"count"` } -// WebAclRuleActionCountCustomRequestHandlingInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingArgs and WebAclRuleActionCountCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInput` via: +// WebAclRuleActionInput is an input type that accepts WebAclRuleActionArgs and WebAclRuleActionOutput values. +// You can construct a concrete instance of `WebAclRuleActionInput` via: // -// WebAclRuleActionCountCustomRequestHandlingArgs{...} -type WebAclRuleActionCountCustomRequestHandlingInput interface { +// WebAclRuleActionArgs{...} +type WebAclRuleActionInput interface { pulumi.Input - ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput - ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingOutput + ToWebAclRuleActionOutput() WebAclRuleActionOutput + ToWebAclRuleActionOutputWithContext(context.Context) WebAclRuleActionOutput } -type WebAclRuleActionCountCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclRuleActionArgs struct { + // Instructs AWS WAF to allow the web request. See `allow` below for details. + Allow WebAclRuleActionAllowPtrInput `pulumi:"allow"` + // Instructs AWS WAF to block the web request. See `block` below for details. + Block WebAclRuleActionBlockPtrInput `pulumi:"block"` + // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Captcha WebAclRuleActionCaptchaPtrInput `pulumi:"captcha"` + // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Challenge WebAclRuleActionChallengePtrInput `pulumi:"challenge"` + // Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Count WebAclRuleActionCountPtrInput `pulumi:"count"` } -func (WebAclRuleActionCountCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() +func (WebAclRuleActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleAction)(nil)).Elem() } -func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput { - return i.ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclRuleActionArgs) ToWebAclRuleActionOutput() WebAclRuleActionOutput { + return i.ToWebAclRuleActionOutputWithContext(context.Background()) } -func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingOutput) +func (i WebAclRuleActionArgs) ToWebAclRuleActionOutputWithContext(ctx context.Context) WebAclRuleActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionOutput) } -func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionCountCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleAction] { + return pulumix.Output[WebAclRuleAction]{ + OutputState: i.ToWebAclRuleActionOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionArgs) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { + return i.ToWebAclRuleActionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingOutput).ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclRuleActionArgs) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionOutput).ToWebAclRuleActionPtrOutputWithContext(ctx) } -// WebAclRuleActionCountCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingArgs, WebAclRuleActionCountCustomRequestHandlingPtr and WebAclRuleActionCountCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingPtrInput` via: +// WebAclRuleActionPtrInput is an input type that accepts WebAclRuleActionArgs, WebAclRuleActionPtr and WebAclRuleActionPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionPtrInput` via: // -// WebAclRuleActionCountCustomRequestHandlingArgs{...} +// WebAclRuleActionArgs{...} // // or: // // nil -type WebAclRuleActionCountCustomRequestHandlingPtrInput interface { +type WebAclRuleActionPtrInput interface { pulumi.Input - ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput - ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput + ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput + ToWebAclRuleActionPtrOutputWithContext(context.Context) WebAclRuleActionPtrOutput } -type webAclRuleActionCountCustomRequestHandlingPtrType WebAclRuleActionCountCustomRequestHandlingArgs +type webAclRuleActionPtrType WebAclRuleActionArgs -func WebAclRuleActionCountCustomRequestHandlingPtr(v *WebAclRuleActionCountCustomRequestHandlingArgs) WebAclRuleActionCountCustomRequestHandlingPtrInput { - return (*webAclRuleActionCountCustomRequestHandlingPtrType)(v) +func WebAclRuleActionPtr(v *WebAclRuleActionArgs) WebAclRuleActionPtrInput { + return (*webAclRuleActionPtrType)(v) } -func (*webAclRuleActionCountCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() +func (*webAclRuleActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleAction)(nil)).Elem() } -func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionPtrType) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { + return i.ToWebAclRuleActionPtrOutputWithContext(context.Background()) } -func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) +func (i *webAclRuleActionPtrType) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionPtrOutput) } -func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCountCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionCountCustomRequestHandling]{ - OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleAction] { + return pulumix.Output[*WebAclRuleAction]{ + OutputState: i.ToWebAclRuleActionPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionCountCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclRuleActionOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCountCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() +func (WebAclRuleActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleAction)(nil)).Elem() } -func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput { +func (o WebAclRuleActionOutput) ToWebAclRuleActionOutput() WebAclRuleActionOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingOutput { +func (o WebAclRuleActionOutput) ToWebAclRuleActionOutputWithContext(ctx context.Context) WebAclRuleActionOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionOutput) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { + return o.ToWebAclRuleActionPtrOutputWithContext(context.Background()) } -func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCountCustomRequestHandling) *WebAclRuleActionCountCustomRequestHandling { +func (o WebAclRuleActionOutput) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleAction) *WebAclRuleAction { return &v - }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) + }).(WebAclRuleActionPtrOutput) } -func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandling] { - return pulumix.Output[WebAclRuleActionCountCustomRequestHandling]{ +func (o WebAclRuleActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleAction] { + return pulumix.Output[WebAclRuleAction]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionCountCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandling) []WebAclRuleActionCountCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) +// Instructs AWS WAF to allow the web request. See `allow` below for details. +func (o WebAclRuleActionOutput) Allow() WebAclRuleActionAllowPtrOutput { + return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionAllow { return v.Allow }).(WebAclRuleActionAllowPtrOutput) } -type WebAclRuleActionCountCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// Instructs AWS WAF to block the web request. See `block` below for details. +func (o WebAclRuleActionOutput) Block() WebAclRuleActionBlockPtrOutput { + return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionBlock { return v.Block }).(WebAclRuleActionBlockPtrOutput) +} -func (WebAclRuleActionCountCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() +// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. +func (o WebAclRuleActionOutput) Captcha() WebAclRuleActionCaptchaPtrOutput { + return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionCaptcha { return v.Captcha }).(WebAclRuleActionCaptchaPtrOutput) } -func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { +// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. +func (o WebAclRuleActionOutput) Challenge() WebAclRuleActionChallengePtrOutput { + return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionChallenge { return v.Challenge }).(WebAclRuleActionChallengePtrOutput) +} + +// Instructs AWS WAF to count the web request and allow it. See `count` below for details. +func (o WebAclRuleActionOutput) Count() WebAclRuleActionCountPtrOutput { + return o.ApplyT(func(v WebAclRuleAction) *WebAclRuleActionCount { return v.Count }).(WebAclRuleActionCountPtrOutput) +} + +type WebAclRuleActionPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleAction)(nil)).Elem() +} + +func (o WebAclRuleActionPtrOutput) ToWebAclRuleActionPtrOutput() WebAclRuleActionPtrOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { +func (o WebAclRuleActionPtrOutput) ToWebAclRuleActionPtrOutputWithContext(ctx context.Context) WebAclRuleActionPtrOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCountCustomRequestHandling] { - return pulumix.Output[*WebAclRuleActionCountCustomRequestHandling]{ +func (o WebAclRuleActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleAction] { + return pulumix.Output[*WebAclRuleAction]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionCountCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleActionCountCustomRequestHandling) WebAclRuleActionCountCustomRequestHandling { +func (o WebAclRuleActionPtrOutput) Elem() WebAclRuleActionOutput { + return o.ApplyT(func(v *WebAclRuleAction) WebAclRuleAction { if v != nil { return *v } - var ret WebAclRuleActionCountCustomRequestHandling + var ret WebAclRuleAction return ret - }).(WebAclRuleActionCountCustomRequestHandlingOutput) + }).(WebAclRuleActionOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleActionCountCustomRequestHandling) []WebAclRuleActionCountCustomRequestHandlingInsertHeader { +// Instructs AWS WAF to allow the web request. See `allow` below for details. +func (o WebAclRuleActionPtrOutput) Allow() WebAclRuleActionAllowPtrOutput { + return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionAllow { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) + return v.Allow + }).(WebAclRuleActionAllowPtrOutput) } -type WebAclRuleActionCountCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +// Instructs AWS WAF to block the web request. See `block` below for details. +func (o WebAclRuleActionPtrOutput) Block() WebAclRuleActionBlockPtrOutput { + return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionBlock { + if v == nil { + return nil + } + return v.Block + }).(WebAclRuleActionBlockPtrOutput) } -// WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput` via: +// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. +func (o WebAclRuleActionPtrOutput) Captcha() WebAclRuleActionCaptchaPtrOutput { + return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionCaptcha { + if v == nil { + return nil + } + return v.Captcha + }).(WebAclRuleActionCaptchaPtrOutput) +} + +// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. +func (o WebAclRuleActionPtrOutput) Challenge() WebAclRuleActionChallengePtrOutput { + return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionChallenge { + if v == nil { + return nil + } + return v.Challenge + }).(WebAclRuleActionChallengePtrOutput) +} + +// Instructs AWS WAF to count the web request and allow it. See `count` below for details. +func (o WebAclRuleActionPtrOutput) Count() WebAclRuleActionCountPtrOutput { + return o.ApplyT(func(v *WebAclRuleAction) *WebAclRuleActionCount { + if v == nil { + return nil + } + return v.Count + }).(WebAclRuleActionCountPtrOutput) +} + +type WebAclRuleActionAllow struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleActionAllowCustomRequestHandling `pulumi:"customRequestHandling"` +} + +// WebAclRuleActionAllowInput is an input type that accepts WebAclRuleActionAllowArgs and WebAclRuleActionAllowOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowInput` via: // -// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput interface { +// WebAclRuleActionAllowArgs{...} +type WebAclRuleActionAllowInput interface { pulumi.Input - ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput + ToWebAclRuleActionAllowOutputWithContext(context.Context) WebAclRuleActionAllowOutput } -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleActionAllowArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleActionAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleActionAllowArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllow)(nil)).Elem() } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput { + return i.ToWebAclRuleActionAllowOutputWithContext(context.Background()) } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) +func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowOutputWithContext(ctx context.Context) WebAclRuleActionAllowOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowOutput) } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllow] { + return pulumix.Output[WebAclRuleActionAllow]{ + OutputState: i.ToWebAclRuleActionAllowOutputWithContext(ctx).OutputState, } } -// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray and WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { + return i.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleActionAllowArgs) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowOutput).ToWebAclRuleActionAllowPtrOutputWithContext(ctx) +} + +// WebAclRuleActionAllowPtrInput is an input type that accepts WebAclRuleActionAllowArgs, WebAclRuleActionAllowPtr and WebAclRuleActionAllowPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowPtrInput` via: // -// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclRuleActionAllowArgs{...} +// +// or: +// +// nil +type WebAclRuleActionAllowPtrInput interface { pulumi.Input - ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput + ToWebAclRuleActionAllowPtrOutputWithContext(context.Context) WebAclRuleActionAllowPtrOutput } -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray []WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput +type webAclRuleActionAllowPtrType WebAclRuleActionAllowArgs -func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclRuleActionAllowPtr(v *WebAclRuleActionAllowArgs) WebAclRuleActionAllowPtrInput { + return (*webAclRuleActionAllowPtrType)(v) } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleActionAllowPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionAllow)(nil)).Elem() } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclRuleActionAllowPtrType) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { + return i.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) } -func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionAllowPtrType) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowPtrOutput) +} + +func (i *webAclRuleActionAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllow] { + return pulumix.Output[*WebAclRuleActionAllow]{ + OutputState: i.ToWebAclRuleActionAllowPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleActionAllowOutput struct{ *pulumi.OutputState } -func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleActionAllowOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllow)(nil)).Elem() } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowOutput() WebAclRuleActionAllowOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowOutputWithContext(ctx context.Context) WebAclRuleActionAllowOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { + return o.ToWebAclRuleActionAllowPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) +func (o WebAclRuleActionAllowOutput) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionAllow) *WebAclRuleActionAllow { + return &v + }).(WebAclRuleActionAllowPtrOutput) } -// Value of the custom header. -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +func (o WebAclRuleActionAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllow] { + return pulumix.Output[WebAclRuleActionAllow]{ + OutputState: o.OutputState, + } } -type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionAllowOutput) CustomRequestHandling() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleActionAllow) *WebAclRuleActionAllowCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) +} -func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() +type WebAclRuleActionAllowPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionAllowPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionAllow)(nil)).Elem() } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleActionAllowPtrOutput) ToWebAclRuleActionAllowPtrOutput() WebAclRuleActionAllowPtrOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleActionAllowPtrOutput) ToWebAclRuleActionAllowPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowPtrOutput { return o } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleActionAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllow] { + return pulumix.Output[*WebAclRuleActionAllow]{ OutputState: o.OutputState, } } -func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionCountCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleActionCountCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) +func (o WebAclRuleActionAllowPtrOutput) Elem() WebAclRuleActionAllowOutput { + return o.ApplyT(func(v *WebAclRuleActionAllow) WebAclRuleActionAllow { + if v != nil { + return *v + } + var ret WebAclRuleActionAllow + return ret + }).(WebAclRuleActionAllowOutput) } -type WebAclRuleCaptchaConfig struct { - // Defines custom immunity time. See `immunityTimeProperty` below for details. - ImmunityTimeProperty *WebAclRuleCaptchaConfigImmunityTimeProperty `pulumi:"immunityTimeProperty"` +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionAllowPtrOutput) CustomRequestHandling() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionAllow) *WebAclRuleActionAllowCustomRequestHandling { + if v == nil { + return nil + } + return v.CustomRequestHandling + }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) } -// WebAclRuleCaptchaConfigInput is an input type that accepts WebAclRuleCaptchaConfigArgs and WebAclRuleCaptchaConfigOutput values. -// You can construct a concrete instance of `WebAclRuleCaptchaConfigInput` via: +type WebAclRuleActionAllowCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleActionAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +} + +// WebAclRuleActionAllowCustomRequestHandlingInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingArgs and WebAclRuleActionAllowCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInput` via: // -// WebAclRuleCaptchaConfigArgs{...} -type WebAclRuleCaptchaConfigInput interface { +// WebAclRuleActionAllowCustomRequestHandlingArgs{...} +type WebAclRuleActionAllowCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput - ToWebAclRuleCaptchaConfigOutputWithContext(context.Context) WebAclRuleCaptchaConfigOutput + ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput + ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput } -type WebAclRuleCaptchaConfigArgs struct { - // Defines custom immunity time. See `immunityTimeProperty` below for details. - ImmunityTimeProperty WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput `pulumi:"immunityTimeProperty"` +type WebAclRuleActionAllowCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleCaptchaConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleCaptchaConfig)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput { - return i.ToWebAclRuleCaptchaConfigOutputWithContext(context.Background()) +func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput { + return i.ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigOutput) +func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingOutput) } -func (i WebAclRuleCaptchaConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfig] { - return pulumix.Output[WebAclRuleCaptchaConfig]{ - OutputState: i.ToWebAclRuleCaptchaConfigOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionAllowCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { - return i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigOutput).ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx) +func (i WebAclRuleActionAllowCustomRequestHandlingArgs) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingOutput).ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleCaptchaConfigPtrInput is an input type that accepts WebAclRuleCaptchaConfigArgs, WebAclRuleCaptchaConfigPtr and WebAclRuleCaptchaConfigPtrOutput values. -// You can construct a concrete instance of `WebAclRuleCaptchaConfigPtrInput` via: +// WebAclRuleActionAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingArgs, WebAclRuleActionAllowCustomRequestHandlingPtr and WebAclRuleActionAllowCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingPtrInput` via: // -// WebAclRuleCaptchaConfigArgs{...} +// WebAclRuleActionAllowCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclRuleCaptchaConfigPtrInput interface { +type WebAclRuleActionAllowCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput - ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Context) WebAclRuleCaptchaConfigPtrOutput + ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput + ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput } -type webAclRuleCaptchaConfigPtrType WebAclRuleCaptchaConfigArgs +type webAclRuleActionAllowCustomRequestHandlingPtrType WebAclRuleActionAllowCustomRequestHandlingArgs -func WebAclRuleCaptchaConfigPtr(v *WebAclRuleCaptchaConfigArgs) WebAclRuleCaptchaConfigPtrInput { - return (*webAclRuleCaptchaConfigPtrType)(v) +func WebAclRuleActionAllowCustomRequestHandlingPtr(v *WebAclRuleActionAllowCustomRequestHandlingArgs) WebAclRuleActionAllowCustomRequestHandlingPtrInput { + return (*webAclRuleActionAllowCustomRequestHandlingPtrType)(v) } -func (*webAclRuleCaptchaConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleCaptchaConfig)(nil)).Elem() +func (*webAclRuleActionAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() } -func (i *webAclRuleCaptchaConfigPtrType) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { - return i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclRuleCaptchaConfigPtrType) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigPtrOutput) +func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) } -func (i *webAclRuleCaptchaConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfig] { - return pulumix.Output[*WebAclRuleCaptchaConfig]{ - OutputState: i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleCaptchaConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleActionAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleCaptchaConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleCaptchaConfig)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingOutput() WebAclRuleActionAllowCustomRequestHandlingOutput { return o } -func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingOutput { return o } -func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { - return o.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfig { +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionAllowCustomRequestHandling) *WebAclRuleActionAllowCustomRequestHandling { return &v - }).(WebAclRuleCaptchaConfigPtrOutput) + }).(WebAclRuleActionAllowCustomRequestHandlingPtrOutput) } -func (o WebAclRuleCaptchaConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfig] { - return pulumix.Output[WebAclRuleCaptchaConfig]{ +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -// Defines custom immunity time. See `immunityTimeProperty` below for details. -func (o WebAclRuleCaptchaConfigOutput) ImmunityTimeProperty() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyT(func(v WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfigImmunityTimeProperty { - return v.ImmunityTimeProperty - }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionAllowCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandling) []WebAclRuleActionAllowCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleCaptchaConfigPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleCaptchaConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleCaptchaConfig)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionAllowCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleCaptchaConfigPtrOutput) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutput() WebAclRuleActionAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleCaptchaConfigPtrOutput) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToWebAclRuleActionAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleCaptchaConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfig] { - return pulumix.Output[*WebAclRuleCaptchaConfig]{ +func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleCaptchaConfigPtrOutput) Elem() WebAclRuleCaptchaConfigOutput { - return o.ApplyT(func(v *WebAclRuleCaptchaConfig) WebAclRuleCaptchaConfig { +func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionAllowCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleActionAllowCustomRequestHandling) WebAclRuleActionAllowCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleCaptchaConfig + var ret WebAclRuleActionAllowCustomRequestHandling return ret - }).(WebAclRuleCaptchaConfigOutput) + }).(WebAclRuleActionAllowCustomRequestHandlingOutput) } -// Defines custom immunity time. See `immunityTimeProperty` below for details. -func (o WebAclRuleCaptchaConfigPtrOutput) ImmunityTimeProperty() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyT(func(v *WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfigImmunityTimeProperty { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleActionAllowCustomRequestHandling) []WebAclRuleActionAllowCustomRequestHandlingInsertHeader { if v == nil { return nil } - return v.ImmunityTimeProperty - }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) + return v.InsertHeaders + }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleCaptchaConfigImmunityTimeProperty struct { - // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - ImmunityTime *int `pulumi:"immunityTime"` +type WebAclRuleActionAllowCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -// WebAclRuleCaptchaConfigImmunityTimePropertyInput is an input type that accepts WebAclRuleCaptchaConfigImmunityTimePropertyArgs and WebAclRuleCaptchaConfigImmunityTimePropertyOutput values. -// You can construct a concrete instance of `WebAclRuleCaptchaConfigImmunityTimePropertyInput` via: +// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleCaptchaConfigImmunityTimePropertyArgs{...} -type WebAclRuleCaptchaConfigImmunityTimePropertyInput interface { +// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput - ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput + ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleCaptchaConfigImmunityTimePropertyArgs struct { - // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - ImmunityTime pulumi.IntPtrInput `pulumi:"immunityTime"` +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { - return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(context.Background()) +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput) +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty]{ - OutputState: i.ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput).ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx) -} - -// WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput is an input type that accepts WebAclRuleCaptchaConfigImmunityTimePropertyArgs, WebAclRuleCaptchaConfigImmunityTimePropertyPtr and WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput` via: -// -// WebAclRuleCaptchaConfigImmunityTimePropertyArgs{...} -// -// or: +// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray and WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput interface { +// WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput - ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput + ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleCaptchaConfigImmunityTimePropertyPtrType WebAclRuleCaptchaConfigImmunityTimePropertyArgs - -func WebAclRuleCaptchaConfigImmunityTimePropertyPtr(v *WebAclRuleCaptchaConfigImmunityTimePropertyArgs) WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput { - return (*webAclRuleCaptchaConfigImmunityTimePropertyPtrType)(v) -} +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray []WebAclRuleActionAllowCustomRequestHandlingInsertHeaderInput -func (*webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty]{ - OutputState: i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleCaptchaConfigImmunityTimePropertyOutput struct{ *pulumi.OutputState } +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() +func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleCaptchaConfigImmunityTimeProperty) *WebAclRuleCaptchaConfigImmunityTimeProperty { - return &v - }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) -} - -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty]{ +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. -func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ImmunityTime() pulumi.IntPtrOutput { - return o.ApplyT(func(v WebAclRuleCaptchaConfigImmunityTimeProperty) *int { return v.ImmunityTime }).(pulumi.IntPtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput struct{ *pulumi.OutputState } +// Value of the custom header. +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionAllowCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) +} -func (WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() +type WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty] { - return pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty]{ +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) Elem() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { - return o.ApplyT(func(v *WebAclRuleCaptchaConfigImmunityTimeProperty) WebAclRuleCaptchaConfigImmunityTimeProperty { - if v != nil { - return *v - } - var ret WebAclRuleCaptchaConfigImmunityTimeProperty - return ret - }).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput) -} - -// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. -func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ImmunityTime() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclRuleCaptchaConfigImmunityTimeProperty) *int { - if v == nil { - return nil - } - return v.ImmunityTime - }).(pulumi.IntPtrOutput) +func (o WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionAllowCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleActionAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleOverrideAction struct { - // Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. - Count *WebAclRuleOverrideActionCount `pulumi:"count"` - // Don't override the rule action setting. Configured as an empty block `{}`. - None *WebAclRuleOverrideActionNone `pulumi:"none"` +type WebAclRuleActionBlock struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse *WebAclRuleActionBlockCustomResponse `pulumi:"customResponse"` } -// WebAclRuleOverrideActionInput is an input type that accepts WebAclRuleOverrideActionArgs and WebAclRuleOverrideActionOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionInput` via: +// WebAclRuleActionBlockInput is an input type that accepts WebAclRuleActionBlockArgs and WebAclRuleActionBlockOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockInput` via: // -// WebAclRuleOverrideActionArgs{...} -type WebAclRuleOverrideActionInput interface { +// WebAclRuleActionBlockArgs{...} +type WebAclRuleActionBlockInput interface { pulumi.Input - ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput - ToWebAclRuleOverrideActionOutputWithContext(context.Context) WebAclRuleOverrideActionOutput + ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput + ToWebAclRuleActionBlockOutputWithContext(context.Context) WebAclRuleActionBlockOutput } -type WebAclRuleOverrideActionArgs struct { - // Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. - Count WebAclRuleOverrideActionCountPtrInput `pulumi:"count"` - // Don't override the rule action setting. Configured as an empty block `{}`. - None WebAclRuleOverrideActionNonePtrInput `pulumi:"none"` +type WebAclRuleActionBlockArgs struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse WebAclRuleActionBlockCustomResponsePtrInput `pulumi:"customResponse"` } -func (WebAclRuleOverrideActionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideAction)(nil)).Elem() +func (WebAclRuleActionBlockArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlock)(nil)).Elem() } -func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput { - return i.ToWebAclRuleOverrideActionOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput { + return i.ToWebAclRuleActionBlockOutputWithContext(context.Background()) } -func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionOutputWithContext(ctx context.Context) WebAclRuleOverrideActionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionOutput) +func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockOutputWithContext(ctx context.Context) WebAclRuleActionBlockOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockOutput) } -func (i WebAclRuleOverrideActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideAction] { - return pulumix.Output[WebAclRuleOverrideAction]{ - OutputState: i.ToWebAclRuleOverrideActionOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlock] { + return pulumix.Output[WebAclRuleActionBlock]{ + OutputState: i.ToWebAclRuleActionBlockOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { - return i.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { + return i.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) } -func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionOutput).ToWebAclRuleOverrideActionPtrOutputWithContext(ctx) +func (i WebAclRuleActionBlockArgs) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockOutput).ToWebAclRuleActionBlockPtrOutputWithContext(ctx) } -// WebAclRuleOverrideActionPtrInput is an input type that accepts WebAclRuleOverrideActionArgs, WebAclRuleOverrideActionPtr and WebAclRuleOverrideActionPtrOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionPtrInput` via: +// WebAclRuleActionBlockPtrInput is an input type that accepts WebAclRuleActionBlockArgs, WebAclRuleActionBlockPtr and WebAclRuleActionBlockPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockPtrInput` via: // -// WebAclRuleOverrideActionArgs{...} +// WebAclRuleActionBlockArgs{...} // // or: // // nil -type WebAclRuleOverrideActionPtrInput interface { +type WebAclRuleActionBlockPtrInput interface { pulumi.Input - ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput - ToWebAclRuleOverrideActionPtrOutputWithContext(context.Context) WebAclRuleOverrideActionPtrOutput + ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput + ToWebAclRuleActionBlockPtrOutputWithContext(context.Context) WebAclRuleActionBlockPtrOutput } -type webAclRuleOverrideActionPtrType WebAclRuleOverrideActionArgs +type webAclRuleActionBlockPtrType WebAclRuleActionBlockArgs -func WebAclRuleOverrideActionPtr(v *WebAclRuleOverrideActionArgs) WebAclRuleOverrideActionPtrInput { - return (*webAclRuleOverrideActionPtrType)(v) +func WebAclRuleActionBlockPtr(v *WebAclRuleActionBlockArgs) WebAclRuleActionBlockPtrInput { + return (*webAclRuleActionBlockPtrType)(v) } -func (*webAclRuleOverrideActionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideAction)(nil)).Elem() +func (*webAclRuleActionBlockPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionBlock)(nil)).Elem() } -func (i *webAclRuleOverrideActionPtrType) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { - return i.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionBlockPtrType) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { + return i.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) } -func (i *webAclRuleOverrideActionPtrType) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionPtrOutput) +func (i *webAclRuleActionBlockPtrType) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockPtrOutput) } -func (i *webAclRuleOverrideActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideAction] { - return pulumix.Output[*WebAclRuleOverrideAction]{ - OutputState: i.ToWebAclRuleOverrideActionPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlock] { + return pulumix.Output[*WebAclRuleActionBlock]{ + OutputState: i.ToWebAclRuleActionBlockPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleOverrideActionOutput struct{ *pulumi.OutputState } +type WebAclRuleActionBlockOutput struct{ *pulumi.OutputState } -func (WebAclRuleOverrideActionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideAction)(nil)).Elem() +func (WebAclRuleActionBlockOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlock)(nil)).Elem() } -func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput { +func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockOutput() WebAclRuleActionBlockOutput { return o } -func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionOutputWithContext(ctx context.Context) WebAclRuleOverrideActionOutput { +func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockOutputWithContext(ctx context.Context) WebAclRuleActionBlockOutput { return o } -func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { - return o.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { + return o.ToWebAclRuleActionBlockPtrOutputWithContext(context.Background()) } -func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideAction) *WebAclRuleOverrideAction { +func (o WebAclRuleActionBlockOutput) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionBlock) *WebAclRuleActionBlock { return &v - }).(WebAclRuleOverrideActionPtrOutput) + }).(WebAclRuleActionBlockPtrOutput) } -func (o WebAclRuleOverrideActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideAction] { - return pulumix.Output[WebAclRuleOverrideAction]{ +func (o WebAclRuleActionBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlock] { + return pulumix.Output[WebAclRuleActionBlock]{ OutputState: o.OutputState, } } -// Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. -func (o WebAclRuleOverrideActionOutput) Count() WebAclRuleOverrideActionCountPtrOutput { - return o.ApplyT(func(v WebAclRuleOverrideAction) *WebAclRuleOverrideActionCount { return v.Count }).(WebAclRuleOverrideActionCountPtrOutput) +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclRuleActionBlockOutput) CustomResponse() WebAclRuleActionBlockCustomResponsePtrOutput { + return o.ApplyT(func(v WebAclRuleActionBlock) *WebAclRuleActionBlockCustomResponse { return v.CustomResponse }).(WebAclRuleActionBlockCustomResponsePtrOutput) } -// Don't override the rule action setting. Configured as an empty block `{}`. -func (o WebAclRuleOverrideActionOutput) None() WebAclRuleOverrideActionNonePtrOutput { - return o.ApplyT(func(v WebAclRuleOverrideAction) *WebAclRuleOverrideActionNone { return v.None }).(WebAclRuleOverrideActionNonePtrOutput) -} - -type WebAclRuleOverrideActionPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionBlockPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleOverrideActionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideAction)(nil)).Elem() +func (WebAclRuleActionBlockPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionBlock)(nil)).Elem() } -func (o WebAclRuleOverrideActionPtrOutput) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { +func (o WebAclRuleActionBlockPtrOutput) ToWebAclRuleActionBlockPtrOutput() WebAclRuleActionBlockPtrOutput { return o } -func (o WebAclRuleOverrideActionPtrOutput) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { +func (o WebAclRuleActionBlockPtrOutput) ToWebAclRuleActionBlockPtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockPtrOutput { return o } -func (o WebAclRuleOverrideActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideAction] { - return pulumix.Output[*WebAclRuleOverrideAction]{ +func (o WebAclRuleActionBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlock] { + return pulumix.Output[*WebAclRuleActionBlock]{ OutputState: o.OutputState, } } -func (o WebAclRuleOverrideActionPtrOutput) Elem() WebAclRuleOverrideActionOutput { - return o.ApplyT(func(v *WebAclRuleOverrideAction) WebAclRuleOverrideAction { +func (o WebAclRuleActionBlockPtrOutput) Elem() WebAclRuleActionBlockOutput { + return o.ApplyT(func(v *WebAclRuleActionBlock) WebAclRuleActionBlock { if v != nil { return *v } - var ret WebAclRuleOverrideAction + var ret WebAclRuleActionBlock return ret - }).(WebAclRuleOverrideActionOutput) -} - -// Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. -func (o WebAclRuleOverrideActionPtrOutput) Count() WebAclRuleOverrideActionCountPtrOutput { - return o.ApplyT(func(v *WebAclRuleOverrideAction) *WebAclRuleOverrideActionCount { - if v == nil { - return nil - } - return v.Count - }).(WebAclRuleOverrideActionCountPtrOutput) + }).(WebAclRuleActionBlockOutput) } -// Don't override the rule action setting. Configured as an empty block `{}`. -func (o WebAclRuleOverrideActionPtrOutput) None() WebAclRuleOverrideActionNonePtrOutput { - return o.ApplyT(func(v *WebAclRuleOverrideAction) *WebAclRuleOverrideActionNone { +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclRuleActionBlockPtrOutput) CustomResponse() WebAclRuleActionBlockCustomResponsePtrOutput { + return o.ApplyT(func(v *WebAclRuleActionBlock) *WebAclRuleActionBlockCustomResponse { if v == nil { return nil } - return v.None - }).(WebAclRuleOverrideActionNonePtrOutput) + return v.CustomResponse + }).(WebAclRuleActionBlockCustomResponsePtrOutput) } -type WebAclRuleOverrideActionCount struct { +type WebAclRuleActionBlockCustomResponse struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode int `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders []WebAclRuleActionBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` } -// WebAclRuleOverrideActionCountInput is an input type that accepts WebAclRuleOverrideActionCountArgs and WebAclRuleOverrideActionCountOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionCountInput` via: +// WebAclRuleActionBlockCustomResponseInput is an input type that accepts WebAclRuleActionBlockCustomResponseArgs and WebAclRuleActionBlockCustomResponseOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseInput` via: // -// WebAclRuleOverrideActionCountArgs{...} -type WebAclRuleOverrideActionCountInput interface { +// WebAclRuleActionBlockCustomResponseArgs{...} +type WebAclRuleActionBlockCustomResponseInput interface { pulumi.Input - ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput - ToWebAclRuleOverrideActionCountOutputWithContext(context.Context) WebAclRuleOverrideActionCountOutput + ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput + ToWebAclRuleActionBlockCustomResponseOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseOutput } -type WebAclRuleOverrideActionCountArgs struct { +type WebAclRuleActionBlockCustomResponseArgs struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode pulumi.IntInput `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` } -func (WebAclRuleOverrideActionCountArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideActionCount)(nil)).Elem() +func (WebAclRuleActionBlockCustomResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlockCustomResponse)(nil)).Elem() } -func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput { - return i.ToWebAclRuleOverrideActionCountOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput { + return i.ToWebAclRuleActionBlockCustomResponseOutputWithContext(context.Background()) } -func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountOutput) +func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseOutput) } -func (i WebAclRuleOverrideActionCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionCount] { - return pulumix.Output[WebAclRuleOverrideActionCount]{ - OutputState: i.ToWebAclRuleOverrideActionCountOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponse] { + return pulumix.Output[WebAclRuleActionBlockCustomResponse]{ + OutputState: i.ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { - return i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { + return i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountOutput).ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx) +func (i WebAclRuleActionBlockCustomResponseArgs) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseOutput).ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx) } -// WebAclRuleOverrideActionCountPtrInput is an input type that accepts WebAclRuleOverrideActionCountArgs, WebAclRuleOverrideActionCountPtr and WebAclRuleOverrideActionCountPtrOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionCountPtrInput` via: +// WebAclRuleActionBlockCustomResponsePtrInput is an input type that accepts WebAclRuleActionBlockCustomResponseArgs, WebAclRuleActionBlockCustomResponsePtr and WebAclRuleActionBlockCustomResponsePtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponsePtrInput` via: // -// WebAclRuleOverrideActionCountArgs{...} +// WebAclRuleActionBlockCustomResponseArgs{...} // // or: // // nil -type WebAclRuleOverrideActionCountPtrInput interface { +type WebAclRuleActionBlockCustomResponsePtrInput interface { pulumi.Input - ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput - ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Context) WebAclRuleOverrideActionCountPtrOutput + ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput + ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponsePtrOutput } -type webAclRuleOverrideActionCountPtrType WebAclRuleOverrideActionCountArgs +type webAclRuleActionBlockCustomResponsePtrType WebAclRuleActionBlockCustomResponseArgs -func WebAclRuleOverrideActionCountPtr(v *WebAclRuleOverrideActionCountArgs) WebAclRuleOverrideActionCountPtrInput { - return (*webAclRuleOverrideActionCountPtrType)(v) +func WebAclRuleActionBlockCustomResponsePtr(v *WebAclRuleActionBlockCustomResponseArgs) WebAclRuleActionBlockCustomResponsePtrInput { + return (*webAclRuleActionBlockCustomResponsePtrType)(v) } -func (*webAclRuleOverrideActionCountPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideActionCount)(nil)).Elem() +func (*webAclRuleActionBlockCustomResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionBlockCustomResponse)(nil)).Elem() } -func (i *webAclRuleOverrideActionCountPtrType) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { - return i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionBlockCustomResponsePtrType) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { + return i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i *webAclRuleOverrideActionCountPtrType) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountPtrOutput) +func (i *webAclRuleActionBlockCustomResponsePtrType) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponsePtrOutput) } -func (i *webAclRuleOverrideActionCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionCount] { - return pulumix.Output[*WebAclRuleOverrideActionCount]{ - OutputState: i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlockCustomResponse] { + return pulumix.Output[*WebAclRuleActionBlockCustomResponse]{ + OutputState: i.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleOverrideActionCountOutput struct{ *pulumi.OutputState } +type WebAclRuleActionBlockCustomResponseOutput struct{ *pulumi.OutputState } -func (WebAclRuleOverrideActionCountOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideActionCount)(nil)).Elem() +func (WebAclRuleActionBlockCustomResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlockCustomResponse)(nil)).Elem() } -func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput { +func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponseOutput() WebAclRuleActionBlockCustomResponseOutput { return o } -func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountOutput { +func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseOutput { return o } -func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { - return o.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { + return o.ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideActionCount) *WebAclRuleOverrideActionCount { +func (o WebAclRuleActionBlockCustomResponseOutput) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionBlockCustomResponse) *WebAclRuleActionBlockCustomResponse { return &v - }).(WebAclRuleOverrideActionCountPtrOutput) + }).(WebAclRuleActionBlockCustomResponsePtrOutput) } -func (o WebAclRuleOverrideActionCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionCount] { - return pulumix.Output[WebAclRuleOverrideActionCount]{ +func (o WebAclRuleActionBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponse] { + return pulumix.Output[WebAclRuleActionBlockCustomResponse]{ OutputState: o.OutputState, } } -type WebAclRuleOverrideActionCountPtrOutput struct{ *pulumi.OutputState } +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclRuleActionBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) *string { return v.CustomResponseBodyKey }).(pulumi.StringPtrOutput) +} -func (WebAclRuleOverrideActionCountPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideActionCount)(nil)).Elem() +// The HTTP status code to return to the client. +func (o WebAclRuleActionBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) int { return v.ResponseCode }).(pulumi.IntOutput) } -func (o WebAclRuleOverrideActionCountPtrOutput) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclRuleActionBlockCustomResponseOutput) ResponseHeaders() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleActionBlockCustomResponse) []WebAclRuleActionBlockCustomResponseResponseHeader { + return v.ResponseHeaders + }).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) +} + +type WebAclRuleActionBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionBlockCustomResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionBlockCustomResponse)(nil)).Elem() +} + +func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToWebAclRuleActionBlockCustomResponsePtrOutput() WebAclRuleActionBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleOverrideActionCountPtrOutput) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { +func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToWebAclRuleActionBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleOverrideActionCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionCount] { - return pulumix.Output[*WebAclRuleOverrideActionCount]{ +func (o WebAclRuleActionBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionBlockCustomResponse] { + return pulumix.Output[*WebAclRuleActionBlockCustomResponse]{ OutputState: o.OutputState, } } -func (o WebAclRuleOverrideActionCountPtrOutput) Elem() WebAclRuleOverrideActionCountOutput { - return o.ApplyT(func(v *WebAclRuleOverrideActionCount) WebAclRuleOverrideActionCount { +func (o WebAclRuleActionBlockCustomResponsePtrOutput) Elem() WebAclRuleActionBlockCustomResponseOutput { + return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) WebAclRuleActionBlockCustomResponse { if v != nil { return *v } - var ret WebAclRuleOverrideActionCount + var ret WebAclRuleActionBlockCustomResponse return ret - }).(WebAclRuleOverrideActionCountOutput) + }).(WebAclRuleActionBlockCustomResponseOutput) } -type WebAclRuleOverrideActionNone struct { +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclRuleActionBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) *string { + if v == nil { + return nil + } + return v.CustomResponseBodyKey + }).(pulumi.StringPtrOutput) } -// WebAclRuleOverrideActionNoneInput is an input type that accepts WebAclRuleOverrideActionNoneArgs and WebAclRuleOverrideActionNoneOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionNoneInput` via: -// -// WebAclRuleOverrideActionNoneArgs{...} -type WebAclRuleOverrideActionNoneInput interface { - pulumi.Input +// The HTTP status code to return to the client. +func (o WebAclRuleActionBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) *int { + if v == nil { + return nil + } + return &v.ResponseCode + }).(pulumi.IntPtrOutput) +} - ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput - ToWebAclRuleOverrideActionNoneOutputWithContext(context.Context) WebAclRuleOverrideActionNoneOutput +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclRuleActionBlockCustomResponsePtrOutput) ResponseHeaders() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleActionBlockCustomResponse) []WebAclRuleActionBlockCustomResponseResponseHeader { + if v == nil { + return nil + } + return v.ResponseHeaders + }).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) } -type WebAclRuleOverrideActionNoneArgs struct { +type WebAclRuleActionBlockCustomResponseResponseHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -func (WebAclRuleOverrideActionNoneArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideActionNone)(nil)).Elem() +// WebAclRuleActionBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclRuleActionBlockCustomResponseResponseHeaderArgs and WebAclRuleActionBlockCustomResponseResponseHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseResponseHeaderInput` via: +// +// WebAclRuleActionBlockCustomResponseResponseHeaderArgs{...} +type WebAclRuleActionBlockCustomResponseResponseHeaderInput interface { + pulumi.Input + + ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput + ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput } -func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput { - return i.ToWebAclRuleOverrideActionNoneOutputWithContext(context.Background()) +type WebAclRuleActionBlockCustomResponseResponseHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNoneOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNoneOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNoneOutput) +func (WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i WebAclRuleOverrideActionNoneArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionNone] { - return pulumix.Output[WebAclRuleOverrideActionNone]{ - OutputState: i.ToWebAclRuleOverrideActionNoneOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput { + return i.ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { - return i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseResponseHeaderOutput) } -func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNoneOutput).ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx) +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, + } } -// WebAclRuleOverrideActionNonePtrInput is an input type that accepts WebAclRuleOverrideActionNoneArgs, WebAclRuleOverrideActionNonePtr and WebAclRuleOverrideActionNonePtrOutput values. -// You can construct a concrete instance of `WebAclRuleOverrideActionNonePtrInput` via: -// -// WebAclRuleOverrideActionNoneArgs{...} -// -// or: +// WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclRuleActionBlockCustomResponseResponseHeaderArray and WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput` via: // -// nil -type WebAclRuleOverrideActionNonePtrInput interface { +// WebAclRuleActionBlockCustomResponseResponseHeaderArray{ WebAclRuleActionBlockCustomResponseResponseHeaderArgs{...} } +type WebAclRuleActionBlockCustomResponseResponseHeaderArrayInput interface { pulumi.Input - ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput - ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Context) WebAclRuleOverrideActionNonePtrOutput + ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput + ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput } -type webAclRuleOverrideActionNonePtrType WebAclRuleOverrideActionNoneArgs - -func WebAclRuleOverrideActionNonePtr(v *WebAclRuleOverrideActionNoneArgs) WebAclRuleOverrideActionNonePtrInput { - return (*webAclRuleOverrideActionNonePtrType)(v) -} +type WebAclRuleActionBlockCustomResponseResponseHeaderArray []WebAclRuleActionBlockCustomResponseResponseHeaderInput -func (*webAclRuleOverrideActionNonePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideActionNone)(nil)).Elem() +func (WebAclRuleActionBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i *webAclRuleOverrideActionNonePtrType) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { - return i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { + return i.ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleOverrideActionNonePtrType) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNonePtrOutput) +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) } -func (i *webAclRuleOverrideActionNonePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionNone] { - return pulumix.Output[*WebAclRuleOverrideActionNone]{ - OutputState: i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleOverrideActionNoneOutput struct{ *pulumi.OutputState } +type WebAclRuleActionBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleOverrideActionNoneOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleOverrideActionNone)(nil)).Elem() +func (WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput { +func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutput() WebAclRuleActionBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNoneOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNoneOutput { +func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { - return o.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) +func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclRuleActionBlockCustomResponseResponseHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideActionNone) *WebAclRuleOverrideActionNone { - return &v - }).(WebAclRuleOverrideActionNonePtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionBlockCustomResponseResponseHeader) string { return v.Name }).(pulumi.StringOutput) } -func (o WebAclRuleOverrideActionNoneOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionNone] { - return pulumix.Output[WebAclRuleOverrideActionNone]{ - OutputState: o.OutputState, - } +// Value of the custom header. +func (o WebAclRuleActionBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionBlockCustomResponseResponseHeader) string { return v.Value }).(pulumi.StringOutput) } -type WebAclRuleOverrideActionNonePtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleOverrideActionNonePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleOverrideActionNone)(nil)).Elem() +func (WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleOverrideActionNonePtrOutput) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { +func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleOverrideActionNonePtrOutput) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { +func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleActionBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleOverrideActionNonePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionNone] { - return pulumix.Output[*WebAclRuleOverrideActionNone]{ +func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclRuleActionBlockCustomResponseResponseHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleOverrideActionNonePtrOutput) Elem() WebAclRuleOverrideActionNoneOutput { - return o.ApplyT(func(v *WebAclRuleOverrideActionNone) WebAclRuleOverrideActionNone { - if v != nil { - return *v - } - var ret WebAclRuleOverrideActionNone - return ret - }).(WebAclRuleOverrideActionNoneOutput) +func (o WebAclRuleActionBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionBlockCustomResponseResponseHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionBlockCustomResponseResponseHeader { + return vs[0].([]WebAclRuleActionBlockCustomResponseResponseHeader)[vs[1].(int)] + }).(WebAclRuleActionBlockCustomResponseResponseHeaderOutput) } -type WebAclRuleRuleLabel struct { - // Label string. - Name string `pulumi:"name"` +type WebAclRuleActionCaptcha struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleActionCaptchaCustomRequestHandling `pulumi:"customRequestHandling"` } -// WebAclRuleRuleLabelInput is an input type that accepts WebAclRuleRuleLabelArgs and WebAclRuleRuleLabelOutput values. -// You can construct a concrete instance of `WebAclRuleRuleLabelInput` via: +// WebAclRuleActionCaptchaInput is an input type that accepts WebAclRuleActionCaptchaArgs and WebAclRuleActionCaptchaOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaInput` via: // -// WebAclRuleRuleLabelArgs{...} -type WebAclRuleRuleLabelInput interface { +// WebAclRuleActionCaptchaArgs{...} +type WebAclRuleActionCaptchaInput interface { pulumi.Input - ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput - ToWebAclRuleRuleLabelOutputWithContext(context.Context) WebAclRuleRuleLabelOutput + ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput + ToWebAclRuleActionCaptchaOutputWithContext(context.Context) WebAclRuleActionCaptchaOutput } -type WebAclRuleRuleLabelArgs struct { - // Label string. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleActionCaptchaArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleActionCaptchaCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleRuleLabelArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleRuleLabel)(nil)).Elem() +func (WebAclRuleActionCaptchaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptcha)(nil)).Elem() } -func (i WebAclRuleRuleLabelArgs) ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput { - return i.ToWebAclRuleRuleLabelOutputWithContext(context.Background()) +func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput { + return i.ToWebAclRuleActionCaptchaOutputWithContext(context.Background()) } -func (i WebAclRuleRuleLabelArgs) ToWebAclRuleRuleLabelOutputWithContext(ctx context.Context) WebAclRuleRuleLabelOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleRuleLabelOutput) +func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaOutput) } -func (i WebAclRuleRuleLabelArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleRuleLabel] { - return pulumix.Output[WebAclRuleRuleLabel]{ - OutputState: i.ToWebAclRuleRuleLabelOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionCaptchaArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptcha] { + return pulumix.Output[WebAclRuleActionCaptcha]{ + OutputState: i.ToWebAclRuleActionCaptchaOutputWithContext(ctx).OutputState, } } -// WebAclRuleRuleLabelArrayInput is an input type that accepts WebAclRuleRuleLabelArray and WebAclRuleRuleLabelArrayOutput values. -// You can construct a concrete instance of `WebAclRuleRuleLabelArrayInput` via: +func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { + return i.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleActionCaptchaArgs) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaOutput).ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx) +} + +// WebAclRuleActionCaptchaPtrInput is an input type that accepts WebAclRuleActionCaptchaArgs, WebAclRuleActionCaptchaPtr and WebAclRuleActionCaptchaPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaPtrInput` via: // -// WebAclRuleRuleLabelArray{ WebAclRuleRuleLabelArgs{...} } -type WebAclRuleRuleLabelArrayInput interface { +// WebAclRuleActionCaptchaArgs{...} +// +// or: +// +// nil +type WebAclRuleActionCaptchaPtrInput interface { pulumi.Input - ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput - ToWebAclRuleRuleLabelArrayOutputWithContext(context.Context) WebAclRuleRuleLabelArrayOutput + ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput + ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Context) WebAclRuleActionCaptchaPtrOutput } -type WebAclRuleRuleLabelArray []WebAclRuleRuleLabelInput +type webAclRuleActionCaptchaPtrType WebAclRuleActionCaptchaArgs -func (WebAclRuleRuleLabelArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleRuleLabel)(nil)).Elem() +func WebAclRuleActionCaptchaPtr(v *WebAclRuleActionCaptchaArgs) WebAclRuleActionCaptchaPtrInput { + return (*webAclRuleActionCaptchaPtrType)(v) } -func (i WebAclRuleRuleLabelArray) ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput { - return i.ToWebAclRuleRuleLabelArrayOutputWithContext(context.Background()) +func (*webAclRuleActionCaptchaPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCaptcha)(nil)).Elem() } -func (i WebAclRuleRuleLabelArray) ToWebAclRuleRuleLabelArrayOutputWithContext(ctx context.Context) WebAclRuleRuleLabelArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleRuleLabelArrayOutput) +func (i *webAclRuleActionCaptchaPtrType) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { + return i.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) } -func (i WebAclRuleRuleLabelArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleRuleLabel] { - return pulumix.Output[[]WebAclRuleRuleLabel]{ - OutputState: i.ToWebAclRuleRuleLabelArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionCaptchaPtrType) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaPtrOutput) +} + +func (i *webAclRuleActionCaptchaPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptcha] { + return pulumix.Output[*WebAclRuleActionCaptcha]{ + OutputState: i.ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleRuleLabelOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCaptchaOutput struct{ *pulumi.OutputState } -func (WebAclRuleRuleLabelOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleRuleLabel)(nil)).Elem() +func (WebAclRuleActionCaptchaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptcha)(nil)).Elem() } -func (o WebAclRuleRuleLabelOutput) ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput { +func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaOutput() WebAclRuleActionCaptchaOutput { return o } -func (o WebAclRuleRuleLabelOutput) ToWebAclRuleRuleLabelOutputWithContext(ctx context.Context) WebAclRuleRuleLabelOutput { +func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaOutput { return o } -func (o WebAclRuleRuleLabelOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleRuleLabel] { - return pulumix.Output[WebAclRuleRuleLabel]{ +func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { + return o.ToWebAclRuleActionCaptchaPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleActionCaptchaOutput) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCaptcha) *WebAclRuleActionCaptcha { + return &v + }).(WebAclRuleActionCaptchaPtrOutput) +} + +func (o WebAclRuleActionCaptchaOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptcha] { + return pulumix.Output[WebAclRuleActionCaptcha]{ OutputState: o.OutputState, } } -// Label string. -func (o WebAclRuleRuleLabelOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleRuleLabel) string { return v.Name }).(pulumi.StringOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionCaptchaOutput) CustomRequestHandling() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleActionCaptcha) *WebAclRuleActionCaptchaCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) } -type WebAclRuleRuleLabelArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCaptchaPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleRuleLabelArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleRuleLabel)(nil)).Elem() +func (WebAclRuleActionCaptchaPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCaptcha)(nil)).Elem() } -func (o WebAclRuleRuleLabelArrayOutput) ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput { +func (o WebAclRuleActionCaptchaPtrOutput) ToWebAclRuleActionCaptchaPtrOutput() WebAclRuleActionCaptchaPtrOutput { return o } -func (o WebAclRuleRuleLabelArrayOutput) ToWebAclRuleRuleLabelArrayOutputWithContext(ctx context.Context) WebAclRuleRuleLabelArrayOutput { +func (o WebAclRuleActionCaptchaPtrOutput) ToWebAclRuleActionCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaPtrOutput { return o } -func (o WebAclRuleRuleLabelArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleRuleLabel] { - return pulumix.Output[[]WebAclRuleRuleLabel]{ +func (o WebAclRuleActionCaptchaPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptcha] { + return pulumix.Output[*WebAclRuleActionCaptcha]{ OutputState: o.OutputState, } } -func (o WebAclRuleRuleLabelArrayOutput) Index(i pulumi.IntInput) WebAclRuleRuleLabelOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleRuleLabel { - return vs[0].([]WebAclRuleRuleLabel)[vs[1].(int)] - }).(WebAclRuleRuleLabelOutput) -} - -type WebAclRuleStatement struct { - // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. - AndStatement *WebAclRuleStatementAndStatement `pulumi:"andStatement"` - // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. - ByteMatchStatement *WebAclRuleStatementByteMatchStatement `pulumi:"byteMatchStatement"` - // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. - GeoMatchStatement *WebAclRuleStatementGeoMatchStatement `pulumi:"geoMatchStatement"` - // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. - IpSetReferenceStatement *WebAclRuleStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` - // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. - LabelMatchStatement *WebAclRuleStatementLabelMatchStatement `pulumi:"labelMatchStatement"` - // Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. - ManagedRuleGroupStatement *WebAclRuleStatementManagedRuleGroupStatement `pulumi:"managedRuleGroupStatement"` - // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. - NotStatement *WebAclRuleStatementNotStatement `pulumi:"notStatement"` - // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. - OrStatement *WebAclRuleStatementOrStatement `pulumi:"orStatement"` - // Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. - RateBasedStatement *WebAclRuleStatementRateBasedStatement `pulumi:"rateBasedStatement"` - // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. - RegexMatchStatement *WebAclRuleStatementRegexMatchStatement `pulumi:"regexMatchStatement"` - // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. - RegexPatternSetReferenceStatement *WebAclRuleStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` - // Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. - RuleGroupReferenceStatement *WebAclRuleStatementRuleGroupReferenceStatement `pulumi:"ruleGroupReferenceStatement"` - // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. - SizeConstraintStatement *WebAclRuleStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. - SqliMatchStatement *WebAclRuleStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` - // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. - XssMatchStatement *WebAclRuleStatementXssMatchStatement `pulumi:"xssMatchStatement"` +func (o WebAclRuleActionCaptchaPtrOutput) Elem() WebAclRuleActionCaptchaOutput { + return o.ApplyT(func(v *WebAclRuleActionCaptcha) WebAclRuleActionCaptcha { + if v != nil { + return *v + } + var ret WebAclRuleActionCaptcha + return ret + }).(WebAclRuleActionCaptchaOutput) } -// WebAclRuleStatementInput is an input type that accepts WebAclRuleStatementArgs and WebAclRuleStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementInput` via: +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionCaptchaPtrOutput) CustomRequestHandling() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionCaptcha) *WebAclRuleActionCaptchaCustomRequestHandling { + if v == nil { + return nil + } + return v.CustomRequestHandling + }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +} + +type WebAclRuleActionCaptchaCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +} + +// WebAclRuleActionCaptchaCustomRequestHandlingInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingArgs and WebAclRuleActionCaptchaCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInput` via: // -// WebAclRuleStatementArgs{...} -type WebAclRuleStatementInput interface { +// WebAclRuleActionCaptchaCustomRequestHandlingArgs{...} +type WebAclRuleActionCaptchaCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementOutput() WebAclRuleStatementOutput - ToWebAclRuleStatementOutputWithContext(context.Context) WebAclRuleStatementOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput } -type WebAclRuleStatementArgs struct { - // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. - AndStatement WebAclRuleStatementAndStatementPtrInput `pulumi:"andStatement"` - // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. - ByteMatchStatement WebAclRuleStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` - // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. - GeoMatchStatement WebAclRuleStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` - // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. - IpSetReferenceStatement WebAclRuleStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` - // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. - LabelMatchStatement WebAclRuleStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` - // Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. - ManagedRuleGroupStatement WebAclRuleStatementManagedRuleGroupStatementPtrInput `pulumi:"managedRuleGroupStatement"` - // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. - NotStatement WebAclRuleStatementNotStatementPtrInput `pulumi:"notStatement"` - // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. - OrStatement WebAclRuleStatementOrStatementPtrInput `pulumi:"orStatement"` - // Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. - RateBasedStatement WebAclRuleStatementRateBasedStatementPtrInput `pulumi:"rateBasedStatement"` - // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. - RegexMatchStatement WebAclRuleStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` - // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. - RegexPatternSetReferenceStatement WebAclRuleStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` - // Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. - RuleGroupReferenceStatement WebAclRuleStatementRuleGroupReferenceStatementPtrInput `pulumi:"ruleGroupReferenceStatement"` - // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. - SizeConstraintStatement WebAclRuleStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. - SqliMatchStatement WebAclRuleStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` - // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. - XssMatchStatement WebAclRuleStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` +type WebAclRuleActionCaptchaCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatement)(nil)).Elem() +func (WebAclRuleActionCaptchaCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementArgs) ToWebAclRuleStatementOutput() WebAclRuleStatementOutput { - return i.ToWebAclRuleStatementOutputWithContext(context.Background()) +func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput { + return i.ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementArgs) ToWebAclRuleStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOutput) +func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingOutput) } -func (i WebAclRuleStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatement] { - return pulumix.Output[WebAclRuleStatement]{ - OutputState: i.ToWebAclRuleStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementArrayInput is an input type that accepts WebAclRuleStatementArray and WebAclRuleStatementArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementArrayInput` via: +func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleActionCaptchaCustomRequestHandlingArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingOutput).ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx) +} + +// WebAclRuleActionCaptchaCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingArgs, WebAclRuleActionCaptchaCustomRequestHandlingPtr and WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementArray{ WebAclRuleStatementArgs{...} } -type WebAclRuleStatementArrayInput interface { +// WebAclRuleActionCaptchaCustomRequestHandlingArgs{...} +// +// or: +// +// nil +type WebAclRuleActionCaptchaCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput - ToWebAclRuleStatementArrayOutputWithContext(context.Context) WebAclRuleStatementArrayOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput } -type WebAclRuleStatementArray []WebAclRuleStatementInput +type webAclRuleActionCaptchaCustomRequestHandlingPtrType WebAclRuleActionCaptchaCustomRequestHandlingArgs -func (WebAclRuleStatementArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatement)(nil)).Elem() +func WebAclRuleActionCaptchaCustomRequestHandlingPtr(v *WebAclRuleActionCaptchaCustomRequestHandlingArgs) WebAclRuleActionCaptchaCustomRequestHandlingPtrInput { + return (*webAclRuleActionCaptchaCustomRequestHandlingPtrType)(v) } -func (i WebAclRuleStatementArray) ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput { - return i.ToWebAclRuleStatementArrayOutputWithContext(context.Background()) +func (*webAclRuleActionCaptchaCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementArray) ToWebAclRuleStatementArrayOutputWithContext(ctx context.Context) WebAclRuleStatementArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementArrayOutput) +func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatement] { - return pulumix.Output[[]WebAclRuleStatement]{ - OutputState: i.ToWebAclRuleStatementArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +} + +func (i *webAclRuleActionCaptchaCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCaptchaCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatement)(nil)).Elem() +func (WebAclRuleActionCaptchaCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementOutput) ToWebAclRuleStatementOutput() WebAclRuleStatementOutput { +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingOutput() WebAclRuleActionCaptchaCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementOutput) ToWebAclRuleStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOutput { +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatement] { - return pulumix.Output[WebAclRuleStatement]{ +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCaptchaCustomRequestHandling) *WebAclRuleActionCaptchaCustomRequestHandling { + return &v + }).(WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandling]{ OutputState: o.OutputState, } } -// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. -func (o WebAclRuleStatementOutput) AndStatement() WebAclRuleStatementAndStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementAndStatement { return v.AndStatement }).(WebAclRuleStatementAndStatementPtrOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionCaptchaCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandling) []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) } -// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. -func (o WebAclRuleStatementOutput) ByteMatchStatement() WebAclRuleStatementByteMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementByteMatchStatement { return v.ByteMatchStatement }).(WebAclRuleStatementByteMatchStatementPtrOutput) +type WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCaptchaCustomRequestHandling)(nil)).Elem() } -// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. -func (o WebAclRuleStatementOutput) GeoMatchStatement() WebAclRuleStatementGeoMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementGeoMatchStatement { return v.GeoMatchStatement }).(WebAclRuleStatementGeoMatchStatementPtrOutput) +func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutput() WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o } -// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. -func (o WebAclRuleStatementOutput) IpSetReferenceStatement() WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementIpSetReferenceStatement { - return v.IpSetReferenceStatement - }).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) +func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput { + return o } -// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. -func (o WebAclRuleStatementOutput) LabelMatchStatement() WebAclRuleStatementLabelMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementLabelMatchStatement { return v.LabelMatchStatement }).(WebAclRuleStatementLabelMatchStatementPtrOutput) +func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionCaptchaCustomRequestHandling]{ + OutputState: o.OutputState, + } } -// Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. -func (o WebAclRuleStatementOutput) ManagedRuleGroupStatement() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementManagedRuleGroupStatement { - return v.ManagedRuleGroupStatement - }).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) +func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionCaptchaCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleActionCaptchaCustomRequestHandling) WebAclRuleActionCaptchaCustomRequestHandling { + if v != nil { + return *v + } + var ret WebAclRuleActionCaptchaCustomRequestHandling + return ret + }).(WebAclRuleActionCaptchaCustomRequestHandlingOutput) } -// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. -func (o WebAclRuleStatementOutput) NotStatement() WebAclRuleStatementNotStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementNotStatement { return v.NotStatement }).(WebAclRuleStatementNotStatementPtrOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionCaptchaCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleActionCaptchaCustomRequestHandling) []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { + if v == nil { + return nil + } + return v.InsertHeaders + }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) } -// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. -func (o WebAclRuleStatementOutput) OrStatement() WebAclRuleStatementOrStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementOrStatement { return v.OrStatement }).(WebAclRuleStatementOrStatementPtrOutput) +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -// Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. -func (o WebAclRuleStatementOutput) RateBasedStatement() WebAclRuleStatementRateBasedStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRateBasedStatement { return v.RateBasedStatement }).(WebAclRuleStatementRateBasedStatementPtrOutput) +// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput` via: +// +// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput interface { + pulumi.Input + + ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput } -// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. -func (o WebAclRuleStatementOutput) RegexMatchStatement() WebAclRuleStatementRegexMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRegexMatchStatement { return v.RegexMatchStatement }).(WebAclRuleStatementRegexMatchStatementPtrOutput) +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. -func (o WebAclRuleStatementOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRegexPatternSetReferenceStatement { - return v.RegexPatternSetReferenceStatement - }).(WebAclRuleStatementRegexPatternSetReferenceStatementPtrOutput) +func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -// Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. -func (o WebAclRuleStatementOutput) RuleGroupReferenceStatement() WebAclRuleStatementRuleGroupReferenceStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRuleGroupReferenceStatement { - return v.RuleGroupReferenceStatement - }).(WebAclRuleStatementRuleGroupReferenceStatementPtrOutput) +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. -func (o WebAclRuleStatementOutput) SizeConstraintStatement() WebAclRuleStatementSizeConstraintStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementSizeConstraintStatement { - return v.SizeConstraintStatement - }).(WebAclRuleStatementSizeConstraintStatementPtrOutput) +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) } -// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. -func (o WebAclRuleStatementOutput) SqliMatchStatement() WebAclRuleStatementSqliMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementSqliMatchStatement { return v.SqliMatchStatement }).(WebAclRuleStatementSqliMatchStatementPtrOutput) +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, + } } -// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. -func (o WebAclRuleStatementOutput) XssMatchStatement() WebAclRuleStatementXssMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementXssMatchStatement { return v.XssMatchStatement }).(WebAclRuleStatementXssMatchStatementPtrOutput) +// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray and WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput` via: +// +// WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayInput interface { + pulumi.Input + + ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput } -type WebAclRuleStatementArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray []WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderInput -func (WebAclRuleStatementArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatement)(nil)).Elem() +func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementArrayOutput) ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput { +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +} + +func (i WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementArrayOutput) ToWebAclRuleStatementArrayOutputWithContext(ctx context.Context) WebAclRuleStatementArrayOutput { +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatement] { - return pulumix.Output[[]WebAclRuleStatement]{ +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatement { - return vs[0].([]WebAclRuleStatement)[vs[1].(int)] - }).(WebAclRuleStatementOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementAndStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +// Value of the custom header. +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) } -// WebAclRuleStatementAndStatementInput is an input type that accepts WebAclRuleStatementAndStatementArgs and WebAclRuleStatementAndStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementAndStatementInput` via: +type WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutput) +} + +type WebAclRuleActionChallenge struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleActionChallengeCustomRequestHandling `pulumi:"customRequestHandling"` +} + +// WebAclRuleActionChallengeInput is an input type that accepts WebAclRuleActionChallengeArgs and WebAclRuleActionChallengeOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengeInput` via: // -// WebAclRuleStatementAndStatementArgs{...} -type WebAclRuleStatementAndStatementInput interface { +// WebAclRuleActionChallengeArgs{...} +type WebAclRuleActionChallengeInput interface { pulumi.Input - ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput - ToWebAclRuleStatementAndStatementOutputWithContext(context.Context) WebAclRuleStatementAndStatementOutput + ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput + ToWebAclRuleActionChallengeOutputWithContext(context.Context) WebAclRuleActionChallengeOutput } -type WebAclRuleStatementAndStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type WebAclRuleActionChallengeArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleActionChallengeCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleStatementAndStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementAndStatement)(nil)).Elem() +func (WebAclRuleActionChallengeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallenge)(nil)).Elem() } -func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput { - return i.ToWebAclRuleStatementAndStatementOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput { + return i.ToWebAclRuleActionChallengeOutputWithContext(context.Background()) } -func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementOutput) +func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengeOutputWithContext(ctx context.Context) WebAclRuleActionChallengeOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeOutput) } -func (i WebAclRuleStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementAndStatement] { - return pulumix.Output[WebAclRuleStatementAndStatement]{ - OutputState: i.ToWebAclRuleStatementAndStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionChallengeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallenge] { + return pulumix.Output[WebAclRuleActionChallenge]{ + OutputState: i.ToWebAclRuleActionChallengeOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { - return i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { + return i.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementOutput).ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx) +func (i WebAclRuleActionChallengeArgs) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeOutput).ToWebAclRuleActionChallengePtrOutputWithContext(ctx) } -// WebAclRuleStatementAndStatementPtrInput is an input type that accepts WebAclRuleStatementAndStatementArgs, WebAclRuleStatementAndStatementPtr and WebAclRuleStatementAndStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementAndStatementPtrInput` via: +// WebAclRuleActionChallengePtrInput is an input type that accepts WebAclRuleActionChallengeArgs, WebAclRuleActionChallengePtr and WebAclRuleActionChallengePtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengePtrInput` via: // -// WebAclRuleStatementAndStatementArgs{...} +// WebAclRuleActionChallengeArgs{...} // // or: // // nil -type WebAclRuleStatementAndStatementPtrInput interface { +type WebAclRuleActionChallengePtrInput interface { pulumi.Input - ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput - ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Context) WebAclRuleStatementAndStatementPtrOutput + ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput + ToWebAclRuleActionChallengePtrOutputWithContext(context.Context) WebAclRuleActionChallengePtrOutput } -type webAclRuleStatementAndStatementPtrType WebAclRuleStatementAndStatementArgs +type webAclRuleActionChallengePtrType WebAclRuleActionChallengeArgs -func WebAclRuleStatementAndStatementPtr(v *WebAclRuleStatementAndStatementArgs) WebAclRuleStatementAndStatementPtrInput { - return (*webAclRuleStatementAndStatementPtrType)(v) +func WebAclRuleActionChallengePtr(v *WebAclRuleActionChallengeArgs) WebAclRuleActionChallengePtrInput { + return (*webAclRuleActionChallengePtrType)(v) } -func (*webAclRuleStatementAndStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementAndStatement)(nil)).Elem() +func (*webAclRuleActionChallengePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionChallenge)(nil)).Elem() } -func (i *webAclRuleStatementAndStatementPtrType) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { - return i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionChallengePtrType) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { + return i.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementAndStatementPtrType) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementPtrOutput) +func (i *webAclRuleActionChallengePtrType) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengePtrOutput) } -func (i *webAclRuleStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementAndStatement] { - return pulumix.Output[*WebAclRuleStatementAndStatement]{ - OutputState: i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionChallengePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallenge] { + return pulumix.Output[*WebAclRuleActionChallenge]{ + OutputState: i.ToWebAclRuleActionChallengePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementAndStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleActionChallengeOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementAndStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementAndStatement)(nil)).Elem() +func (WebAclRuleActionChallengeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallenge)(nil)).Elem() } -func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput { +func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengeOutput() WebAclRuleActionChallengeOutput { return o } -func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementOutput { +func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengeOutputWithContext(ctx context.Context) WebAclRuleActionChallengeOutput { return o } -func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { - return o.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { + return o.ToWebAclRuleActionChallengePtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementAndStatement) *WebAclRuleStatementAndStatement { +func (o WebAclRuleActionChallengeOutput) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionChallenge) *WebAclRuleActionChallenge { return &v - }).(WebAclRuleStatementAndStatementPtrOutput) + }).(WebAclRuleActionChallengePtrOutput) } -func (o WebAclRuleStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementAndStatement] { - return pulumix.Output[WebAclRuleStatementAndStatement]{ +func (o WebAclRuleActionChallengeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallenge] { + return pulumix.Output[WebAclRuleActionChallenge]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o WebAclRuleStatementAndStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementAndStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionChallengeOutput) CustomRequestHandling() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleActionChallenge) *WebAclRuleActionChallengeCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementAndStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionChallengePtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementAndStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementAndStatement)(nil)).Elem() +func (WebAclRuleActionChallengePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionChallenge)(nil)).Elem() } -func (o WebAclRuleStatementAndStatementPtrOutput) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { +func (o WebAclRuleActionChallengePtrOutput) ToWebAclRuleActionChallengePtrOutput() WebAclRuleActionChallengePtrOutput { return o } -func (o WebAclRuleStatementAndStatementPtrOutput) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { +func (o WebAclRuleActionChallengePtrOutput) ToWebAclRuleActionChallengePtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengePtrOutput { return o } -func (o WebAclRuleStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementAndStatement] { - return pulumix.Output[*WebAclRuleStatementAndStatement]{ +func (o WebAclRuleActionChallengePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallenge] { + return pulumix.Output[*WebAclRuleActionChallenge]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementAndStatementPtrOutput) Elem() WebAclRuleStatementAndStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementAndStatement) WebAclRuleStatementAndStatement { +func (o WebAclRuleActionChallengePtrOutput) Elem() WebAclRuleActionChallengeOutput { + return o.ApplyT(func(v *WebAclRuleActionChallenge) WebAclRuleActionChallenge { if v != nil { return *v } - var ret WebAclRuleStatementAndStatement + var ret WebAclRuleActionChallenge return ret - }).(WebAclRuleStatementAndStatementOutput) + }).(WebAclRuleActionChallengeOutput) } -// The statements to combine. -func (o WebAclRuleStatementAndStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementAndStatement) []WebAclRuleStatement { +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionChallengePtrOutput) CustomRequestHandling() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionChallenge) *WebAclRuleActionChallengeCustomRequestHandling { if v == nil { return nil } - return v.Statements - }).(WebAclRuleStatementArrayOutput) + return v.CustomRequestHandling + }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementByteMatchStatement struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint string `pulumi:"positionalConstraint"` - // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString string `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` +type WebAclRuleActionChallengeCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// WebAclRuleStatementByteMatchStatementInput is an input type that accepts WebAclRuleStatementByteMatchStatementArgs and WebAclRuleStatementByteMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementInput` via: +// WebAclRuleActionChallengeCustomRequestHandlingInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingArgs and WebAclRuleActionChallengeCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInput` via: // -// WebAclRuleStatementByteMatchStatementArgs{...} -type WebAclRuleStatementByteMatchStatementInput interface { +// WebAclRuleActionChallengeCustomRequestHandlingArgs{...} +type WebAclRuleActionChallengeCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput - ToWebAclRuleStatementByteMatchStatementOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementOutput + ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput + ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput } -type WebAclRuleStatementByteMatchStatementArgs struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` - // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString pulumi.StringInput `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type WebAclRuleActionChallengeCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementByteMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput { - return i.ToWebAclRuleStatementByteMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput { + return i.ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementOutput) +func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingOutput) } -func (i WebAclRuleStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatement] { - return pulumix.Output[WebAclRuleStatementByteMatchStatement]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementOutput).ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx) +func (i WebAclRuleActionChallengeCustomRequestHandlingArgs) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingOutput).ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementArgs, WebAclRuleStatementByteMatchStatementPtr and WebAclRuleStatementByteMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementPtrInput` via: +// WebAclRuleActionChallengeCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingArgs, WebAclRuleActionChallengeCustomRequestHandlingPtr and WebAclRuleActionChallengeCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementByteMatchStatementArgs{...} +// WebAclRuleActionChallengeCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementPtrInput interface { +type WebAclRuleActionChallengeCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput - ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementPtrOutput + ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput + ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput } -type webAclRuleStatementByteMatchStatementPtrType WebAclRuleStatementByteMatchStatementArgs +type webAclRuleActionChallengeCustomRequestHandlingPtrType WebAclRuleActionChallengeCustomRequestHandlingArgs -func WebAclRuleStatementByteMatchStatementPtr(v *WebAclRuleStatementByteMatchStatementArgs) WebAclRuleStatementByteMatchStatementPtrInput { - return (*webAclRuleStatementByteMatchStatementPtrType)(v) +func WebAclRuleActionChallengeCustomRequestHandlingPtr(v *WebAclRuleActionChallengeCustomRequestHandlingArgs) WebAclRuleActionChallengeCustomRequestHandlingPtrInput { + return (*webAclRuleActionChallengeCustomRequestHandlingPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatement)(nil)).Elem() +func (*webAclRuleActionChallengeCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementPtrType) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementPtrType) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementPtrOutput) +func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatement] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatement]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionChallengeCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleActionChallengeCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingOutput() WebAclRuleActionChallengeCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatement { +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionChallengeCustomRequestHandling) *WebAclRuleActionChallengeCustomRequestHandling { return &v - }).(WebAclRuleStatementByteMatchStatementPtrOutput) + }).(WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatement] { - return pulumix.Output[WebAclRuleStatementByteMatchStatement]{ +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandling]{ OutputState: o.OutputState, } } -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementByteMatchStatementOutput) FieldToMatch() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o WebAclRuleStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) string { return v.PositionalConstraint }).(pulumi.StringOutput) -} - -// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o WebAclRuleStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) string { return v.SearchString }).(pulumi.StringOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementByteMatchStatementOutput) TextTransformations() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) []WebAclRuleStatementByteMatchStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionChallengeCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandling) []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionChallengeCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionChallengeCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutput() WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleActionChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatement] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatement]{ +func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionChallengeCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementPtrOutput) Elem() WebAclRuleStatementByteMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) WebAclRuleStatementByteMatchStatement { +func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionChallengeCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleActionChallengeCustomRequestHandling) WebAclRuleActionChallengeCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatement + var ret WebAclRuleActionChallengeCustomRequestHandling return ret - }).(WebAclRuleStatementByteMatchStatementOutput) -} - -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementByteMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o WebAclRuleStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.PositionalConstraint - }).(pulumi.StringPtrOutput) -} - -// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o WebAclRuleStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.SearchString - }).(pulumi.StringPtrOutput) + }).(WebAclRuleActionChallengeCustomRequestHandlingOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementByteMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) []WebAclRuleStatementByteMatchStatementTextTransformation { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionChallengeCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleActionChallengeCustomRequestHandling) []WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { if v == nil { return nil } - return v.TextTransformations - }).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) + return v.InsertHeaders + }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchArgs and WebAclRuleStatementByteMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchInput` via: +// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchInput interface { +// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput + ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput) +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchArgs, WebAclRuleStatementByteMatchStatementFieldToMatchPtr and WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchArgs{...} -// -// or: +// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray and WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput interface { +// WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput + ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchPtrType WebAclRuleStatementByteMatchStatementFieldToMatchArgs - -func WebAclRuleStatementByteMatchStatementFieldToMatchPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchArgs) WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchPtrType)(v) -} +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray []WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderInput -func (*webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput { +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatch { - return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch]{ +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) +// Value of the custom header. +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionChallengeCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) -} +type WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementByteMatchStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +func (WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader]{ + OutputState: o.OutputState, + } } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (o WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionChallengeCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleActionChallengeCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutput) } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +type WebAclRuleActionCount struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleActionCountCustomRequestHandling `pulumi:"customRequestHandling"` } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +// WebAclRuleActionCountInput is an input type that accepts WebAclRuleActionCountArgs and WebAclRuleActionCountOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountInput` via: +// +// WebAclRuleActionCountArgs{...} +type WebAclRuleActionCountInput interface { + pulumi.Input + + ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput + ToWebAclRuleActionCountOutputWithContext(context.Context) WebAclRuleActionCountOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleActionCountCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleActionCountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCount)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o +func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput { + return i.ToWebAclRuleActionCountOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { - return o +func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountOutputWithContext(ctx context.Context) WebAclRuleActionCountOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i WebAclRuleActionCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCount] { + return pulumix.Output[WebAclRuleActionCount]{ + OutputState: i.ToWebAclRuleActionCountOutputWithContext(ctx).OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) WebAclRuleStatementByteMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret WebAclRuleStatementByteMatchStatementFieldToMatch - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput) +func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { + return i.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) } -// Inspect all query arguments. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementByteMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments struct { -} - -// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { -} - -func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, - } -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleActionCountArgs) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountOutput).ToWebAclRuleActionCountPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleActionCountPtrInput is an input type that accepts WebAclRuleActionCountArgs, WebAclRuleActionCountPtr and WebAclRuleActionCountPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleActionCountArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleActionCountPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput + ToWebAclRuleActionCountPtrOutputWithContext(context.Context) WebAclRuleActionCountPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleActionCountPtrType WebAclRuleActionCountArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleActionCountPtr(v *WebAclRuleActionCountArgs) WebAclRuleActionCountPtrInput { + return (*webAclRuleActionCountPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleActionCountPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCount)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionCountPtrType) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { + return i.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleActionCountPtrType) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCount] { + return pulumix.Output[*WebAclRuleActionCount]{ + OutputState: i.ToWebAclRuleActionCountPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleActionCountOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCount)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountOutput() WebAclRuleActionCountOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountOutputWithContext(ctx context.Context) WebAclRuleActionCountOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { + return o.ToWebAclRuleActionCountPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleActionCountOutput) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCount) *WebAclRuleActionCount { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleActionCountPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleActionCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCount] { + return pulumix.Output[WebAclRuleActionCount]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionCountOutput) CustomRequestHandling() WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleActionCount) *WebAclRuleActionCountCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +type WebAclRuleActionCountPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleActionCountPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCount)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleActionCountPtrOutput) ToWebAclRuleActionCountPtrOutput() WebAclRuleActionCountPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleActionCountPtrOutput) ToWebAclRuleActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleActionCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCount] { + return pulumix.Output[*WebAclRuleActionCount]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleActionCountPtrOutput) Elem() WebAclRuleActionCountOutput { + return o.ApplyT(func(v *WebAclRuleActionCount) WebAclRuleActionCount { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments + var ret WebAclRuleActionCount return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleActionCountOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleActionCountPtrOutput) CustomRequestHandling() WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleActionCount) *WebAclRuleActionCountCustomRequestHandling { + if v == nil { + return nil + } + return v.CustomRequestHandling + }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput` via: +type WebAclRuleActionCountCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleActionCountCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +} + +// WebAclRuleActionCountCustomRequestHandlingInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingArgs and WebAclRuleActionCountCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput interface { +// WebAclRuleActionCountCustomRequestHandlingArgs{...} +type WebAclRuleActionCountCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput + ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput + ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleActionCountCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput { + return i.ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) +func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionCountCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleActionCountCustomRequestHandlingArgs) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingOutput).ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleActionCountCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingArgs, WebAclRuleActionCountCustomRequestHandlingPtr and WebAclRuleActionCountCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs{...} +// WebAclRuleActionCountCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleActionCountCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput + ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs +type webAclRuleActionCountCustomRequestHandlingPtrType WebAclRuleActionCountCustomRequestHandlingArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleActionCountCustomRequestHandlingPtr(v *WebAclRuleActionCountCustomRequestHandlingArgs) WebAclRuleActionCountCustomRequestHandlingPtrInput { + return (*webAclRuleActionCountCustomRequestHandlingPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleActionCountCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleActionCountCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCountCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionCountCustomRequestHandling]{ + OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingOutput() WebAclRuleActionCountCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchBody) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { +func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleActionCountCustomRequestHandling) *WebAclRuleActionCountCustomRequestHandling { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleActionCountCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ +func (o WebAclRuleActionCountCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandling] { + return pulumix.Output[WebAclRuleActionCountCustomRequestHandling]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionCountCustomRequestHandlingOutput) InsertHeaders() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandling) []WebAclRuleActionCountCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleActionCountCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutput() WebAclRuleActionCountCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToWebAclRuleActionCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ +func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleActionCountCustomRequestHandling] { + return pulumix.Output[*WebAclRuleActionCountCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchBody) WebAclRuleStatementByteMatchStatementFieldToMatchBody { +func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) Elem() WebAclRuleActionCountCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleActionCountCustomRequestHandling) WebAclRuleActionCountCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchBody + var ret WebAclRuleActionCountCustomRequestHandling return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) + }).(WebAclRuleActionCountCustomRequestHandlingOutput) } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchBody) *string { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleActionCountCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleActionCountCustomRequestHandling) []WebAclRuleActionCountCustomRequestHandlingInsertHeader { if v == nil { return nil } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.InsertHeaders + }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleActionCountCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput` via: +// WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs and WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput interface { +// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs{...} -// -// or: +// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray and WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { +// WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray{ WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs - -func WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) -} +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray []WebAclRuleActionCountCustomRequestHandlingInsertHeaderInput -func (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleActionCountCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { - return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: o.OutputState, - } -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandlingInsertHeader) string { return v.Name }).(pulumi.StringOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +// Value of the custom header. +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleActionCountCustomRequestHandlingInsertHeader) string { return v.Value }).(pulumi.StringOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleActionCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleActionCountCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) WebAclRuleStatementByteMatchStatementFieldToMatchCookies { - if v != nil { - return *v - } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchCookies - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) +func (o WebAclRuleActionCountCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleActionCountCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleActionCountCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +type WebAclRuleCaptchaConfig struct { + // Defines custom immunity time. See `immunityTimeProperty` below for details. + ImmunityTimeProperty *WebAclRuleCaptchaConfigImmunityTimeProperty `pulumi:"immunityTimeProperty"` } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} +// WebAclRuleCaptchaConfigInput is an input type that accepts WebAclRuleCaptchaConfigArgs and WebAclRuleCaptchaConfigOutput values. +// You can construct a concrete instance of `WebAclRuleCaptchaConfigInput` via: +// +// WebAclRuleCaptchaConfigArgs{...} +type WebAclRuleCaptchaConfigInput interface { + pulumi.Input -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput + ToWebAclRuleCaptchaConfigOutputWithContext(context.Context) WebAclRuleCaptchaConfigOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type WebAclRuleCaptchaConfigArgs struct { + // Defines custom immunity time. See `immunityTimeProperty` below for details. + ImmunityTimeProperty WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput `pulumi:"immunityTimeProperty"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput +func (WebAclRuleCaptchaConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleCaptchaConfig)(nil)).Elem() } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput { + return i.ToWebAclRuleCaptchaConfigOutputWithContext(context.Background()) } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleCaptchaConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfig] { + return pulumix.Output[WebAclRuleCaptchaConfig]{ + OutputState: i.ToWebAclRuleCaptchaConfigOutputWithContext(ctx).OutputState, + } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { + return i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleCaptchaConfigArgs) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigOutput).ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// WebAclRuleCaptchaConfigPtrInput is an input type that accepts WebAclRuleCaptchaConfigArgs, WebAclRuleCaptchaConfigPtr and WebAclRuleCaptchaConfigPtrOutput values. +// You can construct a concrete instance of `WebAclRuleCaptchaConfigPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleCaptchaConfigArgs{...} +// +// or: +// +// nil +type WebAclRuleCaptchaConfigPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput + ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Context) WebAclRuleCaptchaConfigPtrOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleCaptchaConfigPtrType WebAclRuleCaptchaConfigArgs -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleCaptchaConfigPtr(v *WebAclRuleCaptchaConfigArgs) WebAclRuleCaptchaConfigPtrInput { + return (*webAclRuleCaptchaConfigPtrType)(v) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleCaptchaConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleCaptchaConfig)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleCaptchaConfigPtrType) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { + return i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleCaptchaConfigPtrType) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigPtrOutput) +} + +func (i *webAclRuleCaptchaConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfig] { + return pulumix.Output[*WebAclRuleCaptchaConfig]{ + OutputState: i.ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleCaptchaConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleCaptchaConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleCaptchaConfig)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigOutput() WebAclRuleCaptchaConfigOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } +func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { + return o.ToWebAclRuleCaptchaConfigPtrOutputWithContext(context.Background()) } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleCaptchaConfigOutput) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfig { + return &v + }).(WebAclRuleCaptchaConfigPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleCaptchaConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfig] { + return pulumix.Output[WebAclRuleCaptchaConfig]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +// Defines custom immunity time. See `immunityTimeProperty` below for details. +func (o WebAclRuleCaptchaConfigOutput) ImmunityTimeProperty() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyT(func(v WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfigImmunityTimeProperty { + return v.ImmunityTimeProperty + }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleCaptchaConfigPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleCaptchaConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleCaptchaConfig)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleCaptchaConfigPtrOutput) ToWebAclRuleCaptchaConfigPtrOutput() WebAclRuleCaptchaConfigPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleCaptchaConfigPtrOutput) ToWebAclRuleCaptchaConfigPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleCaptchaConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfig] { + return pulumix.Output[*WebAclRuleCaptchaConfig]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleCaptchaConfigPtrOutput) Elem() WebAclRuleCaptchaConfigOutput { + return o.ApplyT(func(v *WebAclRuleCaptchaConfig) WebAclRuleCaptchaConfig { + if v != nil { + return *v + } + var ret WebAclRuleCaptchaConfig + return ret + }).(WebAclRuleCaptchaConfigOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { +// Defines custom immunity time. See `immunityTimeProperty` below for details. +func (o WebAclRuleCaptchaConfigPtrOutput) ImmunityTimeProperty() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyT(func(v *WebAclRuleCaptchaConfig) *WebAclRuleCaptchaConfigImmunityTimeProperty { + if v == nil { + return nil + } + return v.ImmunityTimeProperty + }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +type WebAclRuleCaptchaConfigImmunityTimeProperty struct { + // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + ImmunityTime *int `pulumi:"immunityTime"` +} + +// WebAclRuleCaptchaConfigImmunityTimePropertyInput is an input type that accepts WebAclRuleCaptchaConfigImmunityTimePropertyArgs and WebAclRuleCaptchaConfigImmunityTimePropertyOutput values. +// You can construct a concrete instance of `WebAclRuleCaptchaConfigImmunityTimePropertyInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleCaptchaConfigImmunityTimePropertyArgs{...} +type WebAclRuleCaptchaConfigImmunityTimePropertyInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput + ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleCaptchaConfigImmunityTimePropertyArgs struct { + // The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + ImmunityTime pulumi.IntPtrInput `pulumi:"immunityTime"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { + return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty]{ + OutputState: i.ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleCaptchaConfigImmunityTimePropertyArgs) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput).ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput is an input type that accepts WebAclRuleCaptchaConfigImmunityTimePropertyArgs, WebAclRuleCaptchaConfigImmunityTimePropertyPtr and WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleCaptchaConfigImmunityTimePropertyArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput + ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleCaptchaConfigImmunityTimePropertyPtrType WebAclRuleCaptchaConfigImmunityTimePropertyArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleCaptchaConfigImmunityTimePropertyPtr(v *WebAclRuleCaptchaConfigImmunityTimePropertyArgs) WebAclRuleCaptchaConfigImmunityTimePropertyPtrInput { + return (*webAclRuleCaptchaConfigImmunityTimePropertyPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleCaptchaConfigImmunityTimePropertyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty]{ + OutputState: i.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleCaptchaConfigImmunityTimePropertyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutput() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleCaptchaConfigImmunityTimeProperty) *WebAclRuleCaptchaConfigImmunityTimeProperty { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[WebAclRuleCaptchaConfigImmunityTimeProperty]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. +func (o WebAclRuleCaptchaConfigImmunityTimePropertyOutput) ImmunityTime() pulumi.IntPtrOutput { + return o.ApplyT(func(v WebAclRuleCaptchaConfigImmunityTimeProperty) *int { return v.ImmunityTime }).(pulumi.IntPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +type WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleCaptchaConfigImmunityTimeProperty)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput() WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToWebAclRuleCaptchaConfigImmunityTimePropertyPtrOutputWithContext(ctx context.Context) WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty] { + return pulumix.Output[*WebAclRuleCaptchaConfigImmunityTimeProperty]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) Elem() WebAclRuleCaptchaConfigImmunityTimePropertyOutput { + return o.ApplyT(func(v *WebAclRuleCaptchaConfigImmunityTimeProperty) WebAclRuleCaptchaConfigImmunityTimeProperty { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleCaptchaConfigImmunityTimeProperty return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(WebAclRuleCaptchaConfigImmunityTimePropertyOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. +func (o WebAclRuleCaptchaConfigImmunityTimePropertyPtrOutput) ImmunityTime() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclRuleCaptchaConfigImmunityTimeProperty) *int { + if v == nil { + return nil + } + return v.ImmunityTime + }).(pulumi.IntPtrOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput` via: +type WebAclRuleOverrideAction struct { + // Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + Count *WebAclRuleOverrideActionCount `pulumi:"count"` + // Don't override the rule action setting. Configured as an empty block `{}`. + None *WebAclRuleOverrideActionNone `pulumi:"none"` +} + +// WebAclRuleOverrideActionInput is an input type that accepts WebAclRuleOverrideActionArgs and WebAclRuleOverrideActionOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput interface { +// WebAclRuleOverrideActionArgs{...} +type WebAclRuleOverrideActionInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput + ToWebAclRuleOverrideActionOutputWithContext(context.Context) WebAclRuleOverrideActionOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleOverrideActionArgs struct { + // Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + Count WebAclRuleOverrideActionCountPtrInput `pulumi:"count"` + // Don't override the rule action setting. Configured as an empty block `{}`. + None WebAclRuleOverrideActionNonePtrInput `pulumi:"none"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleOverrideActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideAction)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput { + return i.ToWebAclRuleOverrideActionOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionOutputWithContext(ctx context.Context) WebAclRuleOverrideActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleOverrideActionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideAction] { + return pulumix.Output[WebAclRuleOverrideAction]{ + OutputState: i.ToWebAclRuleOverrideActionOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: +func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { + return i.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleOverrideActionArgs) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionOutput).ToWebAclRuleOverrideActionPtrOutputWithContext(ctx) +} + +// WebAclRuleOverrideActionPtrInput is an input type that accepts WebAclRuleOverrideActionArgs, WebAclRuleOverrideActionPtr and WebAclRuleOverrideActionPtrOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { +// WebAclRuleOverrideActionArgs{...} +// +// or: +// +// nil +type WebAclRuleOverrideActionPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput + ToWebAclRuleOverrideActionPtrOutputWithContext(context.Context) WebAclRuleOverrideActionPtrOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput +type webAclRuleOverrideActionPtrType WebAclRuleOverrideActionArgs -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func WebAclRuleOverrideActionPtr(v *WebAclRuleOverrideActionArgs) WebAclRuleOverrideActionPtrInput { + return (*webAclRuleOverrideActionPtrType)(v) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleOverrideActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideAction)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +func (i *webAclRuleOverrideActionPtrType) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { + return i.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleOverrideActionPtrType) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionPtrOutput) +} + +func (i *webAclRuleOverrideActionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideAction] { + return pulumix.Output[*WebAclRuleOverrideAction]{ + OutputState: i.ToWebAclRuleOverrideActionPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleOverrideActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideAction)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionOutput() WebAclRuleOverrideActionOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionOutputWithContext(ctx context.Context) WebAclRuleOverrideActionOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { + return o.ToWebAclRuleOverrideActionPtrOutputWithContext(context.Background()) } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) -} - -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o +func (o WebAclRuleOverrideActionOutput) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideAction) *WebAclRuleOverrideAction { + return &v + }).(WebAclRuleOverrideActionPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ +func (o WebAclRuleOverrideActionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideAction] { + return pulumix.Output[WebAclRuleOverrideAction]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) +// Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. +func (o WebAclRuleOverrideActionOutput) Count() WebAclRuleOverrideActionCountPtrOutput { + return o.ApplyT(func(v WebAclRuleOverrideAction) *WebAclRuleOverrideActionCount { return v.Count }).(WebAclRuleOverrideActionCountPtrOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, - } +// Don't override the rule action setting. Configured as an empty block `{}`. +func (o WebAclRuleOverrideActionOutput) None() WebAclRuleOverrideActionNonePtrOutput { + return o.ApplyT(func(v WebAclRuleOverrideAction) *WebAclRuleOverrideActionNone { return v.None }).(WebAclRuleOverrideActionNonePtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleOverrideActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideAction)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleOverrideActionPtrOutput) ToWebAclRuleOverrideActionPtrOutput() WebAclRuleOverrideActionPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleOverrideActionPtrOutput) ToWebAclRuleOverrideActionPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleOverrideActionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideAction] { + return pulumix.Output[*WebAclRuleOverrideAction]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (o WebAclRuleOverrideActionPtrOutput) Elem() WebAclRuleOverrideActionOutput { + return o.ApplyT(func(v *WebAclRuleOverrideAction) WebAclRuleOverrideAction { + if v != nil { + return *v + } + var ret WebAclRuleOverrideAction + return ret + }).(WebAclRuleOverrideActionOutput) } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +// Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. +func (o WebAclRuleOverrideActionPtrOutput) Count() WebAclRuleOverrideActionCountPtrOutput { + return o.ApplyT(func(v *WebAclRuleOverrideAction) *WebAclRuleOverrideActionCount { + if v == nil { + return nil + } + return v.Count + }).(WebAclRuleOverrideActionCountPtrOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +// Don't override the rule action setting. Configured as an empty block `{}`. +func (o WebAclRuleOverrideActionPtrOutput) None() WebAclRuleOverrideActionNonePtrOutput { + return o.ApplyT(func(v *WebAclRuleOverrideAction) *WebAclRuleOverrideActionNone { + if v == nil { + return nil + } + return v.None + }).(WebAclRuleOverrideActionNonePtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleOverrideActionCount struct { } -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleOverrideActionCountInput is an input type that accepts WebAclRuleOverrideActionCountArgs and WebAclRuleOverrideActionCountOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionCountInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleOverrideActionCountArgs{...} +type WebAclRuleOverrideActionCountInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput + ToWebAclRuleOverrideActionCountOutputWithContext(context.Context) WebAclRuleOverrideActionCountOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleOverrideActionCountArgs struct { } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleOverrideActionCountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideActionCount)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput { + return i.ToWebAclRuleOverrideActionCountOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleOverrideActionCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionCount] { + return pulumix.Output[WebAclRuleOverrideActionCount]{ + OutputState: i.ToWebAclRuleOverrideActionCountOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { + return i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleOverrideActionCountArgs) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountOutput).ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleOverrideActionCountPtrInput is an input type that accepts WebAclRuleOverrideActionCountArgs, WebAclRuleOverrideActionCountPtr and WebAclRuleOverrideActionCountPtrOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionCountPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleOverrideActionCountArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleOverrideActionCountPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput + ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Context) WebAclRuleOverrideActionCountPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleOverrideActionCountPtrType WebAclRuleOverrideActionCountArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleOverrideActionCountPtr(v *WebAclRuleOverrideActionCountArgs) WebAclRuleOverrideActionCountPtrInput { + return (*webAclRuleOverrideActionCountPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleOverrideActionCountPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideActionCount)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleOverrideActionCountPtrType) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { + return i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleOverrideActionCountPtrType) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionCountPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleOverrideActionCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionCount] { + return pulumix.Output[*WebAclRuleOverrideActionCount]{ + OutputState: i.ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionCountOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleOverrideActionCountOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideActionCount)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountOutput() WebAclRuleOverrideActionCountOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { + return o.ToWebAclRuleOverrideActionCountPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleOverrideActionCountOutput) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideActionCount) *WebAclRuleOverrideActionCount { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleOverrideActionCountPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleOverrideActionCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionCount] { + return pulumix.Output[WebAclRuleOverrideActionCount]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionCountPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleOverrideActionCountPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideActionCount)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleOverrideActionCountPtrOutput) ToWebAclRuleOverrideActionCountPtrOutput() WebAclRuleOverrideActionCountPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleOverrideActionCountPtrOutput) ToWebAclRuleOverrideActionCountPtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionCountPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleOverrideActionCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionCount] { + return pulumix.Output[*WebAclRuleOverrideActionCount]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleOverrideActionCountPtrOutput) Elem() WebAclRuleOverrideActionCountOutput { + return o.ApplyT(func(v *WebAclRuleOverrideActionCount) WebAclRuleOverrideActionCount { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleOverrideActionCount return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleOverrideActionCountOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type WebAclRuleOverrideActionNone struct { } -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput` via: +// WebAclRuleOverrideActionNoneInput is an input type that accepts WebAclRuleOverrideActionNoneArgs and WebAclRuleOverrideActionNoneOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionNoneInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleOverrideActionNoneArgs{...} +type WebAclRuleOverrideActionNoneInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput + ToWebAclRuleOverrideActionNoneOutputWithContext(context.Context) WebAclRuleOverrideActionNoneOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleOverrideActionNoneArgs struct { } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleOverrideActionNoneArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideActionNone)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput { + return i.ToWebAclRuleOverrideActionNoneOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNoneOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNoneOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNoneOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleOverrideActionNoneArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionNone] { + return pulumix.Output[WebAclRuleOverrideActionNone]{ + OutputState: i.ToWebAclRuleOverrideActionNoneOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { + return i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleOverrideActionNoneArgs) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNoneOutput).ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleOverrideActionNonePtrInput is an input type that accepts WebAclRuleOverrideActionNoneArgs, WebAclRuleOverrideActionNonePtr and WebAclRuleOverrideActionNonePtrOutput values. +// You can construct a concrete instance of `WebAclRuleOverrideActionNonePtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleOverrideActionNoneArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleOverrideActionNonePtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput + ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Context) WebAclRuleOverrideActionNonePtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs +type webAclRuleOverrideActionNonePtrType WebAclRuleOverrideActionNoneArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleOverrideActionNonePtr(v *WebAclRuleOverrideActionNoneArgs) WebAclRuleOverrideActionNonePtrInput { + return (*webAclRuleOverrideActionNonePtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleOverrideActionNonePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideActionNone)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleOverrideActionNonePtrType) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { + return i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleOverrideActionNonePtrType) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleOverrideActionNonePtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleOverrideActionNonePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionNone] { + return pulumix.Output[*WebAclRuleOverrideActionNone]{ + OutputState: i.ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionNoneOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleOverrideActionNoneOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleOverrideActionNone)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNoneOutput() WebAclRuleOverrideActionNoneOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNoneOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNoneOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { + return o.ToWebAclRuleOverrideActionNonePtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleOverrideActionNoneOutput) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleOverrideActionNone) *WebAclRuleOverrideActionNone { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleOverrideActionNonePtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleOverrideActionNoneOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleOverrideActionNone] { + return pulumix.Output[WebAclRuleOverrideActionNone]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleOverrideActionNonePtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleOverrideActionNonePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleOverrideActionNone)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleOverrideActionNonePtrOutput) ToWebAclRuleOverrideActionNonePtrOutput() WebAclRuleOverrideActionNonePtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleOverrideActionNonePtrOutput) ToWebAclRuleOverrideActionNonePtrOutputWithContext(ctx context.Context) WebAclRuleOverrideActionNonePtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleOverrideActionNonePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleOverrideActionNone] { + return pulumix.Output[*WebAclRuleOverrideActionNone]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleOverrideActionNonePtrOutput) Elem() WebAclRuleOverrideActionNoneOutput { + return o.ApplyT(func(v *WebAclRuleOverrideActionNone) WebAclRuleOverrideActionNone { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody + var ret WebAclRuleOverrideActionNone return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(WebAclRuleOverrideActionNoneOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleRuleLabel struct { + // Label string. + Name string `pulumi:"name"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleRuleLabelInput is an input type that accepts WebAclRuleRuleLabelArgs and WebAclRuleRuleLabelOutput values. +// You can construct a concrete instance of `WebAclRuleRuleLabelInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleRuleLabelArgs{...} +type WebAclRuleRuleLabelInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput + ToWebAclRuleRuleLabelOutputWithContext(context.Context) WebAclRuleRuleLabelOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type WebAclRuleRuleLabelArgs struct { + // Label string. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleRuleLabelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleRuleLabel)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleRuleLabelArgs) ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput { + return i.ToWebAclRuleRuleLabelOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleRuleLabelArgs) ToWebAclRuleRuleLabelOutputWithContext(ctx context.Context) WebAclRuleRuleLabelOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleRuleLabelOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleRuleLabelArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleRuleLabel] { + return pulumix.Output[WebAclRuleRuleLabel]{ + OutputState: i.ToWebAclRuleRuleLabelOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -// -// or: +// WebAclRuleRuleLabelArrayInput is an input type that accepts WebAclRuleRuleLabelArray and WebAclRuleRuleLabelArrayOutput values. +// You can construct a concrete instance of `WebAclRuleRuleLabelArrayInput` via: // -// nil -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +// WebAclRuleRuleLabelArray{ WebAclRuleRuleLabelArgs{...} } +type WebAclRuleRuleLabelArrayInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput + ToWebAclRuleRuleLabelArrayOutputWithContext(context.Context) WebAclRuleRuleLabelArrayOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs - -func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) -} +type WebAclRuleRuleLabelArray []WebAclRuleRuleLabelInput -func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleRuleLabelArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleRuleLabel)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleRuleLabelArray) ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput { + return i.ToWebAclRuleRuleLabelArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i WebAclRuleRuleLabelArray) ToWebAclRuleRuleLabelArrayOutputWithContext(ctx context.Context) WebAclRuleRuleLabelArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleRuleLabelArrayOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleRuleLabelArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleRuleLabel] { + return pulumix.Output[[]WebAclRuleRuleLabel]{ + OutputState: i.ToWebAclRuleRuleLabelArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleRuleLabelOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleRuleLabelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleRuleLabel)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleRuleLabelOutput) ToWebAclRuleRuleLabelOutput() WebAclRuleRuleLabelOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleRuleLabelOutput) ToWebAclRuleRuleLabelOutputWithContext(ctx context.Context) WebAclRuleRuleLabelOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleRuleLabelOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleRuleLabel] { + return pulumix.Output[WebAclRuleRuleLabel]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Label string. +func (o WebAclRuleRuleLabelOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleRuleLabel) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleRuleLabelArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleRuleLabelArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleRuleLabel)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleRuleLabelArrayOutput) ToWebAclRuleRuleLabelArrayOutput() WebAclRuleRuleLabelArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleRuleLabelArrayOutput) ToWebAclRuleRuleLabelArrayOutputWithContext(ctx context.Context) WebAclRuleRuleLabelArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleRuleLabelArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleRuleLabel] { + return pulumix.Output[[]WebAclRuleRuleLabel]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - if v != nil { - return *v - } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (o WebAclRuleRuleLabelArrayOutput) Index(i pulumi.IntInput) WebAclRuleRuleLabelOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleRuleLabel { + return vs[0].([]WebAclRuleRuleLabel)[vs[1].(int)] + }).(WebAclRuleRuleLabelOutput) } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +type WebAclRuleStatement struct { + // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. + AndStatement *WebAclRuleStatementAndStatement `pulumi:"andStatement"` + // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. + ByteMatchStatement *WebAclRuleStatementByteMatchStatement `pulumi:"byteMatchStatement"` + // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. + GeoMatchStatement *WebAclRuleStatementGeoMatchStatement `pulumi:"geoMatchStatement"` + // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. + IpSetReferenceStatement *WebAclRuleStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` + // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. + LabelMatchStatement *WebAclRuleStatementLabelMatchStatement `pulumi:"labelMatchStatement"` + // Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. + ManagedRuleGroupStatement *WebAclRuleStatementManagedRuleGroupStatement `pulumi:"managedRuleGroupStatement"` + // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. + NotStatement *WebAclRuleStatementNotStatement `pulumi:"notStatement"` + // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. + OrStatement *WebAclRuleStatementOrStatement `pulumi:"orStatement"` + // Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. + RateBasedStatement *WebAclRuleStatementRateBasedStatement `pulumi:"rateBasedStatement"` + // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. + RegexMatchStatement *WebAclRuleStatementRegexMatchStatement `pulumi:"regexMatchStatement"` + // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. + RegexPatternSetReferenceStatement *WebAclRuleStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` + // Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. + RuleGroupReferenceStatement *WebAclRuleStatementRuleGroupReferenceStatement `pulumi:"ruleGroupReferenceStatement"` + // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. + SizeConstraintStatement *WebAclRuleStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. + SqliMatchStatement *WebAclRuleStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` + // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. + XssMatchStatement *WebAclRuleStatementXssMatchStatement `pulumi:"xssMatchStatement"` } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// WebAclRuleStatementInput is an input type that accepts WebAclRuleStatementArgs and WebAclRuleStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementInput` via: +// +// WebAclRuleStatementArgs{...} +type WebAclRuleStatementInput interface { + pulumi.Input + + ToWebAclRuleStatementOutput() WebAclRuleStatementOutput + ToWebAclRuleStatementOutputWithContext(context.Context) WebAclRuleStatementOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementArgs struct { + // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. + AndStatement WebAclRuleStatementAndStatementPtrInput `pulumi:"andStatement"` + // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. + ByteMatchStatement WebAclRuleStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` + // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. + GeoMatchStatement WebAclRuleStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` + // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. + IpSetReferenceStatement WebAclRuleStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` + // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. + LabelMatchStatement WebAclRuleStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` + // Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. + ManagedRuleGroupStatement WebAclRuleStatementManagedRuleGroupStatementPtrInput `pulumi:"managedRuleGroupStatement"` + // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. + NotStatement WebAclRuleStatementNotStatementPtrInput `pulumi:"notStatement"` + // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. + OrStatement WebAclRuleStatementOrStatementPtrInput `pulumi:"orStatement"` + // Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. + RateBasedStatement WebAclRuleStatementRateBasedStatementPtrInput `pulumi:"rateBasedStatement"` + // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. + RegexMatchStatement WebAclRuleStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` + // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. + RegexPatternSetReferenceStatement WebAclRuleStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` + // Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. + RuleGroupReferenceStatement WebAclRuleStatementRuleGroupReferenceStatementPtrInput `pulumi:"ruleGroupReferenceStatement"` + // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. + SizeConstraintStatement WebAclRuleStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. + SqliMatchStatement WebAclRuleStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` + // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. + XssMatchStatement WebAclRuleStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +func (WebAclRuleStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatement)(nil)).Elem() +} + +func (i WebAclRuleStatementArgs) ToWebAclRuleStatementOutput() WebAclRuleStatementOutput { + return i.ToWebAclRuleStatementOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementArgs) ToWebAclRuleStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOutput) +} + +func (i WebAclRuleStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatement] { + return pulumix.Output[WebAclRuleStatement]{ + OutputState: i.ToWebAclRuleStatementOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementArrayInput is an input type that accepts WebAclRuleStatementArray and WebAclRuleStatementArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementArrayInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementArray{ WebAclRuleStatementArgs{...} } +type WebAclRuleStatementArrayInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput + ToWebAclRuleStatementArrayOutputWithContext(context.Context) WebAclRuleStatementArrayOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { -} +type WebAclRuleStatementArray []WebAclRuleStatementInput -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatement)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementArray) ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput { + return i.ToWebAclRuleStatementArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementArray) ToWebAclRuleStatementArrayOutputWithContext(ctx context.Context) WebAclRuleStatementArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementArrayOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatement] { + return pulumix.Output[[]WebAclRuleStatement]{ + OutputState: i.ToWebAclRuleStatementArrayOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +type WebAclRuleStatementOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatement)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (o WebAclRuleStatementOutput) ToWebAclRuleStatementOutput() WebAclRuleStatementOutput { + return o } -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { - pulumi.Input +func (o WebAclRuleStatementOutput) ToWebAclRuleStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOutput { + return o +} - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput +func (o WebAclRuleStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatement] { + return pulumix.Output[WebAclRuleStatement]{ + OutputState: o.OutputState, + } } -type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. +func (o WebAclRuleStatementOutput) AndStatement() WebAclRuleStatementAndStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementAndStatement { return v.AndStatement }).(WebAclRuleStatementAndStatementPtrOutput) +} -func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. +func (o WebAclRuleStatementOutput) ByteMatchStatement() WebAclRuleStatementByteMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementByteMatchStatement { return v.ByteMatchStatement }).(WebAclRuleStatementByteMatchStatementPtrOutput) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. +func (o WebAclRuleStatementOutput) GeoMatchStatement() WebAclRuleStatementGeoMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementGeoMatchStatement { return v.GeoMatchStatement }).(WebAclRuleStatementGeoMatchStatementPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. +func (o WebAclRuleStatementOutput) IpSetReferenceStatement() WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementIpSetReferenceStatement { + return v.IpSetReferenceStatement + }).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. +func (o WebAclRuleStatementOutput) LabelMatchStatement() WebAclRuleStatementLabelMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementLabelMatchStatement { return v.LabelMatchStatement }).(WebAclRuleStatementLabelMatchStatementPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, - } +// Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managedRuleGroupStatement` below for details. +func (o WebAclRuleStatementOutput) ManagedRuleGroupStatement() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementManagedRuleGroupStatement { + return v.ManagedRuleGroupStatement + }).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. +func (o WebAclRuleStatementOutput) NotStatement() WebAclRuleStatementNotStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementNotStatement { return v.NotStatement }).(WebAclRuleStatementNotStatementPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. +func (o WebAclRuleStatementOutput) OrStatement() WebAclRuleStatementOrStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementOrStatement { return v.OrStatement }).(WebAclRuleStatementOrStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o +// Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rateBasedStatement` below for details. +func (o WebAclRuleStatementOutput) RateBasedStatement() WebAclRuleStatementRateBasedStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRateBasedStatement { return v.RateBasedStatement }).(WebAclRuleStatementRateBasedStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o +// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. +func (o WebAclRuleStatementOutput) RegexMatchStatement() WebAclRuleStatementRegexMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRegexMatchStatement { return v.RegexMatchStatement }).(WebAclRuleStatementRegexMatchStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. +func (o WebAclRuleStatementOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRegexPatternSetReferenceStatement { + return v.RegexPatternSetReferenceStatement + }).(WebAclRuleStatementRegexPatternSetReferenceStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `ruleGroupReferenceStatement` below for details. +func (o WebAclRuleStatementOutput) RuleGroupReferenceStatement() WebAclRuleStatementRuleGroupReferenceStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementRuleGroupReferenceStatement { + return v.RuleGroupReferenceStatement + }).(WebAclRuleStatementRuleGroupReferenceStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. +func (o WebAclRuleStatementOutput) SizeConstraintStatement() WebAclRuleStatementSizeConstraintStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementSizeConstraintStatement { + return v.SizeConstraintStatement + }).(WebAclRuleStatementSizeConstraintStatementPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. +func (o WebAclRuleStatementOutput) SqliMatchStatement() WebAclRuleStatementSqliMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementSqliMatchStatement { return v.SqliMatchStatement }).(WebAclRuleStatementSqliMatchStatementPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. +func (o WebAclRuleStatementOutput) XssMatchStatement() WebAclRuleStatementXssMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatement) *WebAclRuleStatementXssMatchStatement { return v.XssMatchStatement }).(WebAclRuleStatementXssMatchStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +type WebAclRuleStatementArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementArrayOutput) ToWebAclRuleStatementArrayOutput() WebAclRuleStatementArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementArrayOutput) ToWebAclRuleStatementArrayOutputWithContext(ctx context.Context) WebAclRuleStatementArrayOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatement] { + return pulumix.Output[[]WebAclRuleStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o WebAclRuleStatementArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatement { + return vs[0].([]WebAclRuleStatement)[vs[1].(int)] + }).(WebAclRuleStatementOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchMethod struct { +type WebAclRuleStatementAndStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` } -// WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput` via: +// WebAclRuleStatementAndStatementInput is an input type that accepts WebAclRuleStatementAndStatementArgs and WebAclRuleStatementAndStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementAndStatementInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementAndStatementArgs{...} +type WebAclRuleStatementAndStatementInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput + ToWebAclRuleStatementAndStatementOutputWithContext(context.Context) WebAclRuleStatementAndStatementOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementAndStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementAndStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementAndStatement)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput { + return i.ToWebAclRuleStatementAndStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementAndStatement] { + return pulumix.Output[WebAclRuleStatementAndStatement]{ + OutputState: i.ToWebAclRuleStatementAndStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { + return i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementAndStatementArgs) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementOutput).ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementAndStatementPtrInput is an input type that accepts WebAclRuleStatementAndStatementArgs, WebAclRuleStatementAndStatementPtr and WebAclRuleStatementAndStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementAndStatementPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementAndStatementArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementAndStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput + ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Context) WebAclRuleStatementAndStatementPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs +type webAclRuleStatementAndStatementPtrType WebAclRuleStatementAndStatementArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementAndStatementPtr(v *WebAclRuleStatementAndStatementArgs) WebAclRuleStatementAndStatementPtrInput { + return (*webAclRuleStatementAndStatementPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementAndStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementAndStatement)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementAndStatementPtrType) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { + return i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementAndStatementPtrType) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementAndStatementPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementAndStatement] { + return pulumix.Output[*WebAclRuleStatementAndStatement]{ + OutputState: i.ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementAndStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementAndStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementAndStatement)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementOutput() WebAclRuleStatementAndStatementOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { + return o.ToWebAclRuleStatementAndStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchMethod) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementAndStatementOutput) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementAndStatement) *WebAclRuleStatementAndStatement { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementAndStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementAndStatement] { + return pulumix.Output[WebAclRuleStatementAndStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// The statements to combine. +func (o WebAclRuleStatementAndStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementAndStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +type WebAclRuleStatementAndStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementAndStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementAndStatement)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementAndStatementPtrOutput) ToWebAclRuleStatementAndStatementPtrOutput() WebAclRuleStatementAndStatementPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementAndStatementPtrOutput) ToWebAclRuleStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementAndStatementPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementAndStatement] { + return pulumix.Output[*WebAclRuleStatementAndStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchMethod) WebAclRuleStatementByteMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementAndStatementPtrOutput) Elem() WebAclRuleStatementAndStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementAndStatement) WebAclRuleStatementAndStatement { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchMethod + var ret WebAclRuleStatementAndStatement return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) + }).(WebAclRuleStatementAndStatementOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryString struct { +// The statements to combine. +func (o WebAclRuleStatementAndStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementAndStatement) []WebAclRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput` via: +type WebAclRuleStatementByteMatchStatement struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint string `pulumi:"positionalConstraint"` + // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString string `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementByteMatchStatementInput is an input type that accepts WebAclRuleStatementByteMatchStatementArgs and WebAclRuleStatementByteMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput interface { +// WebAclRuleStatementByteMatchStatementArgs{...} +type WebAclRuleStatementByteMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput + ToWebAclRuleStatementByteMatchStatementOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs struct { +type WebAclRuleStatementByteMatchStatementArgs struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` + // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString pulumi.StringInput `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput { + return i.ToWebAclRuleStatementByteMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) +func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatement] { + return pulumix.Output[WebAclRuleStatementByteMatchStatement]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementArgs) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementOutput).ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: +// WebAclRuleStatementByteMatchStatementPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementArgs, WebAclRuleStatementByteMatchStatementPtr and WebAclRuleStatementByteMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +// WebAclRuleStatementByteMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { +type WebAclRuleStatementByteMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput + ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs +type webAclRuleStatementByteMatchStatementPtrType WebAclRuleStatementByteMatchStatementArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) +func WebAclRuleStatementByteMatchStatementPtr(v *WebAclRuleStatementByteMatchStatementArgs) WebAclRuleStatementByteMatchStatementPtrInput { + return (*webAclRuleStatementByteMatchStatementPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementPtrType) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *webAclRuleStatementByteMatchStatementPtrType) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatement] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatement]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementOutput() WebAclRuleStatementByteMatchStatementOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchQueryString) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementByteMatchStatementOutput) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatement { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) + }).(WebAclRuleStatementByteMatchStatementPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatement] { + return pulumix.Output[WebAclRuleStatementByteMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementByteMatchStatementOutput) FieldToMatch() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o WebAclRuleStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) string { return v.PositionalConstraint }).(pulumi.StringOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { +// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o WebAclRuleStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) string { return v.SearchString }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementByteMatchStatementOutput) TextTransformations() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatement) []WebAclRuleStatementByteMatchStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementByteMatchStatementPtrOutput() WebAclRuleStatementByteMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { +func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatement] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString) WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementByteMatchStatementPtrOutput) Elem() WebAclRuleStatementByteMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) WebAclRuleStatementByteMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchQueryString + var ret WebAclRuleStatementByteMatchStatement return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) + }).(WebAclRuleStatementByteMatchStatementOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementByteMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *WebAclRuleStatementByteMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: +// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o WebAclRuleStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.PositionalConstraint + }).(pulumi.StringPtrOutput) +} + +// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o WebAclRuleStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.SearchString + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementByteMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatement) []WebAclRuleStatementByteMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementByteMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchArgs and WebAclRuleStatementByteMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementByteMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchArgs, WebAclRuleStatementByteMatchStatementFieldToMatchPtr and WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs +type webAclRuleStatementByteMatchStatementFieldToMatchPtrType WebAclRuleStatementByteMatchStatementFieldToMatchArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchArgs) WebAclRuleStatementByteMatchStatementFieldToMatchPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatch { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) +// Inspect all query arguments. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementByteMatchStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { - if v != nil { - return *v - } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { - pulumi.Input - - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() -} +type WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, - } +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput { + return o } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatch]{ + OutputState: o.OutputState, + } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) WebAclRuleStatementByteMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret WebAclRuleStatementByteMatchStatementFieldToMatch + return ret + }).(WebAclRuleStatementByteMatchStatementFieldToMatchOutput) } -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: -// -// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput -} - -type webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs - -func WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) -} - -func (*webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() -} - -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) -} - -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, - } -} - -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o -} - -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +// Inspect all query arguments. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { - return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: o.OutputState, - } +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementByteMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: o.OutputState, - } +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { - if v != nil { - return *v +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument - return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) + return v.SingleQueryArgument + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.UriPath + }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPath struct { +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs +type webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchUriPath) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath) WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementByteMatchStatementFieldToMatchUriPath + var ret WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type WebAclRuleStatementByteMatchStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +type WebAclRuleStatementByteMatchStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementByteMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementByteMatchStatementTextTransformationArgs and WebAclRuleStatementByteMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementTextTransformationInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput` via: // -// WebAclRuleStatementByteMatchStatementTextTransformationArgs{...} -type WebAclRuleStatementByteMatchStatementTextTransformationInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput - ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput } -type WebAclRuleStatementByteMatchStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput { - return i.ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementTextTransformationOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementTextTransformationArray and WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementTextTransformationArrayInput` via: +func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementByteMatchStatementTextTransformationArray{ WebAclRuleStatementByteMatchStatementTextTransformationArgs{...} } -type WebAclRuleStatementByteMatchStatementTextTransformationArrayInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput - ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput } -type WebAclRuleStatementByteMatchStatementTextTransformationArray []WebAclRuleStatementByteMatchStatementTextTransformationInput +type webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs -func (WebAclRuleStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() +func WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType)(v) } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) +} + +func (i *webAclRuleStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchBody) *WebAclRuleStatementByteMatchStatementFieldToMatchBody { + return &v + }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) +} -func (WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() +type WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementTextTransformation { - return vs[0].([]WebAclRuleStatementByteMatchStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementByteMatchStatementTextTransformationOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchBody) WebAclRuleStatementByteMatchStatementFieldToMatchBody { + if v != nil { + return *v + } + var ret WebAclRuleStatementByteMatchStatementFieldToMatchBody + return ret + }).(WebAclRuleStatementByteMatchStatementFieldToMatchBodyOutput) } -type WebAclRuleStatementGeoMatchStatement struct { - // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes []string `pulumi:"countryCodes"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. - ForwardedIpConfig *WebAclRuleStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementGeoMatchStatementInput is an input type that accepts WebAclRuleStatementGeoMatchStatementArgs and WebAclRuleStatementGeoMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementInput` via: +type WebAclRuleStatementByteMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementGeoMatchStatementArgs{...} -type WebAclRuleStatementGeoMatchStatementInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput - ToWebAclRuleStatementGeoMatchStatementOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementGeoMatchStatementArgs struct { - // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. - ForwardedIpConfig WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementGeoMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput { - return i.ToWebAclRuleStatementGeoMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatement] { - return pulumix.Output[WebAclRuleStatementGeoMatchStatement]{ - OutputState: i.ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { - return i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) -} +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} -func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementOutput).ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementGeoMatchStatementPtrInput is an input type that accepts WebAclRuleStatementGeoMatchStatementArgs, WebAclRuleStatementGeoMatchStatementPtr and WebAclRuleStatementGeoMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementGeoMatchStatementArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementGeoMatchStatementPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput - ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementGeoMatchStatementPtrType WebAclRuleStatementGeoMatchStatementArgs +type webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs -func WebAclRuleStatementGeoMatchStatementPtr(v *WebAclRuleStatementGeoMatchStatementArgs) WebAclRuleStatementGeoMatchStatementPtrInput { - return (*webAclRuleStatementGeoMatchStatementPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementGeoMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatement)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementGeoMatchStatementPtrType) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { - return i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementGeoMatchStatementPtrType) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatement] { - return pulumix.Output[*WebAclRuleStatementGeoMatchStatement]{ - OutputState: i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementGeoMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { - return o.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *WebAclRuleStatementByteMatchStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementGeoMatchStatementPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatement] { - return pulumix.Output[WebAclRuleStatementGeoMatchStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o WebAclRuleStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatement) []string { return v.CountryCodes }).(pulumi.StringArrayOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementGeoMatchStatementOutput) ForwardedIpConfig() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { - return v.ForwardedIpConfig - }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } -type WebAclRuleStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) +} -func (WebAclRuleStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatement)(nil)).Elem() +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatement] { - return pulumix.Output[*WebAclRuleStatementGeoMatchStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) Elem() WebAclRuleStatementGeoMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) WebAclRuleStatementGeoMatchStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) WebAclRuleStatementByteMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementGeoMatchStatement + var ret WebAclRuleStatementByteMatchStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementGeoMatchStatementOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesOutput) } -// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) []string { +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { if v == nil { return nil } - return v.CountryCodes - }).(pulumi.StringArrayOutput) + return v.MatchPatterns + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *string { if v == nil { return nil } - return v.ForwardedIpConfig - }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementGeoMatchStatementForwardedIpConfig struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs and WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput values. -// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput` via: +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs{...} -type WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput - ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput } -type WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { - return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput).ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs, WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtr and WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput` via: -// -// WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs{...} -// -// or: +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput - ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs - -func WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtr(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput { - return (*webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType)(v) -} +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput -func (*webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { - return &v - }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) -} - -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) string { return v.FallbackBehavior }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) WebAclRuleStatementGeoMatchStatementForwardedIpConfig { - if v != nil { - return *v - } - var ret WebAclRuleStatementGeoMatchStatementForwardedIpConfig - return ret - }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) -} - -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.HeaderName - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type WebAclRuleStatementIpSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn string `pulumi:"arn"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. - IpSetForwardedIpConfig *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementIpSetReferenceStatementInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementArgs and WebAclRuleStatementIpSetReferenceStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementIpSetReferenceStatementArgs{...} -type WebAclRuleStatementIpSetReferenceStatementInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput - ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementIpSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. - IpSetForwardedIpConfig WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementIpSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementOutput).ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementIpSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementArgs, WebAclRuleStatementIpSetReferenceStatementPtr and WebAclRuleStatementIpSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementIpSetReferenceStatementArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementIpSetReferenceStatementPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput - ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type webAclRuleStatementIpSetReferenceStatementPtrType WebAclRuleStatementIpSetReferenceStatementArgs +type webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func WebAclRuleStatementIpSetReferenceStatementPtr(v *WebAclRuleStatementIpSetReferenceStatementArgs) WebAclRuleStatementIpSetReferenceStatementPtrInput { - return (*webAclRuleStatementIpSetReferenceStatementPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return o.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementIpSetReferenceStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o WebAclRuleStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatement) string { return v.Arn }).(pulumi.StringOutput) -} - -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. -func (o WebAclRuleStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { - return v.IpSetForwardedIpConfig - }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) -} - -type WebAclRuleStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementIpSetReferenceStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) WebAclRuleStatementIpSetReferenceStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementIpSetReferenceStatement + var ret WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(WebAclRuleStatementIpSetReferenceStatementOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) *string { - if v == nil { - return nil - } - return &v.Arn - }).(pulumi.StringPtrOutput) +type WebAclRuleStatementByteMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. -func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { - if v == nil { - return nil - } - return v.IpSetForwardedIpConfig - }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) -} +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput` via: +// +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` - // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position string `pulumi:"position"` + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput } -// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. -// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: -// -// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { - pulumi.Input +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +} - ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput - ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` - // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position pulumi.StringInput `pulumi:"position"` +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) } -func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, + } } -func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: +// +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput } -func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, - } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementByteMatchStatementFieldToMatchHeaderInput + +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: -// -// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { - pulumi.Input +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } +} - ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput - ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -type webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { + return o +} -func WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { - return (*webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { + return o } -func (*webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } -func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, - } +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) } -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { - return &v - }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderOutput) } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: o.OutputState, - } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.FallbackBehavior - }).(pulumi.StringOutput) +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { return v.Position }).(pulumi.StringOutput) +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +} -func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { - if v != nil { - return *v - } - var ret WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig - return ret - }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) -} - -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.HeaderName - }).(pulumi.StringPtrOutput) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.Position - }).(pulumi.StringPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementLabelMatchStatement struct { - // String to match against. - Key string `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope string `pulumi:"scope"` +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// WebAclRuleStatementLabelMatchStatementInput is an input type that accepts WebAclRuleStatementLabelMatchStatementArgs and WebAclRuleStatementLabelMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementLabelMatchStatementInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// WebAclRuleStatementLabelMatchStatementArgs{...} -type WebAclRuleStatementLabelMatchStatementInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput - ToWebAclRuleStatementLabelMatchStatementOutputWithContext(context.Context) WebAclRuleStatementLabelMatchStatementOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type WebAclRuleStatementLabelMatchStatementArgs struct { - // String to match against. - Key pulumi.StringInput `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope pulumi.StringInput `pulumi:"scope"` +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (WebAclRuleStatementLabelMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput { - return i.ToWebAclRuleStatementLabelMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i WebAclRuleStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementLabelMatchStatement] { - return pulumix.Output[WebAclRuleStatementLabelMatchStatement]{ - OutputState: i.ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { - return i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementOutput).ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementLabelMatchStatementPtrInput is an input type that accepts WebAclRuleStatementLabelMatchStatementArgs, WebAclRuleStatementLabelMatchStatementPtr and WebAclRuleStatementLabelMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementLabelMatchStatementPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// WebAclRuleStatementLabelMatchStatementArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementLabelMatchStatementPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput - ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type webAclRuleStatementLabelMatchStatementPtrType WebAclRuleStatementLabelMatchStatementArgs +type webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func WebAclRuleStatementLabelMatchStatementPtr(v *WebAclRuleStatementLabelMatchStatementArgs) WebAclRuleStatementLabelMatchStatementPtrInput { - return (*webAclRuleStatementLabelMatchStatementPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementLabelMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementLabelMatchStatement)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementLabelMatchStatementPtrType) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { - return i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementLabelMatchStatementPtrType) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementLabelMatchStatement] { - return pulumix.Output[*WebAclRuleStatementLabelMatchStatement]{ - OutputState: i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementLabelMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { - return o.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementLabelMatchStatement) *WebAclRuleStatementLabelMatchStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(WebAclRuleStatementLabelMatchStatementPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementLabelMatchStatement] { - return pulumix.Output[WebAclRuleStatementLabelMatchStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -// String to match against. -func (o WebAclRuleStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementLabelMatchStatement) string { return v.Key }).(pulumi.StringOutput) -} - -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o WebAclRuleStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementLabelMatchStatement) string { return v.Scope }).(pulumi.StringOutput) -} - -type WebAclRuleStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementLabelMatchStatement] { - return pulumix.Output[*WebAclRuleStatementLabelMatchStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Elem() WebAclRuleStatementLabelMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) WebAclRuleStatementLabelMatchStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementLabelMatchStatement + var ret WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(WebAclRuleStatementLabelMatchStatementOutput) -} - -// String to match against. -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) *string { - if v == nil { - return nil - } - return &v.Key - }).(pulumi.StringPtrOutput) -} - -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) *string { - if v == nil { - return nil - } - return &v.Scope - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatement struct { - // Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details - ManagedRuleGroupConfigs []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig `pulumi:"managedRuleGroupConfigs"` - // Name of the managed rule group. - Name string `pulumi:"name"` - // Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. - RuleActionOverrides []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride `pulumi:"ruleActionOverrides"` - // Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. - ScopeDownStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement `pulumi:"scopeDownStatement"` - // Name of the managed rule group vendor. - VendorName string `pulumi:"vendorName"` - // Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. - Version *string `pulumi:"version"` +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementArgs and WebAclRuleStatementManagedRuleGroupStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementArgs struct { - // Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details - ManagedRuleGroupConfigs WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput `pulumi:"managedRuleGroupConfigs"` - // Name of the managed rule group. - Name pulumi.StringInput `pulumi:"name"` - // Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. - RuleActionOverrides WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput `pulumi:"ruleActionOverrides"` - // Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. - ScopeDownStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput `pulumi:"scopeDownStatement"` - // Name of the managed rule group vendor. - VendorName pulumi.StringInput `pulumi:"vendorName"` - // Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. - Version pulumi.StringPtrInput `pulumi:"version"` +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementArgs, WebAclRuleStatementManagedRuleGroupStatementPtr and WebAclRuleStatementManagedRuleGroupStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementPtrType WebAclRuleStatementManagedRuleGroupStatementArgs +type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementArgs) WebAclRuleStatementManagedRuleGroupStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ManagedRuleGroupConfigs() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { - return v.ManagedRuleGroupConfigs - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) -} - -// Name of the managed rule group. -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) string { return v.Name }).(pulumi.StringOutput) -} - -// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) RuleActionOverrides() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { - return v.RuleActionOverrides - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ScopeDownStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { - return v.ScopeDownStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// Name of the managed rule group vendor. -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) VendorName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) string { return v.VendorName }).(pulumi.StringOutput) +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } -// Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. -func (o WebAclRuleStatementManagedRuleGroupStatementOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) *string { return v.Version }).(pulumi.StringPtrOutput) +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) WebAclRuleStatementManagedRuleGroupStatement { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatement + var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementOutput) -} - -// Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ManagedRuleGroupConfigs() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { - if v == nil { - return nil - } - return v.ManagedRuleGroupConfigs - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -// Name of the managed rule group. -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.Name + return v.InvalidFallbackBehavior }).(pulumi.StringPtrOutput) } -// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) RuleActionOverrides() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { - if v == nil { - return nil - } - return v.RuleActionOverrides - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) -} - -// Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ScopeDownStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { if v == nil { return nil } - return v.ScopeDownStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) + return &v.MatchPattern + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -// Name of the managed rule group vendor. -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) VendorName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.VendorName + return &v.MatchScope }).(pulumi.StringPtrOutput) } -// Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. -func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.Version + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig struct { - // Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. - AwsManagedRulesAtpRuleSet *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet `pulumi:"awsManagedRulesAtpRuleSet"` - // Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details - AwsManagedRulesBotControlRuleSet *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet `pulumi:"awsManagedRulesBotControlRuleSet"` - // The path of the login endpoint for your application. - LoginPath *string `pulumi:"loginPath"` - // Details about your login page password field. See `passwordField` for more details. - PasswordField *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField `pulumi:"passwordField"` - // The payload type for your login endpoint, either JSON or form encoded. - PayloadType *string `pulumi:"payloadType"` - // Details about your login page username field. See `usernameField` for more details. - UsernameField *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField `pulumi:"usernameField"` +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs struct { - // Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. - AwsManagedRulesAtpRuleSet WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput `pulumi:"awsManagedRulesAtpRuleSet"` - // Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details - AwsManagedRulesBotControlRuleSet WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput `pulumi:"awsManagedRulesBotControlRuleSet"` - // The path of the login endpoint for your application. - LoginPath pulumi.StringPtrInput `pulumi:"loginPath"` - // Details about your login page password field. See `passwordField` for more details. - PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput `pulumi:"passwordField"` - // The payload type for your login endpoint, either JSON or form encoded. - PayloadType pulumi.StringPtrInput `pulumi:"payloadType"` - // Details about your login page username field. See `usernameField` for more details. - UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput `pulumi:"usernameField"` +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput` via: +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray{ WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput +type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() +func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ - OutputState: o.OutputState, - } -} - -// Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) AwsManagedRulesAtpRuleSet() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { - return v.AwsManagedRulesAtpRuleSet - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) -} - -// Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) AwsManagedRulesBotControlRuleSet() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { - return v.AwsManagedRulesBotControlRuleSet - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -// The path of the login endpoint for your application. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) LoginPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *string { return v.LoginPath }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -// Details about your login page password field. See `passwordField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { - return v.PasswordField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: o.OutputState, + } } -// The payload type for your login endpoint, either JSON or form encoded. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) PayloadType() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *string { - return v.PayloadType - }).(pulumi.StringPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// Details about your login page username field. See `usernameField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { - return v.UsernameField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet struct { - // Whether or not to allow the use of regular expressions in the login page path. - EnableRegexInPath *bool `pulumi:"enableRegexInPath"` - // The path of the login endpoint for your application. - LoginPath string `pulumi:"loginPath"` - // The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. - RequestInspection *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection `pulumi:"requestInspection"` - // The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. - ResponseInspection *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection `pulumi:"responseInspection"` +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput` via: +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs struct { - // Whether or not to allow the use of regular expressions in the login page path. - EnableRegexInPath pulumi.BoolPtrInput `pulumi:"enableRegexInPath"` - // The path of the login endpoint for your application. - LoginPath pulumi.StringInput `pulumi:"loginPath"` - // The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. - RequestInspection WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput `pulumi:"requestInspection"` - // The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. - ResponseInspection WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput `pulumi:"responseInspection"` +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs +type webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -// Whether or not to allow the use of regular expressions in the login page path. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) EnableRegexInPath() pulumi.BoolPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *bool { - return v.EnableRegexInPath - }).(pulumi.BoolPtrOutput) -} - -// The path of the login endpoint for your application. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) LoginPath() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) string { - return v.LoginPath - }).(pulumi.StringOutput) -} - -// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) RequestInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { - return v.RequestInspection - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) -} - -// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ResponseInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { - return v.ResponseInspection - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet + var ret WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) -} - -// Whether or not to allow the use of regular expressions in the login page path. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) EnableRegexInPath() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *bool { - if v == nil { - return nil - } - return v.EnableRegexInPath - }).(pulumi.BoolPtrOutput) -} - -// The path of the login endpoint for your application. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) LoginPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *string { - if v == nil { - return nil - } - return &v.LoginPath - }).(pulumi.StringPtrOutput) -} - -// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) RequestInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { - if v == nil { - return nil - } - return v.RequestInspection - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) -} - -// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ResponseInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { - if v == nil { - return nil - } - return v.ResponseInspection - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection struct { - // Details about your login page password field. See `passwordField` for more details. - PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField `pulumi:"passwordField"` - // The payload type for your login endpoint, either JSON or form encoded. - PayloadType string `pulumi:"payloadType"` - // Details about your login page username field. See `usernameField` for more details. - UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField `pulumi:"usernameField"` +type WebAclRuleStatementByteMatchStatementFieldToMatchMethod struct { } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs struct { - // Details about your login page password field. See `passwordField` for more details. - PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput `pulumi:"passwordField"` - // The payload type for your login endpoint, either JSON or form encoded. - PayloadType pulumi.StringInput `pulumi:"payloadType"` - // Details about your login page username field. See `usernameField` for more details. - UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput `pulumi:"usernameField"` +type WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs +type webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchMethod) *WebAclRuleStatementByteMatchStatementFieldToMatchMethod { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// Details about your login page password field. See `passwordField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { - return v.PasswordField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) -} - -// The payload type for your login endpoint, either JSON or form encoded. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) PayloadType() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) string { - return v.PayloadType - }).(pulumi.StringOutput) -} - -// Details about your login page username field. See `usernameField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { - return v.UsernameField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchMethod) WebAclRuleStatementByteMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection + var ret WebAclRuleStatementByteMatchStatementFieldToMatchMethod return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) -} - -// Details about your login page password field. See `passwordField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { - if v == nil { - return nil - } - return &v.PasswordField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) -} - -// The payload type for your login endpoint, either JSON or form encoded. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) PayloadType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *string { - if v == nil { - return nil - } - return &v.PayloadType - }).(pulumi.StringPtrOutput) -} - -// Details about your login page username field. See `usernameField` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { - if v == nil { - return nil - } - return &v.UsernameField - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchMethodOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField struct { - // The name of the password field. - Identifier string `pulumi:"identifier"` +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryString struct { } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs struct { - // The name of the password field. - Identifier pulumi.StringInput `pulumi:"identifier"` +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs +type webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchQueryString) *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// The name of the password field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) Identifier() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) string { - return v.Identifier - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchQueryString) WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField + var ret WebAclRuleStatementByteMatchStatementFieldToMatchQueryString return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) -} - -// The name of the password field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) Identifier() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) *string { - if v == nil { - return nil - } - return &v.Identifier - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField struct { - // The name of the username field. - Identifier string `pulumi:"identifier"` +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs struct { - // The name of the username field. - Identifier pulumi.StringInput `pulumi:"identifier"` +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs +type webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() -} +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// The name of the username field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) Identifier() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) string { - return v.Identifier - }).(pulumi.StringOutput) +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField + var ret WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -// The name of the username field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) Identifier() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) *string { +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } - return &v.Identifier + return &v.Name }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection struct { - // Configures inspection of the response body. See `bodyContains` for more details. - BodyContains *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains `pulumi:"bodyContains"` - // Configures inspection of the response header.See `header` for more details. - Header *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader `pulumi:"header"` - // Configures inspection of the response JSON. See `json` for more details. - Json *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson `pulumi:"json"` - // Configures inspection of the response status code.See `statusCode` for more details. - StatusCode *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode `pulumi:"statusCode"` +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs struct { - // Configures inspection of the response body. See `bodyContains` for more details. - BodyContains WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput `pulumi:"bodyContains"` - // Configures inspection of the response header.See `header` for more details. - Header WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput `pulumi:"header"` - // Configures inspection of the response JSON. See `json` for more details. - Json WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput `pulumi:"json"` - // Configures inspection of the response status code.See `statusCode` for more details. - StatusCode WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput `pulumi:"statusCode"` +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs +type webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// Configures inspection of the response body. See `bodyContains` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) BodyContains() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { - return v.BodyContains - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) -} - -// Configures inspection of the response header.See `header` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) Header() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { - return v.Header - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) -} - -// Configures inspection of the response JSON. See `json` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) Json() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { - return v.Json - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) -} - -// Configures inspection of the response status code.See `statusCode` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) StatusCode() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { - return v.StatusCode - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection + var ret WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) -} - -// Configures inspection of the response body. See `bodyContains` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) BodyContains() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { - if v == nil { - return nil - } - return v.BodyContains - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) -} - -// Configures inspection of the response header.See `header` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Header() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { - if v == nil { - return nil - } - return v.Header - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) -} - -// Configures inspection of the response JSON. See `json` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Json() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { - if v == nil { - return nil - } - return v.Json - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// Configures inspection of the response status code.See `statusCode` for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) StatusCode() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.StatusCode - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) + return &v.Name + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains struct { - // Strings in the body of the response that indicate a failed login attempt. - FailureStrings []string `pulumi:"failureStrings"` - // Strings in the body of the response that indicate a successful login attempt. - SuccessStrings []string `pulumi:"successStrings"` +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPath struct { } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput interface { +// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs struct { - // Strings in the body of the response that indicate a failed login attempt. - FailureStrings pulumi.StringArrayInput `pulumi:"failureStrings"` - // Strings in the body of the response that indicate a successful login attempt. - SuccessStrings pulumi.StringArrayInput `pulumi:"successStrings"` +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput` via: +// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs{...} +// WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput interface { +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs +type webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType)(v) +func WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() +func (*webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) +func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementByteMatchStatementFieldToMatchUriPath) *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// Strings in the body of the response that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) FailureStrings() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { - return v.FailureStrings - }).(pulumi.StringArrayOutput) -} - -// Strings in the body of the response that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) SuccessStrings() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { - return v.SuccessStrings - }).(pulumi.StringArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementByteMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { +func (o WebAclRuleStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementByteMatchStatementFieldToMatchUriPath) WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains + var ret WebAclRuleStatementByteMatchStatementFieldToMatchUriPath return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) -} - -// Strings in the body of the response that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) FailureStrings() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { - if v == nil { - return nil - } - return v.FailureStrings - }).(pulumi.StringArrayOutput) -} - -// Strings in the body of the response that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) SuccessStrings() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { - if v == nil { - return nil - } - return v.SuccessStrings - }).(pulumi.StringArrayOutput) + }).(WebAclRuleStatementByteMatchStatementFieldToMatchUriPathOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader struct { - // Values in the response header with the specified name that indicate a failed login attempt. - FailureValues []string `pulumi:"failureValues"` - // The name of the header to match against. The name must be an exact match, including case. - Name string `pulumi:"name"` - // Values in the response header with the specified name that indicate a successful login attempt. - SuccessValues []string `pulumi:"successValues"` +type WebAclRuleStatementByteMatchStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput` via: +// WebAclRuleStatementByteMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementByteMatchStatementTextTransformationArgs and WebAclRuleStatementByteMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementTextTransformationInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput interface { +// WebAclRuleStatementByteMatchStatementTextTransformationArgs{...} +type WebAclRuleStatementByteMatchStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput + ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput + ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs struct { - // Values in the response header with the specified name that indicate a failed login attempt. - FailureValues pulumi.StringArrayInput `pulumi:"failureValues"` - // The name of the header to match against. The name must be an exact match, including case. - Name pulumi.StringInput `pulumi:"name"` - // Values in the response header with the specified name that indicate a successful login attempt. - SuccessValues pulumi.StringArrayInput `pulumi:"successValues"` +type WebAclRuleStatementByteMatchStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput { + return i.ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) +func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementTextTransformationOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) +// WebAclRuleStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementByteMatchStatementTextTransformationArray and WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementByteMatchStatementTextTransformationArrayInput` via: +// +// WebAclRuleStatementByteMatchStatementTextTransformationArray{ WebAclRuleStatementByteMatchStatementTextTransformationArgs{...} } +type WebAclRuleStatementByteMatchStatementTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx) +type WebAclRuleStatementByteMatchStatementTextTransformationArray []WebAclRuleStatementByteMatchStatementTextTransformationInput + +func (WebAclRuleStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput -} - -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs - -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType)(v) -} - -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() -} - -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) +func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { +func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementByteMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { +func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ +func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementByteMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -// Values in the response header with the specified name that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) FailureValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { - return v.FailureValues - }).(pulumi.StringArrayOutput) -} - -// The name of the header to match against. The name must be an exact match, including case. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } -// Values in the response header with the specified name that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) SuccessValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { - return v.SuccessValues - }).(pulumi.StringArrayOutput) +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementByteMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() +func (WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { +func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { +func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ +func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementByteMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) -} - -// Values in the response header with the specified name that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) FailureValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { - if v == nil { - return nil - } - return v.FailureValues - }).(pulumi.StringArrayOutput) -} - -// The name of the header to match against. The name must be an exact match, including case. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) -} - -// Values in the response header with the specified name that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) SuccessValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { - if v == nil { - return nil - } - return v.SuccessValues - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementByteMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementByteMatchStatementTextTransformation { + return vs[0].([]WebAclRuleStatementByteMatchStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementByteMatchStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson struct { - // Values in the response header with the specified name that indicate a failed login attempt. - FailureValues []string `pulumi:"failureValues"` - // The identifier for the value to match against in the JSON. - Identifier string `pulumi:"identifier"` - // Values in the response header with the specified name that indicate a successful login attempt. - SuccessValues []string `pulumi:"successValues"` +type WebAclRuleStatementGeoMatchStatement struct { + // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes []string `pulumi:"countryCodes"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. + ForwardedIpConfig *WebAclRuleStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput` via: +// WebAclRuleStatementGeoMatchStatementInput is an input type that accepts WebAclRuleStatementGeoMatchStatementArgs and WebAclRuleStatementGeoMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput interface { +// WebAclRuleStatementGeoMatchStatementArgs{...} +type WebAclRuleStatementGeoMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput + ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput + ToWebAclRuleStatementGeoMatchStatementOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs struct { - // Values in the response header with the specified name that indicate a failed login attempt. - FailureValues pulumi.StringArrayInput `pulumi:"failureValues"` - // The identifier for the value to match against in the JSON. - Identifier pulumi.StringInput `pulumi:"identifier"` - // Values in the response header with the specified name that indicate a successful login attempt. - SuccessValues pulumi.StringArrayInput `pulumi:"successValues"` +type WebAclRuleStatementGeoMatchStatementArgs struct { + // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. + ForwardedIpConfig WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(context.Background()) +func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput { + return i.ToWebAclRuleStatementGeoMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) +func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatement] { + return pulumix.Output[WebAclRuleStatementGeoMatchStatement]{ + OutputState: i.ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { + return i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx) +func (i WebAclRuleStatementGeoMatchStatementArgs) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementOutput).ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput` via: +// WebAclRuleStatementGeoMatchStatementPtrInput is an input type that accepts WebAclRuleStatementGeoMatchStatementArgs, WebAclRuleStatementGeoMatchStatementPtr and WebAclRuleStatementGeoMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs{...} +// WebAclRuleStatementGeoMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput interface { +type WebAclRuleStatementGeoMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput + ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput + ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs +type webAclRuleStatementGeoMatchStatementPtrType WebAclRuleStatementGeoMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType)(v) +func WebAclRuleStatementGeoMatchStatementPtr(v *WebAclRuleStatementGeoMatchStatementArgs) WebAclRuleStatementGeoMatchStatementPtrInput { + return (*webAclRuleStatementGeoMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() +func (*webAclRuleStatementGeoMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementGeoMatchStatementPtrType) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { + return i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) +func (i *webAclRuleStatementGeoMatchStatementPtrType) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatement] { + return pulumix.Output[*WebAclRuleStatementGeoMatchStatement]{ + OutputState: i.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { +func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementOutput() WebAclRuleStatementGeoMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { +func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { + return o.ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { +func (o WebAclRuleStatementGeoMatchStatementOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) + }).(WebAclRuleStatementGeoMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ +func (o WebAclRuleStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatement] { + return pulumix.Output[WebAclRuleStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -// Values in the response header with the specified name that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) FailureValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { - return v.FailureValues - }).(pulumi.StringArrayOutput) -} - -// The identifier for the value to match against in the JSON. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) Identifier() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) string { - return v.Identifier - }).(pulumi.StringOutput) +// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o WebAclRuleStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatement) []string { return v.CountryCodes }).(pulumi.StringArrayOutput) } -// Values in the response header with the specified name that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) SuccessValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { - return v.SuccessValues - }).(pulumi.StringArrayOutput) +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementGeoMatchStatementOutput) ForwardedIpConfig() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { + return v.ForwardedIpConfig + }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutput() WebAclRuleStatementGeoMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatement] { + return pulumix.Output[*WebAclRuleStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) Elem() WebAclRuleStatementGeoMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) WebAclRuleStatementGeoMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson + var ret WebAclRuleStatementGeoMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) + }).(WebAclRuleStatementGeoMatchStatementOutput) } -// Values in the response header with the specified name that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) FailureValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { +// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) []string { if v == nil { return nil } - return v.FailureValues + return v.CountryCodes }).(pulumi.StringArrayOutput) } -// The identifier for the value to match against in the JSON. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) Identifier() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) *string { - if v == nil { - return nil - } - return &v.Identifier - }).(pulumi.StringPtrOutput) -} - -// Values in the response header with the specified name that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) SuccessValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatement) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { if v == nil { return nil } - return v.SuccessValues - }).(pulumi.StringArrayOutput) + return v.ForwardedIpConfig + }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode struct { - // Status codes in the response that indicate a failed login attempt. - FailureCodes []int `pulumi:"failureCodes"` - // Status codes in the response that indicate a successful login attempt. - SuccessCodes []int `pulumi:"successCodes"` +type WebAclRuleStatementGeoMatchStatementForwardedIpConfig struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput` via: +// WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs and WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput values. +// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput interface { +// WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs{...} +type WebAclRuleStatementGeoMatchStatementForwardedIpConfigInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput + ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput + ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs struct { - // Status codes in the response that indicate a failed login attempt. - FailureCodes pulumi.IntArrayInput `pulumi:"failureCodes"` - // Status codes in the response that indicate a successful login attempt. - SuccessCodes pulumi.IntArrayInput `pulumi:"successCodes"` +type WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(context.Background()) +func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { + return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) +func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx) +func (i WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput).ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput` via: +// WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs, WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtr and WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs{...} +// WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput interface { +type WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput + ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs +type webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType)(v) +func WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtr(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrInput { + return (*webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() +func (*webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) +func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *WebAclRuleStatementGeoMatchStatementForwardedIpConfig { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) + }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -// Status codes in the response that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) FailureCodes() pulumi.IntArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { - return v.FailureCodes - }).(pulumi.IntArrayOutput) +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) string { return v.FallbackBehavior }).(pulumi.StringOutput) } -// Status codes in the response that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) SuccessCodes() pulumi.IntArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { - return v.SuccessCodes - }).(pulumi.IntArrayOutput) +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementGeoMatchStatementForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() +func (WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementGeoMatchStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) WebAclRuleStatementGeoMatchStatementForwardedIpConfig { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode + var ret WebAclRuleStatementGeoMatchStatementForwardedIpConfig return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) + }).(WebAclRuleStatementGeoMatchStatementForwardedIpConfigOutput) } -// Status codes in the response that indicate a failed login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) FailureCodes() pulumi.IntArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *string { if v == nil { return nil } - return v.FailureCodes - }).(pulumi.IntArrayOutput) + return &v.FallbackBehavior + }).(pulumi.StringPtrOutput) } -// Status codes in the response that indicate a successful login attempt. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) SuccessCodes() pulumi.IntArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementGeoMatchStatementForwardedIpConfig) *string { if v == nil { return nil } - return v.SuccessCodes - }).(pulumi.IntArrayOutput) + return &v.HeaderName + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet struct { - // The inspection level to use for the Bot Control rule group. - InspectionLevel string `pulumi:"inspectionLevel"` -} +type WebAclRuleStatementIpSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn string `pulumi:"arn"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. + IpSetForwardedIpConfig *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` +} -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput` via: +// WebAclRuleStatementIpSetReferenceStatementInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementArgs and WebAclRuleStatementIpSetReferenceStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput interface { +// WebAclRuleStatementIpSetReferenceStatementArgs{...} +type WebAclRuleStatementIpSetReferenceStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput + ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput + ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs struct { - // The inspection level to use for the Bot Control rule group. - InspectionLevel pulumi.StringInput `pulumi:"inspectionLevel"` +type WebAclRuleStatementIpSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. + IpSetForwardedIpConfig WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() +func (WebAclRuleStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(context.Background()) +func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) +func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementIpSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx) +func (i WebAclRuleStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementOutput).ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput` via: +// WebAclRuleStatementIpSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementArgs, WebAclRuleStatementIpSetReferenceStatementPtr and WebAclRuleStatementIpSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs{...} +// WebAclRuleStatementIpSetReferenceStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput interface { +type WebAclRuleStatementIpSetReferenceStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput + ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput + ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs +type webAclRuleStatementIpSetReferenceStatementPtrType WebAclRuleStatementIpSetReferenceStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType)(v) +func WebAclRuleStatementIpSetReferenceStatementPtr(v *WebAclRuleStatementIpSetReferenceStatementArgs) WebAclRuleStatementIpSetReferenceStatementPtrInput { + return (*webAclRuleStatementIpSetReferenceStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() +func (*webAclRuleStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) +func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() +func (WebAclRuleStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { +func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementOutput() WebAclRuleStatementIpSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { +func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return o.ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { +func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) + }).(WebAclRuleStatementIpSetReferenceStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ +func (o WebAclRuleStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -// The inspection level to use for the Bot Control rule group. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) InspectionLevel() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) string { - return v.InspectionLevel - }).(pulumi.StringOutput) +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o WebAclRuleStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatement) string { return v.Arn }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput struct{ *pulumi.OutputState } +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. +func (o WebAclRuleStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { + return v.IpSetForwardedIpConfig + }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() +type WebAclRuleStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementIpSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementIpSetReferenceStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) WebAclRuleStatementIpSetReferenceStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet + var ret WebAclRuleStatementIpSetReferenceStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) + }).(WebAclRuleStatementIpSetReferenceStatementOutput) } -// The inspection level to use for the Bot Control rule group. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) InspectionLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) *string { +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) *string { if v == nil { return nil } - return &v.InspectionLevel + return &v.Arn }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField struct { - // The name of the password field. - Identifier string `pulumi:"identifier"` +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. +func (o WebAclRuleStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatement) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { + if v == nil { + return nil + } + return v.IpSetForwardedIpConfig + }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput` via: +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` + // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position string `pulumi:"position"` +} + +// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. +// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput interface { +// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput + ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput + ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs struct { - // The name of the password field. - Identifier pulumi.StringInput `pulumi:"identifier"` +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` + // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position pulumi.StringInput `pulumi:"position"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() +func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(context.Background()) +func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) +func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx) +func (i WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput` via: +// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs{...} +// WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput interface { +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput + ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput + ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs +type webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType)(v) +func WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { + return (*webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() +func (*webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) +func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() +func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) + }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -// The name of the password field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) Identifier() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) string { - return v.Identifier +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.FallbackBehavior }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput struct{ *pulumi.OutputState } +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { return v.HeaderName }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() +// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { return v.Position }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { +type WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +} + +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField + var ret WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) + }).(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -// The name of the password field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) Identifier() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) *string { +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { if v == nil { return nil } - return &v.Identifier + return &v.FallbackBehavior }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField struct { - // The name of the username field. - Identifier string `pulumi:"identifier"` +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.HeaderName + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput` via: +// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.Position + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementLabelMatchStatement struct { + // String to match against. + Key string `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope string `pulumi:"scope"` +} + +// WebAclRuleStatementLabelMatchStatementInput is an input type that accepts WebAclRuleStatementLabelMatchStatementArgs and WebAclRuleStatementLabelMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementLabelMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput interface { +// WebAclRuleStatementLabelMatchStatementArgs{...} +type WebAclRuleStatementLabelMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput + ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput + ToWebAclRuleStatementLabelMatchStatementOutputWithContext(context.Context) WebAclRuleStatementLabelMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs struct { - // The name of the username field. - Identifier pulumi.StringInput `pulumi:"identifier"` +type WebAclRuleStatementLabelMatchStatementArgs struct { + // String to match against. + Key pulumi.StringInput `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope pulumi.StringInput `pulumi:"scope"` } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() +func (WebAclRuleStatementLabelMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementLabelMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(context.Background()) +func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput { + return i.ToWebAclRuleStatementLabelMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) +func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementLabelMatchStatement] { + return pulumix.Output[WebAclRuleStatementLabelMatchStatement]{ + OutputState: i.ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { + return i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx) +func (i WebAclRuleStatementLabelMatchStatementArgs) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementOutput).ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput` via: +// WebAclRuleStatementLabelMatchStatementPtrInput is an input type that accepts WebAclRuleStatementLabelMatchStatementArgs, WebAclRuleStatementLabelMatchStatementPtr and WebAclRuleStatementLabelMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementLabelMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs{...} +// WebAclRuleStatementLabelMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput interface { +type WebAclRuleStatementLabelMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput + ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput + ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs +type webAclRuleStatementLabelMatchStatementPtrType WebAclRuleStatementLabelMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType)(v) +func WebAclRuleStatementLabelMatchStatementPtr(v *WebAclRuleStatementLabelMatchStatementArgs) WebAclRuleStatementLabelMatchStatementPtrInput { + return (*webAclRuleStatementLabelMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() +func (*webAclRuleStatementLabelMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementLabelMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementLabelMatchStatementPtrType) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { + return i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) +func (i *webAclRuleStatementLabelMatchStatementPtrType) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementLabelMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementLabelMatchStatement] { + return pulumix.Output[*WebAclRuleStatementLabelMatchStatement]{ + OutputState: i.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() +func (WebAclRuleStatementLabelMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementLabelMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { +func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementOutput() WebAclRuleStatementLabelMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { +func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { + return o.ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { +func (o WebAclRuleStatementLabelMatchStatementOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementLabelMatchStatement) *WebAclRuleStatementLabelMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) + }).(WebAclRuleStatementLabelMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ +func (o WebAclRuleStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementLabelMatchStatement] { + return pulumix.Output[WebAclRuleStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -// The name of the username field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) Identifier() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) string { - return v.Identifier - }).(pulumi.StringOutput) +// String to match against. +func (o WebAclRuleStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementLabelMatchStatement) string { return v.Key }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput struct{ *pulumi.OutputState } +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o WebAclRuleStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementLabelMatchStatement) string { return v.Scope }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() +type WebAclRuleStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementLabelMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutput() WebAclRuleStatementLabelMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementLabelMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementLabelMatchStatement] { + return pulumix.Output[*WebAclRuleStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Elem() WebAclRuleStatementLabelMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) WebAclRuleStatementLabelMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField + var ret WebAclRuleStatementLabelMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) + }).(WebAclRuleStatementLabelMatchStatementOutput) } -// The name of the username field. -func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) Identifier() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) *string { +// String to match against. +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) *string { if v == nil { return nil } - return &v.Identifier + return &v.Key }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride struct { - // Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. - ActionToUse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse `pulumi:"actionToUse"` - // Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o WebAclRuleStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementLabelMatchStatement) *string { + if v == nil { + return nil + } + return &v.Scope + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatement struct { + // Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details + ManagedRuleGroupConfigs []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig `pulumi:"managedRuleGroupConfigs"` + // Name of the managed rule group. Name string `pulumi:"name"` + // Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. + RuleActionOverrides []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride `pulumi:"ruleActionOverrides"` + // Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + ScopeDownStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement `pulumi:"scopeDownStatement"` + // Name of the managed rule group vendor. + VendorName string `pulumi:"vendorName"` + // Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + Version *string `pulumi:"version"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput` via: +// WebAclRuleStatementManagedRuleGroupStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementArgs and WebAclRuleStatementManagedRuleGroupStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput interface { +// WebAclRuleStatementManagedRuleGroupStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput + ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs struct { - // Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. - ActionToUse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput `pulumi:"actionToUse"` - // Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. +type WebAclRuleStatementManagedRuleGroupStatementArgs struct { + // Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details + ManagedRuleGroupConfigs WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput `pulumi:"managedRuleGroupConfigs"` + // Name of the managed rule group. Name pulumi.StringInput `pulumi:"name"` + // Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. + RuleActionOverrides WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput `pulumi:"ruleActionOverrides"` + // Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + ScopeDownStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput `pulumi:"scopeDownStatement"` + // Name of the managed rule group vendor. + VendorName pulumi.StringInput `pulumi:"vendorName"` + // Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + Version pulumi.StringPtrInput `pulumi:"version"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) -} +// WebAclRuleStatementManagedRuleGroupStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementArgs, WebAclRuleStatementManagedRuleGroupStatementPtr and WebAclRuleStatementManagedRuleGroupStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementPtrInput interface { + pulumi.Input -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx).OutputState, - } + ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() -} +type webAclRuleStatementManagedRuleGroupStatementPtrType WebAclRuleStatementManagedRuleGroupStatementArgs -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { - return o +func WebAclRuleStatementManagedRuleGroupStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementArgs) WebAclRuleStatementManagedRuleGroupStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { - return o +func (*webAclRuleStatementManagedRuleGroupStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ - OutputState: o.OutputState, - } +func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) } -// Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ActionToUse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse { - return v.ActionToUse - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) } -// Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride) string { return v.Name }).(pulumi.StringOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx).OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementOutput() WebAclRuleStatementManagedRuleGroupStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatement { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse struct { - // Specifies that AWS WAF should allow requests by default. See `allow` below for details. - Allow *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow `pulumi:"allow"` - // Specifies that AWS WAF should block requests by default. See `block` below for details. - Block *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock `pulumi:"block"` - // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - Captcha *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha `pulumi:"captcha"` - // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - Challenge *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge `pulumi:"challenge"` - // Instructs AWS WAF to count the web request and allow it. See `count` below for details. - Count *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount `pulumi:"count"` +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatement]{ + OutputState: o.OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput +// Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ManagedRuleGroupConfigs() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { + return v.ManagedRuleGroupConfigs + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs struct { - // Specifies that AWS WAF should allow requests by default. See `allow` below for details. - Allow WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput `pulumi:"allow"` - // Specifies that AWS WAF should block requests by default. See `block` below for details. - Block WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput `pulumi:"block"` - // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - Captcha WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput `pulumi:"captcha"` - // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - Challenge WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput `pulumi:"challenge"` - // Instructs AWS WAF to count the web request and allow it. See `count` below for details. - Count WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput `pulumi:"count"` +// Name of the managed rule group. +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) string { return v.Name }).(pulumi.StringOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse)(nil)).Elem() +// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) RuleActionOverrides() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { + return v.RuleActionOverrides + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(context.Background()) +// Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) ScopeDownStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { + return v.ScopeDownStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) +// Name of the managed rule group vendor. +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) VendorName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) string { return v.VendorName }).(pulumi.StringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx).OutputState, - } +// Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. +func (o WebAclRuleStatementManagedRuleGroupStatementOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatement) *string { return v.Version }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse]{ +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatement]{ OutputState: o.OutputState, } } -// Specifies that AWS WAF should allow requests by default. See `allow` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Allow() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { - return v.Allow - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) WebAclRuleStatementManagedRuleGroupStatement { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatement + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementOutput) } -// Specifies that AWS WAF should block requests by default. See `block` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Block() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { - return v.Block - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) +// Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managedRuleGroupConfigs` for more details +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ManagedRuleGroupConfigs() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { + if v == nil { + return nil + } + return v.ManagedRuleGroupConfigs + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) } -// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Captcha() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { - return v.Captcha - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) +// Name of the managed rule group. +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Challenge() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { - return v.Challenge - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) +// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `ruleActionOverride` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) RuleActionOverrides() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { + if v == nil { + return nil + } + return v.RuleActionOverrides + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) } -// Instructs AWS WAF to count the web request and allow it. See `count` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Count() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { - return v.Count - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) +// Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) ScopeDownStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { + if v == nil { + return nil + } + return v.ScopeDownStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling `pulumi:"customRequestHandling"` +// Name of the managed rule group vendor. +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) VendorName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { + if v == nil { + return nil + } + return &v.VendorName + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput +// Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. +func (o WebAclRuleStatementManagedRuleGroupStatementPtrOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatement) *string { + if v == nil { + return nil + } + return v.Version + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig struct { + // Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + AwsManagedRulesAtpRuleSet *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet `pulumi:"awsManagedRulesAtpRuleSet"` + // Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details + AwsManagedRulesBotControlRuleSet *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet `pulumi:"awsManagedRulesBotControlRuleSet"` + // The path of the login endpoint for your application. + LoginPath *string `pulumi:"loginPath"` + // Details about your login page password field. See `passwordField` for more details. + PasswordField *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField `pulumi:"passwordField"` + // The payload type for your login endpoint, either JSON or form encoded. + PayloadType *string `pulumi:"payloadType"` + // Details about your login page username field. See `usernameField` for more details. + UsernameField *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField `pulumi:"usernameField"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(context.Background()) +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs struct { + // Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + AwsManagedRulesAtpRuleSet WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput `pulumi:"awsManagedRulesAtpRuleSet"` + // Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details + AwsManagedRulesBotControlRuleSet WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput `pulumi:"awsManagedRulesBotControlRuleSet"` + // The path of the login endpoint for your application. + LoginPath pulumi.StringPtrInput `pulumi:"loginPath"` + // Details about your login page password field. See `passwordField` for more details. + PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput `pulumi:"passwordField"` + // The payload type for your login endpoint, either JSON or form encoded. + PayloadType pulumi.StringPtrInput `pulumi:"payloadType"` + // Details about your login page username field. See `usernameField` for more details. + UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput `pulumi:"usernameField"` } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray{ WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs - -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray []WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigInput -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) +// Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) AwsManagedRulesAtpRuleSet() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { + return v.AwsManagedRulesAtpRuleSet + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() +// Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `awsManagedRulesBotControlRuleSet` for more details +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) AwsManagedRulesBotControlRuleSet() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { + return v.AwsManagedRulesBotControlRuleSet + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return o +// The path of the login endpoint for your application. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) LoginPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *string { return v.LoginPath }).(pulumi.StringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { - return o +// Details about your login page password field. See `passwordField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { + return v.PasswordField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ - OutputState: o.OutputState, - } +// The payload type for your login endpoint, either JSON or form encoded. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) PayloadType() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *string { + return v.PayloadType + }).(pulumi.StringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) +// Details about your login page username field. See `usernameField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { + return v.UsernameField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { - if v == nil { - return nil - } - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return o } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput` via: +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet struct { + // Whether or not to allow the use of regular expressions in the login page path. + EnableRegexInPath *bool `pulumi:"enableRegexInPath"` + // The path of the login endpoint for your application. + LoginPath string `pulumi:"loginPath"` + // The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. + RequestInspection *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection `pulumi:"requestInspection"` + // The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. + ResponseInspection *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection `pulumi:"responseInspection"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs struct { + // Whether or not to allow the use of regular expressions in the login page path. + EnableRegexInPath pulumi.BoolPtrInput `pulumi:"enableRegexInPath"` + // The path of the login endpoint for your application. + LoginPath pulumi.StringInput `pulumi:"loginPath"` + // The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. + RequestInspection WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput `pulumi:"requestInspection"` + // The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. + ResponseInspection WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput `pulumi:"responseInspection"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) +// Whether or not to allow the use of regular expressions in the login page path. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) EnableRegexInPath() pulumi.BoolPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *bool { + return v.EnableRegexInPath + }).(pulumi.BoolPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// The path of the login endpoint for your application. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) LoginPath() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) string { + return v.LoginPath + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() +// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) RequestInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { + return v.RequestInspection + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { +// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) ResponseInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { + return v.ResponseInspection + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { +// Whether or not to allow the use of regular expressions in the login page path. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) EnableRegexInPath() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *bool { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) + return v.EnableRegexInPath + }).(pulumi.BoolPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +// The path of the login endpoint for your application. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) LoginPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *string { + if v == nil { + return nil + } + return &v.LoginPath + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput` via: +// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `requestInspection` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) RequestInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { + if v == nil { + return nil + } + return v.RequestInspection + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) +} + +// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `responseInspection` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetPtrOutput) ResponseInspection() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { + if v == nil { + return nil + } + return v.ResponseInspection + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection struct { + // Details about your login page password field. See `passwordField` for more details. + PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField `pulumi:"passwordField"` + // The payload type for your login endpoint, either JSON or form encoded. + PayloadType string `pulumi:"payloadType"` + // Details about your login page username field. See `usernameField` for more details. + UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField `pulumi:"usernameField"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs struct { + // Details about your login page password field. See `passwordField` for more details. + PasswordField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput `pulumi:"passwordField"` + // The payload type for your login endpoint, either JSON or form encoded. + PayloadType pulumi.StringInput `pulumi:"payloadType"` + // Details about your login page username field. See `usernameField` for more details. + UsernameField WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput `pulumi:"usernameField"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ OutputState: o.OutputState, } } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Details about your login page password field. See `passwordField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { + return v.PasswordField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) } -// Value of the custom header. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader) string { - return v.Value +// The payload type for your login endpoint, either JSON or form encoded. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) PayloadType() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) string { + return v.PayloadType }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +// Details about your login page username field. See `usernameField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { + return v.UsernameField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse `pulumi:"customResponse"` +// Details about your login page password field. See `passwordField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) PasswordField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { + if v == nil { + return nil + } + return &v.PasswordField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput` via: +// The payload type for your login endpoint, either JSON or form encoded. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) PayloadType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *string { + if v == nil { + return nil + } + return &v.PayloadType + }).(pulumi.StringPtrOutput) +} + +// Details about your login page username field. See `usernameField` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPtrOutput) UsernameField() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { + if v == nil { + return nil + } + return &v.UsernameField + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField struct { + // The name of the password field. + Identifier string `pulumi:"identifier"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs struct { - // Defines a custom response for the web request. See `customResponse` below for details. - CustomResponse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput `pulumi:"customResponse"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs struct { + // The name of the password field. + Identifier pulumi.StringInput `pulumi:"identifier"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ OutputState: o.OutputState, } } -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) CustomResponse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { - return v.CustomResponse - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) +// The name of the password field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) string { + return v.Identifier + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldOutput) } -// Defines a custom response for the web request. See `customResponse` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) CustomResponse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { +// The name of the password field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldPtrOutput) Identifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField) *string { if v == nil { return nil } - return v.CustomResponse - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) + return &v.Identifier + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode int `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField struct { + // The name of the username field. + Identifier string `pulumi:"identifier"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs struct { - // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. - CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` - // The HTTP status code to return to the client. - ResponseCode pulumi.IntInput `pulumi:"responseCode"` - // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. - ResponseHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs struct { + // The name of the username field. + Identifier pulumi.StringInput `pulumi:"identifier"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ OutputState: o.OutputState, } } -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *string { - return v.CustomResponseBodyKey - }).(pulumi.StringPtrOutput) -} - -// The HTTP status code to return to the client. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) int { - return v.ResponseCode - }).(pulumi.IntOutput) -} - -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ResponseHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { - return v.ResponseHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) +// The name of the username field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) string { + return v.Identifier + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldOutput) } -// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *string { +// The name of the username field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldPtrOutput) Identifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField) *string { if v == nil { return nil } - return v.CustomResponseBodyKey + return &v.Identifier }).(pulumi.StringPtrOutput) } -// The HTTP status code to return to the client. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *int { - if v == nil { - return nil - } - return &v.ResponseCode - }).(pulumi.IntPtrOutput) -} - -// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ResponseHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { - if v == nil { - return nil - } - return v.ResponseHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection struct { + // Configures inspection of the response body. See `bodyContains` for more details. + BodyContains *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains `pulumi:"bodyContains"` + // Configures inspection of the response header.See `header` for more details. + Header *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader `pulumi:"header"` + // Configures inspection of the response JSON. See `json` for more details. + Json *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson `pulumi:"json"` + // Configures inspection of the response status code.See `statusCode` for more details. + StatusCode *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode `pulumi:"statusCode"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs struct { + // Configures inspection of the response body. See `bodyContains` for more details. + BodyContains WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput `pulumi:"bodyContains"` + // Configures inspection of the response header.See `header` for more details. + Header WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput `pulumi:"header"` + // Configures inspection of the response JSON. See `json` for more details. + Json WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput `pulumi:"json"` + // Configures inspection of the response status code.See `statusCode` for more details. + StatusCode WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput `pulumi:"statusCode"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) -} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput interface { + pulumi.Input -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, - } -} +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType)(v) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { - return o +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { - return o +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ - OutputState: o.OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx).OutputState, } } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader) string { - return v.Name - }).(pulumi.StringOutput) -} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput struct{ *pulumi.OutputState } -// Value of the custom header. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader) string { - return v.Value - }).(pulumi.StringOutput) +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { + return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { - return o +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) +// Configures inspection of the response body. See `bodyContains` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) BodyContains() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { + return v.BodyContains + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling `pulumi:"customRequestHandling"` +// Configures inspection of the response header.See `header` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) Header() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { + return v.Header + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput +// Configures inspection of the response JSON. See `json` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) Json() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { + return v.Json + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +// Configures inspection of the response status code.See `statusCode` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) StatusCode() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { + return v.StatusCode + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection]{ + OutputState: o.OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx) +// Configures inspection of the response body. See `bodyContains` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) BodyContains() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { + if v == nil { + return nil + } + return v.BodyContains + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput` via: +// Configures inspection of the response header.See `header` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Header() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { + if v == nil { + return nil + } + return v.Header + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) +} + +// Configures inspection of the response JSON. See `json` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) Json() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { + if v == nil { + return nil + } + return v.Json + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) +} + +// Configures inspection of the response status code.See `statusCode` for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionPtrOutput) StatusCode() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { + if v == nil { + return nil + } + return v.StatusCode + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains struct { + // Strings in the body of the response that indicate a failed login attempt. + FailureStrings []string `pulumi:"failureStrings"` + // Strings in the body of the response that indicate a successful login attempt. + SuccessStrings []string `pulumi:"successStrings"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs struct { + // Strings in the body of the response that indicate a failed login attempt. + FailureStrings pulumi.StringArrayInput `pulumi:"failureStrings"` + // Strings in the body of the response that indicate a successful login attempt. + SuccessStrings pulumi.StringArrayInput `pulumi:"successStrings"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) +// Strings in the body of the response that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) FailureStrings() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { + return v.FailureStrings + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput struct{ *pulumi.OutputState } +// Strings in the body of the response that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) SuccessStrings() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { + return v.SuccessStrings + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { +// Strings in the body of the response that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) FailureStrings() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { if v == nil { return nil } - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) + return v.FailureStrings + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +// Strings in the body of the response that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsPtrOutput) SuccessStrings() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains) []string { + if v == nil { + return nil + } + return v.SuccessStrings + }).(pulumi.StringArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput` via: +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader struct { + // Values in the response header with the specified name that indicate a failed login attempt. + FailureValues []string `pulumi:"failureValues"` + // The name of the header to use. + Name string `pulumi:"name"` + // Values in the response header with the specified name that indicate a successful login attempt. + SuccessValues []string `pulumi:"successValues"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs struct { + // Values in the response header with the specified name that indicate a failed login attempt. + FailureValues pulumi.StringArrayInput `pulumi:"failureValues"` + // The name of the header to use. + Name pulumi.StringInput `pulumi:"name"` + // Values in the response header with the specified name that indicate a successful login attempt. + SuccessValues pulumi.StringArrayInput `pulumi:"successValues"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +// Values in the response header with the specified name that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) FailureValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { + return v.FailureValues + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// The name of the header to use. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() +// Values in the response header with the specified name that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) SuccessValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { + return v.SuccessValues + }).(pulumi.StringArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { +// Values in the response header with the specified name that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) FailureValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) + return v.FailureValues + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +// The name of the header to use. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput` via: +// Values in the response header with the specified name that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderPtrOutput) SuccessValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader) []string { + if v == nil { + return nil + } + return v.SuccessValues + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson struct { + // Values in the response header with the specified name that indicate a failed login attempt. + FailureValues []string `pulumi:"failureValues"` + // The identifier for the value to match against in the JSON. + Identifier string `pulumi:"identifier"` + // Values in the response header with the specified name that indicate a successful login attempt. + SuccessValues []string `pulumi:"successValues"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs struct { + // Values in the response header with the specified name that indicate a failed login attempt. + FailureValues pulumi.StringArrayInput `pulumi:"failureValues"` + // The identifier for the value to match against in the JSON. + Identifier pulumi.StringInput `pulumi:"identifier"` + // Values in the response header with the specified name that indicate a successful login attempt. + SuccessValues pulumi.StringArrayInput `pulumi:"successValues"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ OutputState: o.OutputState, } } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Values in the response header with the specified name that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) FailureValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { + return v.FailureValues + }).(pulumi.StringArrayOutput) } -// Value of the custom header. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader) string { - return v.Value +// The identifier for the value to match against in the JSON. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) string { + return v.Identifier }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +// Values in the response header with the specified name that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) SuccessValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { + return v.SuccessValues + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling `pulumi:"customRequestHandling"` +// Values in the response header with the specified name that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) FailureValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { + if v == nil { + return nil + } + return v.FailureValues + }).(pulumi.StringArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput` via: +// The identifier for the value to match against in the JSON. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) Identifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) *string { + if v == nil { + return nil + } + return &v.Identifier + }).(pulumi.StringPtrOutput) +} + +// Values in the response header with the specified name that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonPtrOutput) SuccessValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson) []string { + if v == nil { + return nil + } + return v.SuccessValues + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode struct { + // Status codes in the response that indicate a failed login attempt. + FailureCodes []int `pulumi:"failureCodes"` + // Status codes in the response that indicate a successful login attempt. + SuccessCodes []int `pulumi:"successCodes"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs struct { + // Status codes in the response that indicate a failed login attempt. + FailureCodes pulumi.IntArrayInput `pulumi:"failureCodes"` + // Status codes in the response that indicate a successful login attempt. + SuccessCodes pulumi.IntArrayInput `pulumi:"successCodes"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) +// Status codes in the response that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) FailureCodes() pulumi.IntArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { + return v.FailureCodes + }).(pulumi.IntArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput struct{ *pulumi.OutputState } +// Status codes in the response that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) SuccessCodes() pulumi.IntArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { + return v.SuccessCodes + }).(pulumi.IntArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { +// Status codes in the response that indicate a failed login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) FailureCodes() pulumi.IntArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { if v == nil { return nil } - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) + return v.FailureCodes + }).(pulumi.IntArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +// Status codes in the response that indicate a successful login attempt. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodePtrOutput) SuccessCodes() pulumi.IntArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode) []int { + if v == nil { + return nil + } + return v.SuccessCodes + }).(pulumi.IntArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput` via: +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet struct { + // The inspection level to use for the Bot Control rule group. + InspectionLevel string `pulumi:"inspectionLevel"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs struct { + // The inspection level to use for the Bot Control rule group. + InspectionLevel pulumi.StringInput `pulumi:"inspectionLevel"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) +// The inspection level to use for the Bot Control rule group. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) InspectionLevel() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) string { + return v.InspectionLevel + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetOutput) } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { +// The inspection level to use for the Bot Control rule group. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetPtrOutput) InspectionLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet) *string { if v == nil { return nil } - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) + return &v.InspectionLevel + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField struct { + // The name of the password field. + Identifier string `pulumi:"identifier"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs struct { + // The name of the password field. + Identifier pulumi.StringInput `pulumi:"identifier"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(context.Background()) } -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader) string { - return v.Name - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) } -// Value of the custom header. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader) string { - return v.Value +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ + OutputState: o.OutputState, + } +} + +// The name of the password field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) string { + return v.Identifier }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling `pulumi:"customRequestHandling"` +// The name of the password field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldPtrOutput) Identifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField) *string { + if v == nil { + return nil + } + return &v.Identifier + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput` via: +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField struct { + // The name of the username field. + Identifier string `pulumi:"identifier"` +} + +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput interface { +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs struct { - // Defines custom handling for the web request. See `customRequestHandling` below for details. - CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs struct { + // The name of the username field. + Identifier pulumi.StringInput `pulumi:"identifier"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput).ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs, WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtr and WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs +type webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtr(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ OutputState: o.OutputState, } } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) +// The name of the username field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) string { + return v.Identifier + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount + var ret WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldOutput) } -// Defines custom handling for the web request. See `customRequestHandling` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { +// The name of the username field. +func (o WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldPtrOutput) Identifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField) *string { if v == nil { return nil } - return v.CustomRequestHandling - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) + return &v.Identifier + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride struct { + // Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + ActionToUse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse `pulumi:"actionToUse"` + // Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs struct { - // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. - InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs struct { + // Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + ActionToUse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput `pulumi:"actionToUse"` + // Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs - -func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideInput -func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ OutputState: o.OutputState, } } -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) +// Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) ActionToUse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse { + return v.ActionToUse + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } +// Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride) string { return v.Name }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) -} - -// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { - if v == nil { - return nil - } - return v.InsertHeaders - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideOutput) } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name string `pulumi:"name"` - // Value of the custom header. - Value string `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse struct { + // Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Allow *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow `pulumi:"allow"` + // Specifies that AWS WAF should block requests by default. See `block` below for details. + Block *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock `pulumi:"block"` + // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Captcha *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha `pulumi:"captcha"` + // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Challenge *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge `pulumi:"challenge"` + // Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Count *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount `pulumi:"count"` } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs struct { - // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - Name pulumi.StringInput `pulumi:"name"` - // Value of the custom header. - Value pulumi.StringInput `pulumi:"value"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs struct { + // Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Allow WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput `pulumi:"allow"` + // Specifies that AWS WAF should block requests by default. See `block` below for details. + Block WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput `pulumi:"block"` + // Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Captcha WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput `pulumi:"captcha"` + // Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Challenge WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput `pulumi:"challenge"` + // Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Count WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput `pulumi:"count"` } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() +// Specifies that AWS WAF should allow requests by default. See `allow` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Allow() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { + return v.Allow + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } -} - -// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader) string { - return v.Name - }).(pulumi.StringOutput) -} - -// Value of the custom header. -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader) string { - return v.Value - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return o +// Specifies that AWS WAF should block requests by default. See `block` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Block() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { + return v.Block + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { - return o +// Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Captcha() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { + return v.Captcha + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ - OutputState: o.OutputState, - } +// Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Challenge() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { + return v.Challenge + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) +// Instructs AWS WAF to count the web request and allow it. See `count` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseOutput) Count() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { + return v.Count + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement struct { - // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. - AndStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement `pulumi:"andStatement"` - // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. - ByteMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement `pulumi:"byteMatchStatement"` - // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. - GeoMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement `pulumi:"geoMatchStatement"` - // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. - IpSetReferenceStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` - // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. - LabelMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement `pulumi:"labelMatchStatement"` - // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. - NotStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement `pulumi:"notStatement"` - // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. - OrStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement `pulumi:"orStatement"` - // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. - RegexMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement `pulumi:"regexMatchStatement"` - // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. - RegexPatternSetReferenceStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` - // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. - SizeConstraintStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. - SqliMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` - // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. - XssMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement `pulumi:"xssMatchStatement"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling `pulumi:"customRequestHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs struct { - // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. - AndStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput `pulumi:"andStatement"` - // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. - ByteMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` - // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. - GeoMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` - // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. - IpSetReferenceStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` - // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. - LabelMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` - // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. - NotStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput `pulumi:"notStatement"` - // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. - OrStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput `pulumi:"orStatement"` - // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. - RegexMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` - // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. - RegexPatternSetReferenceStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` - // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. - SizeConstraintStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` - // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. - SqliMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` - // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. - XssMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ OutputState: o.OutputState, } } -// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) AndStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { - return v.AndStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) -} - -// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ByteMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { - return v.ByteMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) -} - -// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) GeoMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { - return v.GeoMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) -} - -// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) IpSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { - return v.IpSetReferenceStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) -} - -// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) LabelMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { - return v.LabelMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) -} - -// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) NotStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { - return v.NotStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) -} - -// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) OrStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { - return v.OrStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) -} - -// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) RegexMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { - return v.RegexMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) -} - -// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { - return v.RegexPatternSetReferenceStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) -} - -// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) SizeConstraintStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { - return v.SizeConstraintStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) -} - -// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) SqliMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { - return v.SqliMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) -} - -// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) XssMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { - return v.XssMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) -} - -// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) AndStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { - if v == nil { - return nil - } - return v.AndStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) -} - -// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ByteMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { - if v == nil { - return nil - } - return v.ByteMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowOutput) } -// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) GeoMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { if v == nil { return nil } - return v.GeoMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) } -// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) IpSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { - if v == nil { - return nil - } - return v.IpSetReferenceStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) LabelMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { - if v == nil { - return nil - } - return v.LabelMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) -} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInput interface { + pulumi.Input -// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) NotStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { - if v == nil { - return nil - } - return v.NotStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput } -// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) OrStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { - if v == nil { - return nil - } - return v.OrStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) RegexMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { - if v == nil { - return nil - } - return v.RegexMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() } -// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { - if v == nil { - return nil - } - return v.RegexPatternSetReferenceStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(context.Background()) } -// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) SizeConstraintStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { - if v == nil { - return nil - } - return v.SizeConstraintStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) } -// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) SqliMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { - if v == nil { - return nil - } - return v.SqliMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx).OutputState, + } } -// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) XssMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { - if v == nil { - return nil - } - return v.XssMatchStatement - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs + +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType)(v) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { + return o } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput -} - -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType)(v) -} - -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx).OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) []WebAclRuleStatement { - return v.Statements - }).(WebAclRuleStatementArrayOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingOutput) } -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) []WebAclRuleStatement { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { if v == nil { return nil } - return v.Statements - }).(WebAclRuleStatementArrayOutput) + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint string `pulumi:"positionalConstraint"` - // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString string `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` - // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. - SearchString pulumi.StringInput `pulumi:"searchString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) string { - return v.PositionalConstraint +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader) string { + return v.Name }).(pulumi.StringOutput) } -// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) string { - return v.SearchString +// Value of the custom header. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader) string { + return v.Value }).(pulumi.StringOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) -} - -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) -} - -// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.PositionalConstraint - }).(pulumi.StringPtrOutput) -} - -// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *string { - if v == nil { - return nil - } - return &v.SearchString - }).(pulumi.StringPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse `pulumi:"customResponse"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs struct { + // Defines a custom response for the web request. See `customResponse` below for details. + CustomResponse WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput `pulumi:"customResponse"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) CustomResponse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { + return v.CustomResponse + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock)(nil)).Elem() } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return o } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput { + return o } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) -} - -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { +// Defines a custom response for the web request. See `customResponse` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockPtrOutput) CustomResponse() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { if v == nil { return nil } - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) + return v.CustomResponse + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey *string `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode int `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader `pulumi:"responseHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs struct { + // References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. + CustomResponseBodyKey pulumi.StringPtrInput `pulumi:"customResponseBodyKey"` + // The HTTP status code to return to the client. + ResponseCode pulumi.IntInput `pulumi:"responseCode"` + // The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. + ResponseHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput `pulumi:"responseHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *string { + return v.CustomResponseBodyKey + }).(pulumi.StringPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +// The HTTP status code to return to the client. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ResponseCode() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) int { + return v.ResponseCode + }).(pulumi.IntOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) ResponseHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { + return v.ResponseHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `customResponseBody` block of this resource. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) CustomResponseBodyKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *string { + if v == nil { + return nil + } + return v.CustomResponseBodyKey + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput interface { - pulumi.Input +// The HTTP status code to return to the client. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ResponseCode() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) *int { + if v == nil { + return nil + } + return &v.ResponseCode + }).(pulumi.IntPtrOutput) +} - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput +// The `responseHeader` blocks used to define the HTTP response headers added to the response. See `responseHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponsePtrOutput) ResponseHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { + if v == nil { + return nil + } + return v.ResponseHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader) string { + return v.Name + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +// Value of the custom header. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader) string { + return v.Value + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) -} - -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling `pulumi:"customRequestHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(context.Background()) } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { + if v == nil { + return nil + } + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` +} + +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader) string { + return v.Name + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: o.OutputState, - } +// Value of the custom header. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader) string { + return v.Value + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling `pulumi:"customRequestHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput interface { + pulumi.Input -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return o -} +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return o +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx).OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ + OutputState: o.OutputState, + } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, - } +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengePtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { + if v == nil { + return nil + } + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { + if v == nil { + return nil + } + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput` via: +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` +} + +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderInput -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader) string { + return v.Name }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// Value of the custom header. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader) string { + return v.Value + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling `pulumi:"customRequestHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs struct { + // Defines custom handling for the web request. See `customRequestHandling` below for details. + CustomRequestHandling WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput `pulumi:"customRequestHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { +// Defines custom handling for the web request. See `customRequestHandling` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountPtrOutput) CustomRequestHandling() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return v.CustomRequestHandling + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader `pulumi:"insertHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs struct { + // The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. + InsertHeaders WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput `pulumi:"insertHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput).ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs, WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtr and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtr(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod struct { +// The `insertHeader` blocks used to define HTTP headers added to the request. See `insertHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingPtrOutput) InsertHeaders() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling) []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { + if v == nil { + return nil + } + return v.InsertHeaders + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput` via: +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name string `pulumi:"name"` + // Value of the custom header. + Value string `pulumi:"value"` +} + +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs struct { + // Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name pulumi.StringInput `pulumi:"name"` + // Value of the custom header. + Value pulumi.StringInput `pulumi:"value"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray and WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray []WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderInput + +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput -} - -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType)(v) -} - -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) +// Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader) string { + return v.Name + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } +// Value of the custom header. +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader) string { + return v.Value + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement struct { + // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. + AndStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement `pulumi:"andStatement"` + // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. + ByteMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement `pulumi:"byteMatchStatement"` + // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. + GeoMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement `pulumi:"geoMatchStatement"` + // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. + IpSetReferenceStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement `pulumi:"ipSetReferenceStatement"` + // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. + LabelMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement `pulumi:"labelMatchStatement"` + // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. + NotStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement `pulumi:"notStatement"` + // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. + OrStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement `pulumi:"orStatement"` + // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. + RegexMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement `pulumi:"regexMatchStatement"` + // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. + RegexPatternSetReferenceStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement `pulumi:"regexPatternSetReferenceStatement"` + // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. + SizeConstraintStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. + SqliMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement `pulumi:"sqliMatchStatement"` + // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. + XssMatchStatement *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement `pulumi:"xssMatchStatement"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs struct { + // Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. + AndStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput `pulumi:"andStatement"` + // Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. + ByteMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput `pulumi:"byteMatchStatement"` + // Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. + GeoMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput `pulumi:"geoMatchStatement"` + // Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. + IpSetReferenceStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput `pulumi:"ipSetReferenceStatement"` + // Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. + LabelMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput `pulumi:"labelMatchStatement"` + // Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. + NotStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput `pulumi:"notStatement"` + // Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. + OrStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput `pulumi:"orStatement"` + // Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. + RegexMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput `pulumi:"regexMatchStatement"` + // Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. + RegexPatternSetReferenceStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput `pulumi:"regexPatternSetReferenceStatement"` + // Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. + SizeConstraintStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput `pulumi:"sizeConstraintStatement"` + // An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. + SqliMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput `pulumi:"sqliMatchStatement"` + // Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. + XssMatchStatement WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput `pulumi:"xssMatchStatement"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { - return o + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) AndStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { + return v.AndStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) ByteMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { + return v.ByteMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) +// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) GeoMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { + return v.GeoMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, - } +// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) IpSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { + return v.IpSetReferenceStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) LabelMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { + return v.LabelMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) NotStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { + return v.NotStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput +// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) OrStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { + return v.OrStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) +// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) RegexMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { + return v.RegexMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { + return v.RegexPatternSetReferenceStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) SizeConstraintStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { + return v.SizeConstraintStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) +// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) SqliMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { + return v.SqliMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, - } +// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) XssMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { + return v.XssMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Logical rule statement used to combine other rule statements with AND logic. See `andStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) AndStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { + if v == nil { + return nil + } + return v.AndStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byteMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) ByteMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { + if v == nil { + return nil + } + return v.ByteMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Rule statement used to identify web requests based on country of origin. See `geoMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) GeoMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { + if v == nil { + return nil + } + return v.GeoMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ipSetReferenceStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) IpSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { + if v == nil { + return nil + } + return v.IpSetReferenceStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { - if v != nil { - return *v +// Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `labelMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) LabelMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { + if v == nil { + return nil } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) + return v.LabelMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *string { +// Logical rule statement used to negate the results of another rule statement. See `notStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) NotStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.NotStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Logical rule statement used to combine other rule statements with OR logic. See `orStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) OrStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { + if v == nil { + return nil + } + return v.OrStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// Rule statement used to search web request components for a match against a single regular expression. See `regexMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) RegexMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { + if v == nil { + return nil + } + return v.RegexMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) +} + +// Rule statement used to search web request components for matches with regular expressions. See `regexPatternSetReferenceStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) RegexPatternSetReferenceStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { + if v == nil { + return nil + } + return v.RegexPatternSetReferenceStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +} + +// Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `sizeConstraintStatement` below for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) SizeConstraintStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { + if v == nil { + return nil + } + return v.SizeConstraintStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) +} + +// An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqliMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) SqliMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { + if v == nil { + return nil + } + return v.SqliMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) +} + +// Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xssMatchStatement` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementPtrOutput) XssMatchStatement() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { + if v == nil { + return nil + } + return v.XssMatchStatement + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) []WebAclRuleStatement { + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement) []WebAclRuleStatement { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint string `pulumi:"positionalConstraint"` + // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString string `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + PositionalConstraint pulumi.StringInput `pulumi:"positionalConstraint"` + // String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. + SearchString pulumi.StringInput `pulumi:"searchString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() +// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) PositionalConstraint() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) string { + return v.PositionalConstraint + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) SearchString() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) string { + return v.SearchString + }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +// Area within the portion of a web request that you want AWS WAF to search for `searchString`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) PositionalConstraint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.PositionalConstraint + }).(pulumi.StringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) +// String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `fieldToMatch`. The maximum length of the value is 50 bytes. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) SearchString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) *string { + if v == nil { + return nil + } + return &v.SearchString + }).(pulumi.StringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, - } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return o +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return o -} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput interface { + pulumi.Input -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput } -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) -} +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType)(v) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { - return o +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ - OutputState: o.OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement struct { - // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes []string `pulumi:"countryCodes"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. - ForwardedIpConfig *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput interface { - pulumi.Input +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs struct { - // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. - ForwardedIpConfig WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return o } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: o.OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx) +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput interface { - pulumi.Input +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) +} - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) +} -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType)(v) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, - } +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ - OutputState: o.OutputState, - } +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) []string { - return v.CountryCodes - }).(pulumi.StringArrayOutput) +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { - return v.ForwardedIpConfig - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { - return o +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ - OutputState: o.OutputState, - } +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { - if v != nil { - return *v +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) []string { +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { if v == nil { return nil } - return v.CountryCodes - }).(pulumi.StringArrayOutput) + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { if v == nil { return nil } - return v.ForwardedIpConfig - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { - return v.FallbackBehavior - }).(pulumi.StringOutput) -} - -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { - return v.HeaderName - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsOutput) } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { - if v == nil { - return nil - } - return &v.HeaderName - }).(pulumi.StringPtrOutput) +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn string `pulumi:"arn"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. - IpSetForwardedIpConfig *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the IP Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. - IpSetForwardedIpConfig WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) string { - return v.Arn - }).(pulumi.StringOutput) -} - -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - return v.IpSetForwardedIpConfig - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyOutput) } -// The Amazon Resource Name (ARN) of the IP Set that this statement references. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *string { +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Arn + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { - if v == nil { - return nil - } - return v.IpSetForwardedIpConfig - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior string `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName string `pulumi:"headerName"` - // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position string `pulumi:"position"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { - // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` - // Name of the HTTP header to use for the IP address. - HeaderName pulumi.StringInput `pulumi:"headerName"` - // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - Position pulumi.StringInput `pulumi:"position"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.FallbackBehavior - }).(pulumi.StringOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.HeaderName +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { + return v.MatchScope }).(pulumi.StringOutput) } -// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { - return v.Position +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesOutput) } -// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { if v == nil { return nil } - return &v.FallbackBehavior - }).(pulumi.StringPtrOutput) + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// Name of the HTTP header to use for the IP address. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { if v == nil { return nil } - return &v.HeaderName + return &v.MatchScope }).(pulumi.StringPtrOutput) } -// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies) *string { if v == nil { return nil } - return &v.Position + return &v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement struct { - // String to match against. - Key string `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope string `pulumi:"scope"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs struct { - // String to match against. - Key pulumi.StringInput `pulumi:"key"` - // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - Scope pulumi.StringInput `pulumi:"scope"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// String to match against. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) string { - return v.Key - }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) string { - return v.Scope - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) -} - -// String to match against. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *string { - if v == nil { - return nil - } - return &v.Key - }).(pulumi.StringPtrOutput) -} - -// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *string { - if v == nil { - return nil - } - return &v.Scope - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) []WebAclRuleStatement { - return v.Statements - }).(WebAclRuleStatementArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) -} - -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) []WebAclRuleStatement { - if v == nil { - return nil - } - return v.Statements - }).(WebAclRuleStatementArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ - OutputState: o.OutputState, - } +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) []WebAclRuleStatement { - return v.Statements - }).(WebAclRuleStatementArrayOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) -} - -// The statements to combine. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) []WebAclRuleStatement { - if v == nil { - return nil - } - return v.Statements - }).(WebAclRuleStatementArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement struct { - // The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // String representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString string `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs struct { - // The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // String representing the regular expression. Minimum of `1` and maximum of `512` characters. - RegexString pulumi.StringInput `pulumi:"regexString"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o +} -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType)(v) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, - } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { - return o +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { - return o +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ - OutputState: o.OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -// The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -// String representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) string { - return v.RegexString - }).(pulumi.StringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -// The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// String representing the regular expression. Minimum of `1` and maximum of `512` characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *string { - if v == nil { - return nil - } - return &v.RegexString - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { - if v == nil { - return nil +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll { + if v != nil { + return *v } - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyOutput) } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { if v == nil { return nil } - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) + return &v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput` via: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) -} - -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString struct { } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs struct { } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, + } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: o.OutputState, + } } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: o.OutputState, - } +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { - pulumi.Input +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return o +} - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return o } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: o.OutputState, + } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath]{ + OutputState: o.OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx).OutputState, + } } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationInput + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: o.OutputState, - } +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement struct { + // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes []string `pulumi:"countryCodes"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. + ForwardedIpConfig *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs struct { + // Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + CountryCodes pulumi.StringArrayInput `pulumi:"countryCodes"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. + ForwardedIpConfig WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) +// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) []string { + return v.CountryCodes + }).(pulumi.StringArrayOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) ForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { + return v.ForwardedIpConfig + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementOutput) } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) CountryCodes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) []string { if v == nil { return nil } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + return v.CountryCodes + }).(pulumi.StringArrayOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { if v == nil { return nil } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.ForwardedIpConfig + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { + return v.FallbackBehavior + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) string { + return v.HeaderName + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigOutput) } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { if v == nil { return nil } - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + return &v.FallbackBehavior + }).(pulumi.StringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig) *string { if v == nil { return nil } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + return &v.HeaderName + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn string `pulumi:"arn"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. + IpSetForwardedIpConfig *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig `pulumi:"ipSetForwardedIpConfig"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the IP Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. + IpSetForwardedIpConfig WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput `pulumi:"ipSetForwardedIpConfig"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) string { + return v.Arn + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) IpSetForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { + return v.IpSetForwardedIpConfig + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod struct { +// The Amazon Resource Name (ARN) of the IP Set that this statement references. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *string { + if v == nil { + return nil + } + return &v.Arn + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput` via: +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ipSetForwardedIpConfig` below for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementPtrOutput) IpSetForwardedIpConfig() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { + if v == nil { + return nil + } + return v.IpSetForwardedIpConfig + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior string `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName string `pulumi:"headerName"` + // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position string `pulumi:"position"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs struct { + // Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + FallbackBehavior pulumi.StringInput `pulumi:"fallbackBehavior"` + // Name of the HTTP header to use for the IP address. + HeaderName pulumi.StringInput `pulumi:"headerName"` + // Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Position pulumi.StringInput `pulumi:"position"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) FallbackBehavior() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.FallbackBehavior + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) HeaderName() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.HeaderName + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) Position() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) string { + return v.Position + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString struct { +// Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) FallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.FallbackBehavior + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput +// Name of the HTTP header to use for the IP address. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) HeaderName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.HeaderName + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { +// Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigPtrOutput) Position() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig) *string { + if v == nil { + return nil + } + return &v.Position + }).(pulumi.StringPtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement struct { + // String to match against. + Key string `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope string `pulumi:"scope"` } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) -} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementInput interface { + pulumi.Input -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs struct { + // String to match against. + Key pulumi.StringInput `pulumi:"key"` + // Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Scope pulumi.StringInput `pulumi:"scope"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +// String to match against. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) string { + return v.Key + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) Scope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) string { + return v.Scope + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// String to match against. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *string { + if v == nil { + return nil + } + return &v.Key + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: +// Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementPtrOutput) Scope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement) *string { + if v == nil { + return nil + } + return &v.Scope + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) []WebAclRuleStatement { + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *string { +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement) []WebAclRuleStatement { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) []WebAclRuleStatement { + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { +// The statements to combine. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement) []WebAclRuleStatement { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.Statements + }).(WebAclRuleStatementArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement struct { + // The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // String representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString string `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs struct { + // The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // String representing the regular expression. Minimum of `1` and maximum of `512` characters. + RegexString pulumi.StringInput `pulumi:"regexString"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() +// String representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) RegexString() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) string { + return v.RegexString + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +// The part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) +// String representing the regular expression. Minimum of `1` and maximum of `512` characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) RegexString() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) *string { + if v == nil { + return nil + } + return &v.RegexString + }).(pulumi.StringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, - } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } -} - -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput } -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { - return o +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ - OutputState: o.OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn string `pulumi:"arn"` - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs struct { - // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - Arn pulumi.StringInput `pulumi:"arn"` - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() -} +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, - } +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput interface { - pulumi.Input +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType)(v) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return o } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return o +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return o +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ - OutputState: o.OutputState, - } +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) string { - return v.Arn - }).(pulumi.StringOutput) +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchOutput) } -// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *string { +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { if v == nil { return nil } - return &v.Arn - }).(pulumi.StringPtrOutput) -} - -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, - } -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput -} - -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) -} - -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: o.OutputState, - } -} - -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) -} - -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) -} - -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) -} - -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) -} - -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) -} - -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) -} - -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) -} - -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) -} - -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) -} - -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ - OutputState: o.OutputState, - } -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) -} - -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } // Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { if v == nil { return nil } return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } // Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { if v == nil { return nil } return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } // Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { if v == nil { return nil } return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } // Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { if v == nil { return nil } return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { if v == nil { return nil } return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { if v == nil { return nil } return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } // Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { if v == nil { return nil } return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } // Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { if v == nil { return nil } return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { if v == nil { return nil } return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody struct { // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs struct { // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput -} + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput +} -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyOutput) } // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody) *string { if v == nil { return nil } @@ -71292,194 +70736,194 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies struct { // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` MatchScope string `pulumi:"matchScope"` // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs struct { // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` MatchScope pulumi.StringInput `pulumi:"matchScope"` // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { return v.MatchScope }).(pulumi.StringOutput) } // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) string { return v.OversizeHandling }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesOutput) } // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { if v == nil { return nil } return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { if v == nil { return nil } @@ -71488,8 +70932,8 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte } // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies) *string { if v == nil { return nil } @@ -71497,851 +70941,851 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternInput -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { return v.ExcludedCookies }).(pulumi.StringArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern) []string { return v.IncludedCookies }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader struct { // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. MatchScope string `pulumi:"matchScope"` // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs struct { // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. MatchScope pulumi.StringInput `pulumi:"matchScope"` // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() -} +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() +} -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderInput -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern { return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) } // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { return v.MatchScope }).(pulumi.StringOutput) } // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader) string { return v.OversizeHandling }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. ExcludedHeaders []string `pulumi:"excludedHeaders"` // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. IncludedHeaders []string `pulumi:"includedHeaders"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { return v.ExcludedHeaders }).(pulumi.StringArrayOutput) } // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern) []string { return v.IncludedHeaders }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody struct { // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope string `pulumi:"matchScope"` // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs struct { // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. MatchScope pulumi.StringInput `pulumi:"matchScope"` // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { return v.InvalidFallbackBehavior }).(pulumi.StringPtrOutput) } // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) string { return v.MatchScope }).(pulumi.StringOutput) } // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyOutput) } // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -72350,18 +71794,18 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte } // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { if v == nil { return nil } return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -72370,8 +71814,8 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte } // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -72379,179 +71823,179 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern struct { // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } // An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { return v.IncludedPaths }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } // An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern) []string { if v == nil { return nil } @@ -72559,588 +72003,588 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader struct { // Name of the query header to inspect. This setting must be provided as lower case characters. Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs struct { // Name of the query header to inspect. This setting must be provided as lower case characters. Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } // Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderOutput) } // Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader) *string { if v == nil { return nil } @@ -73148,162 +72592,162 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument struct { // Name of the query header to inspect. This setting must be provided as lower case characters. Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs struct { // Name of the query header to inspect. This setting must be provided as lower case characters. Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } // Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) string { return v.Name }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentOutput) } // Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } @@ -73311,4294 +72755,5402 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatte }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation struct { // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. Priority int `pulumi:"priority"` // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs struct { // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. Priority pulumi.IntInput `pulumi:"priority"` // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. Type pulumi.StringInput `pulumi:"type"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationInput -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ OutputState: o.OutputState, } } // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) int { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation) int { return v.Priority }).(pulumi.IntOutput) } // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation) string { return v.Type }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement struct { - // Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator string `pulumi:"comparisonOperator"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn string `pulumi:"arn"` // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` - // Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size int `pulumi:"size"` + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch `pulumi:"fieldToMatch"` // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs struct { - // Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs struct { + // The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Arn pulumi.StringInput `pulumi:"arn"` // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - Size pulumi.IntInput `pulumi:"size"` + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx) -} +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx) +} -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -// Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) string { - return v.ComparisonOperator +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) Arn() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) string { + return v.Arn }).(pulumi.StringOutput) } // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) -} - -// Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) int { - return v.Size - }).(pulumi.IntOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementOutput) } -// Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *string { +// The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) Arn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *string { if v == nil { return nil } - return &v.ComparisonOperator + return &v.Arn }).(pulumi.StringPtrOutput) } // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { if v == nil { return nil } return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) -} - -// Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *int { - if v == nil { - return nil - } - return &v.Size - }).(pulumi.IntPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { if v == nil { return nil } return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch struct { // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody `pulumi:"body"` // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies `pulumi:"cookies"` // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader `pulumi:"headers"` // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody `pulumi:"jsonBody"` // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod `pulumi:"method"` // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString `pulumi:"queryString"` // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath `pulumi:"uriPath"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs struct { // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput `pulumi:"body"` // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput `pulumi:"method"` // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ OutputState: o.OutputState, } } // Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } // Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) } // Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) } // Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) } // Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } // Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } // Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchOutput) } // Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { if v == nil { return nil } return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) } // Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { if v == nil { return nil } return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +} + +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +} + +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +} + +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) +} + +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +} + +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) +} + +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) +} + +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { + if v == nil { + return nil + } + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: o.OutputState, + } +} + +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyOutput) +} + +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: o.OutputState, + } +} + +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +} + +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesOutput) +} + +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +} + +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternInput + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: o.OutputState, + } +} + +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderInput + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } +} + +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +} + +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } +} + +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) +} + +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return o } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return o } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { - if v == nil { - return nil +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll { + if v != nil { + return *v } - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput` via: +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternOutput) } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod struct { } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodInput interface { + pulumi.Input -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { - if v == nil { - return nil - } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, + } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, - } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return o +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, + } } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput interface { + pulumi.Input -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { - return o +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return o } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ - OutputState: o.OutputState, - } -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { - return o + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath)(nil)).Elem() } -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o } -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput { + return o } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { + if v != nil { + return *v } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement struct { + // Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator string `pulumi:"comparisonOperator"` + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch `pulumi:"fieldToMatch"` + // Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size int `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs struct { + // Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + Size pulumi.IntInput `pulumi:"size"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) ComparisonOperator() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) string { + return v.ComparisonOperator + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +// Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) Size() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) int { + return v.Size + }).(pulumi.IntOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod struct { +// Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) ComparisonOperator() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *string { + if v == nil { + return nil + } + return &v.ComparisonOperator + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput` via: +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) +} + +// Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) *int { + if v == nil { + return nil + } + return &v.Size + }).(pulumi.IntPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { - return o + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString struct { +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, - } +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return o +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return o +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - if v != nil { - return *v +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { + if v == nil { + return nil } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) -} - -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Name + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput` via: +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternInput -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) -} - -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() -} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { - return o +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ - OutputState: o.OutputState, - } +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyOutput) } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -77606,3135 +78158,3135 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchS }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern) []string { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString)(nil)).Elem() } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput { + return o } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { - return o +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, + } +} - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return o } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderOutput) } -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope - }).(pulumi.StringOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) -} - -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.OversizeHandling - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod struct { +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput` via: +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ - OutputState: o.OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { - return o + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString struct { +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, - } +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return o +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return o +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { - return o +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil + } + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - if v != nil { - return *v +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { + if v == nil { + return nil } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) -} - -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody) *string { if v == nil { return nil } - return &v.Name + return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + if v == nil { + return nil + } + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput` via: +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternInput -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs struct { - // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. - FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` - // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. - TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput -} - -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType)(v) -} - -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) -} - -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, - } + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() -} +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { - return o +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { - return o +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ - OutputState: o.OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ - OutputState: o.OutputState, - } -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) -} - -// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { - if v == nil { - return nil - } - return v.FieldToMatch - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) -} - -// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { - if v == nil { - return nil - } - return v.TextTransformations - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch struct { - // Inspect all query arguments. - AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput interface { - pulumi.Input +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +} - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs struct { - // Inspect all query arguments. - AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` - // Inspect the request body, which immediately follows the request headers. See `body` below for details. - Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` - // Inspect the cookies in the web request. See `cookies` below for details. - Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` - // Inspect the request headers. See `headers` below for details. - Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` - // Inspect the request body as JSON. See `jsonBody` for details. - JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` - // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` - // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` - // Inspect a single header. See `singleHeader` below for details. - SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` - // Inspect a single query argument. See `singleQueryArgument` below for details. - SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` - // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType)(v) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return o -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderInput -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return o +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: o.OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, } } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return o } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return o } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)(nil)).Elem() } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput { + return o } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } +} -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { - return o +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ - OutputState: o.OutputState, - } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -// Inspect all query arguments. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - if v == nil { - return nil - } - return v.AllQueryArguments - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) } -// Inspect the request body, which immediately follows the request headers. See `body` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - if v == nil { - return nil - } - return v.Body - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) } -// Inspect the cookies in the web request. See `cookies` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { - if v == nil { - return nil - } - return v.Cookies - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } } -// Inspect the request headers. See `headers` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - if v == nil { - return nil - } - return v.Headers - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() } -// Inspect the request body as JSON. See `jsonBody` for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { - if v == nil { - return nil - } - return v.JsonBody - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - if v == nil { - return nil - } - return v.Method - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o } -// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - if v == nil { - return nil - } - return v.QueryString - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } } -// Inspect a single header. See `singleHeader` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - if v == nil { - return nil - } - return v.SingleHeader - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -// Inspect a single query argument. See `singleQueryArgument` below for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { - if v == nil { - return nil - } - return v.SingleQueryArgument - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) } -// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - if v == nil { - return nil - } - return v.UriPath - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs struct { - // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { return v.OversizeHandling }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyOutput) } -// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { + if v == nil { + return nil + } + return &v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } @@ -80742,2621 +81294,2397 @@ func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchSt }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope string `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs struct { - // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` - // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) -} - -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { - return v.MatchScope - }).(pulumi.StringOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) -} - -// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - if v == nil { - return nil - } - return v.MatchPatterns - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternOutput) } -// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { if v == nil { return nil } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern) []string { if v == nil { return nil } - return &v.OversizeHandling - }).(pulumi.StringPtrOutput) + return v.IncludedPaths + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` - ExcludedCookies []string `pulumi:"excludedCookies"` - IncludedCookies []string `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` - ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` - IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ - OutputState: o.OutputState, - } -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.ExcludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { - return v.IncludedCookies - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope string `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling string `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs struct { - // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` - // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, } } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput interface { + pulumi.Input -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return o -} +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return o +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType)(v) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { - return v.MatchScope - }).(pulumi.StringOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { - return v.OversizeHandling - }).(pulumi.StringOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, + } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ - OutputState: o.OutputState, - } -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders []string `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders []string `pulumi:"includedHeaders"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` - // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` - // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) -} - -// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.ExcludedHeaders - }).(pulumi.StringArrayOutput) -} - -// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { - return v.IncludedHeaders - }).(pulumi.StringArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope string `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling *string `pulumi:"oversizeHandling"` +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { - // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` - // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` - // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. - MatchScope pulumi.StringInput `pulumi:"matchScope"` - // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - return v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) string { - return v.MatchScope +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name }).(pulumi.StringOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - return v.OversizeHandling - }).(pulumi.StringPtrOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) -} - -// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return v.InvalidFallbackBehavior - }).(pulumi.StringPtrOutput) -} - -// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { - if v == nil { - return nil - } - return &v.MatchPattern - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) -} - -// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { - if v == nil { - return nil - } - return &v.MatchScope - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentOutput) } -// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument) *string { if v == nil { return nil } - return v.OversizeHandling + return &v.Name }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { - // An empty configuration block that is used for inspecting all headers. - All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` - IncludedPaths []string `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { - // An empty configuration block that is used for inspecting all headers. - All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` - IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - return v.IncludedPaths - }).(pulumi.StringArrayOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) -} - -// An empty configuration block that is used for inspecting all headers. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v == nil { - return nil - } - return v.All - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { - if v == nil { - return nil - } - return v.IncludedPaths - }).(pulumi.StringArrayOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput` via: // -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationInput -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ - OutputState: o.OutputState, - } +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation `pulumi:"textTransformations"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs struct { + // Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. + FieldToMatch WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput `pulumi:"fieldToMatch"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. + TextTransformations WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput `pulumi:"textTransformations"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementOutput) +} + +// Part of a web request that you want AWS WAF to inspect. See `fieldToMatch` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) FieldToMatch() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { + if v == nil { + return nil + } + return v.FieldToMatch + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `textTransformation` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementPtrOutput) TextTransformations() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch struct { + // Inspect all query arguments. + AllQueryArguments *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath `pulumi:"uriPath"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs struct { + // Inspect all query arguments. + AllQueryArguments WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput `pulumi:"allQueryArguments"` + // Inspect the request body, which immediately follows the request headers. See `body` below for details. + Body WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput `pulumi:"body"` + // Inspect the cookies in the web request. See `cookies` below for details. + Cookies WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput `pulumi:"cookies"` + // Inspect the request headers. See `headers` below for details. + Headers WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput `pulumi:"headers"` + // Inspect the request body as JSON. See `jsonBody` for details. + JsonBody WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput `pulumi:"jsonBody"` + // Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Method WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput `pulumi:"method"` + // Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + QueryString WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput `pulumi:"queryString"` + // Inspect a single header. See `singleHeader` below for details. + SingleHeader WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput `pulumi:"singleHeader"` + // Inspect a single query argument. See `singleQueryArgument` below for details. + SingleQueryArgument WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput `pulumi:"singleQueryArgument"` + // Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + UriPath WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput `pulumi:"uriPath"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ - OutputState: o.OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { - return o + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - if v != nil { - return *v - } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, - } +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} -// -// or: -// -// nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs - -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput struct{ *pulumi.OutputState } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput { + return o } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch]{ + OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return o +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +// Inspect all query arguments. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) AllQueryArguments() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { + if v == nil { + return nil + } + return v.AllQueryArguments + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +// Inspect the request body, which immediately follows the request headers. See `body` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Body() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { + if v == nil { + return nil + } + return v.Body + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Inspect the cookies in the web request. See `cookies` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Cookies() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { + if v == nil { + return nil + } + return v.Cookies + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) string { - return v.Name - }).(pulumi.StringOutput) +// Inspect the request headers. See `headers` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Headers() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + if v == nil { + return nil + } + return v.Headers + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +// Inspect the request body as JSON. See `jsonBody` for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) JsonBody() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + if v == nil { + return nil + } + return v.JsonBody + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) Method() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + if v == nil { + return nil + } + return v.Method + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { - return o +// Inspect the query string. This is the part of a URL that appears after a `?` character, if any. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) QueryString() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + if v == nil { + return nil + } + return v.QueryString + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ - OutputState: o.OutputState, - } +// Inspect a single header. See `singleHeader` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleHeader() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + if v == nil { + return nil + } + return v.SingleHeader + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { - if v != nil { - return *v +// Inspect a single query argument. See `singleQueryArgument` below for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) SingleQueryArgument() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + if v == nil { + return nil } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader - return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) + return v.SingleQueryArgument + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *string { +// Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchPtrOutput) UriPath() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.UriPath + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name string `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments struct { } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { - // Name of the query header to inspect. This setting must be provided as lower case characters. - Name pulumi.StringInput `pulumi:"name"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs struct { } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { - return v.Name - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) -} - -// Name of the query header to inspect. This setting must be provided as lower case characters. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { - if v == nil { - return nil - } - return &v.Name - }).(pulumi.StringPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsOutput) } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs struct { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs struct { + // What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx) } -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput` via: // -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs{...} // // or: // // nil -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput interface { pulumi.Input - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput } -type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs -func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput { - return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType)(v) } -func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { return &v - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody)(nil)).Elem() } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput { return o } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { - return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { - return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { if v != nil { return *v } - var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody return ret - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority int `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type string `pulumi:"type"` -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs struct { - // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - Priority pulumi.IntInput `pulumi:"priority"` - // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - Type pulumi.StringInput `pulumi:"type"` -} - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, - } -} - -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput values. -// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput` via: -// -// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} } -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput interface { - pulumi.Input - - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput - ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) -} - -func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, - } -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } -} - -// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation) int { - return v.Priority - }).(pulumi.IntOutput) -} - -// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation) string { - return v.Type - }).(pulumi.StringOutput) -} - -type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } - -func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { - return o -} - -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { - return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ - OutputState: o.OutputState, - } + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyOutput) } -func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { - return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)[vs[1].(int)] - }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) +// What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody) *string { + if v == nil { + return nil + } + return v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementNotStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope string `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling string `pulumi:"oversizeHandling"` } -// WebAclRuleStatementNotStatementInput is an input type that accepts WebAclRuleStatementNotStatementArgs and WebAclRuleStatementNotStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementNotStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput` via: // -// WebAclRuleStatementNotStatementArgs{...} -type WebAclRuleStatementNotStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesInput interface { pulumi.Input - ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput - ToWebAclRuleStatementNotStatementOutputWithContext(context.Context) WebAclRuleStatementNotStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput } -type WebAclRuleStatementNotStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs struct { + // The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + MatchPatterns WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput `pulumi:"matchPatterns"` + // The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` } -func (WebAclRuleStatementNotStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput { - return i.ToWebAclRuleStatementNotStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(context.Background()) } -func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) } -func (i WebAclRuleStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementNotStatement] { - return pulumix.Output[WebAclRuleStatementNotStatement]{ - OutputState: i.ToWebAclRuleStatementNotStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { - return i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementOutput).ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx) } -// WebAclRuleStatementNotStatementPtrInput is an input type that accepts WebAclRuleStatementNotStatementArgs, WebAclRuleStatementNotStatementPtr and WebAclRuleStatementNotStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementNotStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput` via: // -// WebAclRuleStatementNotStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{...} // // or: // // nil -type WebAclRuleStatementNotStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput interface { pulumi.Input - ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput - ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Context) WebAclRuleStatementNotStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput } -type webAclRuleStatementNotStatementPtrType WebAclRuleStatementNotStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs -func WebAclRuleStatementNotStatementPtr(v *WebAclRuleStatementNotStatementArgs) WebAclRuleStatementNotStatementPtrInput { - return (*webAclRuleStatementNotStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType)(v) } -func (*webAclRuleStatementNotStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementNotStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (i *webAclRuleStatementNotStatementPtrType) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { - return i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementNotStatementPtrType) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (i *webAclRuleStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementNotStatement] { - return pulumix.Output[*WebAclRuleStatementNotStatement]{ - OutputState: i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementNotStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementNotStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { return o } -func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { - return o.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementNotStatement) *WebAclRuleStatementNotStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { return &v - }).(WebAclRuleStatementNotStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) } -func (o WebAclRuleStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementNotStatement] { - return pulumix.Output[WebAclRuleStatementNotStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -// The statements to combine. -func (o WebAclRuleStatementNotStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementNotStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) +} + +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) string { + return v.OversizeHandling + }).(pulumi.StringOutput) } -type WebAclRuleStatementNotStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementNotStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementNotStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies)(nil)).Elem() } -func (o WebAclRuleStatementNotStatementPtrOutput) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementNotStatementPtrOutput) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput { return o } -func (o WebAclRuleStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementNotStatement] { - return pulumix.Output[*WebAclRuleStatementNotStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementNotStatementPtrOutput) Elem() WebAclRuleStatementNotStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementNotStatement) WebAclRuleStatementNotStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies { if v != nil { return *v } - var ret WebAclRuleStatementNotStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies return ret - }).(WebAclRuleStatementNotStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesOutput) } -// The statements to combine. -func (o WebAclRuleStatementNotStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementNotStatement) []WebAclRuleStatement { +// The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `includedCookies` or `excludedCookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchPatterns() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { if v == nil { return nil } - return v.Statements - }).(WebAclRuleStatementArrayOutput) + return v.MatchPatterns + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -type WebAclRuleStatementOrStatement struct { - // The statements to combine. - Statements []WebAclRuleStatement `pulumi:"statements"` +// The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -// WebAclRuleStatementOrStatementInput is an input type that accepts WebAclRuleStatementOrStatementArgs and WebAclRuleStatementOrStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementOrStatementInput` via: -// -// WebAclRuleStatementOrStatementArgs{...} -type WebAclRuleStatementOrStatementInput interface { - pulumi.Input - - ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput - ToWebAclRuleStatementOrStatementOutputWithContext(context.Context) WebAclRuleStatementOrStatementOutput +// What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies) *string { + if v == nil { + return nil + } + return &v.OversizeHandling + }).(pulumi.StringPtrOutput) } -type WebAclRuleStatementOrStatementArgs struct { - // The statements to combine. - Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll `pulumi:"all"` + ExcludedCookies []string `pulumi:"excludedCookies"` + IncludedCookies []string `pulumi:"includedCookies"` } -func (WebAclRuleStatementOrStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementOrStatement)(nil)).Elem() +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput } -func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput { - return i.ToWebAclRuleStatementOrStatementOutputWithContext(context.Background()) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput `pulumi:"all"` + ExcludedCookies pulumi.StringArrayInput `pulumi:"excludedCookies"` + IncludedCookies pulumi.StringArrayInput `pulumi:"includedCookies"` } -func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementOutput) +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i WebAclRuleStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementOrStatement] { - return pulumix.Output[WebAclRuleStatementOrStatement]{ - OutputState: i.ToWebAclRuleStatementOrStatementOutputWithContext(ctx).OutputState, - } +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(context.Background()) } -func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { - return i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } -func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementOutput).ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx).OutputState, + } } -// WebAclRuleStatementOrStatementPtrInput is an input type that accepts WebAclRuleStatementOrStatementArgs, WebAclRuleStatementOrStatementPtr and WebAclRuleStatementOrStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementOrStatementPtrInput` via: -// -// WebAclRuleStatementOrStatementArgs{...} -// -// or: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput` via: // -// nil -type WebAclRuleStatementOrStatementPtrInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput interface { pulumi.Input - ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput - ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Context) WebAclRuleStatementOrStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput } -type webAclRuleStatementOrStatementPtrType WebAclRuleStatementOrStatementArgs - -func WebAclRuleStatementOrStatementPtr(v *WebAclRuleStatementOrStatementArgs) WebAclRuleStatementOrStatementPtrInput { - return (*webAclRuleStatementOrStatementPtrType)(v) -} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput -func (*webAclRuleStatementOrStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (i *webAclRuleStatementOrStatementPtrType) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { - return i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(context.Background()) } -func (i *webAclRuleStatementOrStatementPtrType) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementPtrOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) } -func (i *webAclRuleStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementOrStatement] { - return pulumix.Output[*WebAclRuleStatementOrStatement]{ - OutputState: i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementOrStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementOrStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { return o } -func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { - return o.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ + OutputState: o.OutputState, + } } -func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementOrStatement) *WebAclRuleStatementOrStatement { - return &v - }).(WebAclRuleStatementOrStatementPtrOutput) +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementOrStatement] { - return pulumix.Output[WebAclRuleStatementOrStatement]{ - OutputState: o.OutputState, - } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) ExcludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.ExcludedCookies + }).(pulumi.StringArrayOutput) } -// The statements to combine. -func (o WebAclRuleStatementOrStatementOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v WebAclRuleStatementOrStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) IncludedCookies() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern) []string { + return v.IncludedCookies + }).(pulumi.StringArrayOutput) } -type WebAclRuleStatementOrStatementPtrOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementOrStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementOrStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)(nil)).Elem() } -func (o WebAclRuleStatementOrStatementPtrOutput) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementOrStatementPtrOutput) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput { return o } -func (o WebAclRuleStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementOrStatement] { - return pulumix.Output[*WebAclRuleStatementOrStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementOrStatementPtrOutput) Elem() WebAclRuleStatementOrStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementOrStatement) WebAclRuleStatementOrStatement { - if v != nil { - return *v - } - var ret WebAclRuleStatementOrStatement - return ret - }).(WebAclRuleStatementOrStatementOutput) -} - -// The statements to combine. -func (o WebAclRuleStatementOrStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { - return o.ApplyT(func(v *WebAclRuleStatementOrStatement) []WebAclRuleStatement { - if v == nil { - return nil - } - return v.Statements - }).(WebAclRuleStatementArrayOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput) } func init() { @@ -83460,6 +83788,36 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementOrStatementPtrInput)(nil)).Elem(), RuleGroupRuleStatementOrStatementArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookieInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyIpInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfigInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RuleGroupRuleStatementRateBasedStatementScopeDownStatementInput)(nil)).Elem(), RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs{}) @@ -84309,35 +84667,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementNotStatementInput)(nil)).Elem(), WebAclRuleStatementNotStatementArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementNotStatementPtrInput)(nil)).Elem(), WebAclRuleStatementNotStatementArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementOrStatementInput)(nil)).Elem(), WebAclRuleStatementOrStatementArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementOrStatementPtrInput)(nil)).Elem(), WebAclRuleStatementOrStatementArgs{}) pulumi.RegisterOutputType(RegexPatternSetRegularExpressionOutput{}) pulumi.RegisterOutputType(RegexPatternSetRegularExpressionArrayOutput{}) pulumi.RegisterOutputType(RuleGroupCustomResponseBodyOutput{}) @@ -84438,6 +84767,36 @@ func init() { pulumi.RegisterOutputType(RuleGroupRuleStatementOrStatementPtrOutput{}) pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementOutput{}) pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyArrayOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyCookiePtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyIpOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyIpPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput{}) + pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput{}) pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigOutput{}) pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigPtrOutput{}) pulumi.RegisterOutputType(RuleGroupRuleStatementRateBasedStatementScopeDownStatementOutput{}) @@ -85287,33 +85646,4 @@ func init() { pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesPtrOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArrayOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementNotStatementOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementNotStatementPtrOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementOrStatementOutput{}) - pulumi.RegisterOutputType(WebAclRuleStatementOrStatementPtrOutput{}) } diff --git a/sdk/go/aws/wafv2/pulumiTypes1.go b/sdk/go/aws/wafv2/pulumiTypes1.go index 41055ad6a13..4cc3bd42ac2 100644 --- a/sdk/go/aws/wafv2/pulumiTypes1.go +++ b/sdk/go/aws/wafv2/pulumiTypes1.go @@ -14,226 +14,4848 @@ import ( var _ = internal.GetEnvOrDefault -type WebAclRuleStatementRateBasedStatement struct { - // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. - AggregateKeyType *string `pulumi:"aggregateKeyType"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. - ForwardedIpConfig *WebAclRuleStatementRateBasedStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` - // Limit on requests per 5-minute period for a single originating IP address. - Limit int `pulumi:"limit"` - // Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. - ScopeDownStatement *WebAclRuleStatementRateBasedStatementScopeDownStatement `pulumi:"scopeDownStatement"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll struct { } -// WebAclRuleStatementRateBasedStatementInput is an input type that accepts WebAclRuleStatementRateBasedStatementArgs and WebAclRuleStatementRateBasedStatementOutput values. -// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput` via: // -// WebAclRuleStatementRateBasedStatementArgs{...} -type WebAclRuleStatementRateBasedStatementInput interface { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput interface { pulumi.Input - ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput - ToWebAclRuleStatementRateBasedStatementOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput } -type WebAclRuleStatementRateBasedStatementArgs struct { - // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. - AggregateKeyType pulumi.StringPtrInput `pulumi:"aggregateKeyType"` - // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. - ForwardedIpConfig WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` - // Limit on requests per 5-minute period for a single originating IP address. - Limit pulumi.IntInput `pulumi:"limit"` - // Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. - ScopeDownStatement WebAclRuleStatementRateBasedStatementScopeDownStatementPtrInput `pulumi:"scopeDownStatement"` +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs struct { } -func (WebAclRuleStatementRateBasedStatementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementRateBasedStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput { - return i.ToWebAclRuleStatementRateBasedStatementOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(context.Background()) } -func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementOutput) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) } -func (i WebAclRuleStatementRateBasedStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatement] { - return pulumix.Output[WebAclRuleStatementRateBasedStatement]{ - OutputState: i.ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx).OutputState, +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx).OutputState, } } -func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { - return i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementOutput).ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx) +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx) } -// WebAclRuleStatementRateBasedStatementPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementArgs, WebAclRuleStatementRateBasedStatementPtr and WebAclRuleStatementRateBasedStatementPtrOutput values. -// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementPtrInput` via: +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput` via: // -// WebAclRuleStatementRateBasedStatementArgs{...} +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{...} // // or: // // nil -type WebAclRuleStatementRateBasedStatementPtrInput interface { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput interface { pulumi.Input - ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput - ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput } -type webAclRuleStatementRateBasedStatementPtrType WebAclRuleStatementRateBasedStatementArgs +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs -func WebAclRuleStatementRateBasedStatementPtr(v *WebAclRuleStatementRateBasedStatementArgs) WebAclRuleStatementRateBasedStatementPtrInput { - return (*webAclRuleStatementRateBasedStatementPtrType)(v) +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType)(v) } -func (*webAclRuleStatementRateBasedStatementPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementRateBasedStatement)(nil)).Elem() +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (i *webAclRuleStatementRateBasedStatementPtrType) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { - return i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (i *webAclRuleStatementRateBasedStatementPtrType) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementPtrOutput) +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (i *webAclRuleStatementRateBasedStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatement] { - return pulumix.Output[*WebAclRuleStatementRateBasedStatement]{ - OutputState: i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx).OutputState, +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx).OutputState, } } -type WebAclRuleStatementRateBasedStatementOutput struct{ *pulumi.OutputState } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput struct{ *pulumi.OutputState } -func (WebAclRuleStatementRateBasedStatementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*WebAclRuleStatementRateBasedStatement)(nil)).Elem() +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { return o } -func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { - return o.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(context.Background()) } -func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatement { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { return &v - }).(WebAclRuleStatementRateBasedStatementPtrOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) } -func (o WebAclRuleStatementRateBasedStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatement] { - return pulumix.Output[WebAclRuleStatementRateBasedStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ OutputState: o.OutputState, } } -// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. -func (o WebAclRuleStatementRateBasedStatementOutput) AggregateKeyType() pulumi.StringPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *string { return v.AggregateKeyType }).(pulumi.StringPtrOutput) +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll)(nil)).Elem() } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementRateBasedStatementOutput) ForwardedIpConfig() WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementForwardedIpConfig { - return v.ForwardedIpConfig - }).(WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Limit on requests per 5-minute period for a single originating IP address. -func (o WebAclRuleStatementRateBasedStatementOutput) Limit() pulumi.IntOutput { - return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) int { return v.Limit }).(pulumi.IntOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput { + return o } -// Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. -func (o WebAclRuleStatementRateBasedStatementOutput) ScopeDownStatement() WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementScopeDownStatement { - return v.ScopeDownStatement - }).(WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput) +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll]{ + OutputState: o.OutputState, + } } -type WebAclRuleStatementRateBasedStatementPtrOutput struct{ *pulumi.OutputState } +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput) +} -func (WebAclRuleStatementRateBasedStatementPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**WebAclRuleStatementRateBasedStatement)(nil)).Elem() +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope string `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling string `pulumi:"oversizeHandling"` } -func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs struct { + // The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput `pulumi:"matchPattern"` + // The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + OversizeHandling pulumi.StringInput `pulumi:"oversizeHandling"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { return o } -func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatement] { - return pulumix.Output[*WebAclRuleStatementRateBasedStatement]{ +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ OutputState: o.OutputState, } } -func (o WebAclRuleStatementRateBasedStatementPtrOutput) Elem() WebAclRuleStatementRateBasedStatementOutput { - return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) WebAclRuleStatementRateBasedStatement { +// The filter to use to identify the subset of headers to inspect in a web request. The `matchPattern` block supports only one of the following arguments: +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +} + +// The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) OversizeHandling() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader) string { + return v.OversizeHandling + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders []string `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders []string `pulumi:"includedHeaders"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput `pulumi:"all"` + // An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + ExcludedHeaders pulumi.StringArrayInput `pulumi:"excludedHeaders"` + // An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + IncludedHeaders pulumi.StringArrayInput `pulumi:"includedHeaders"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern]{ + OutputState: o.OutputState, + } +} + +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +// An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) ExcludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.ExcludedHeaders + }).(pulumi.StringArrayOutput) +} + +// An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput) IncludedHeaders() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern) []string { + return v.IncludedHeaders + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll { if v != nil { return *v } - var ret WebAclRuleStatementRateBasedStatement + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll return ret - }).(WebAclRuleStatementRateBasedStatementOutput) + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput) } -// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. -func (o WebAclRuleStatementRateBasedStatementPtrOutput) AggregateKeyType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *string { +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior *string `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope string `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling *string `pulumi:"oversizeHandling"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs struct { + // What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + InvalidFallbackBehavior pulumi.StringPtrInput `pulumi:"invalidFallbackBehavior"` + // The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + MatchPattern WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput `pulumi:"matchPattern"` + // The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. + MatchScope pulumi.StringInput `pulumi:"matchScope"` + // What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + OversizeHandling pulumi.StringPtrInput `pulumi:"oversizeHandling"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: o.OutputState, + } +} + +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + return v.InvalidFallbackBehavior + }).(pulumi.StringPtrOutput) +} + +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + return v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) MatchScope() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) string { + return v.MatchScope + }).(pulumi.StringOutput) +} + +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput) +} + +// What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) InvalidFallbackBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.AggregateKeyType + return v.InvalidFallbackBehavior }).(pulumi.StringPtrOutput) } -// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. -func (o WebAclRuleStatementRateBasedStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementForwardedIpConfig { +// The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `includedPaths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchPattern() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { if v == nil { return nil } - return v.ForwardedIpConfig - }).(WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) + return &v.MatchPattern + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) } -// Limit on requests per 5-minute period for a single originating IP address. -func (o WebAclRuleStatementRateBasedStatementPtrOutput) Limit() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *int { +// The parts of the JSON to match against using the `matchPattern`. Valid values are `ALL`, `KEY` and `VALUE`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) MatchScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return &v.Limit - }).(pulumi.IntPtrOutput) + return &v.MatchScope + }).(pulumi.StringPtrOutput) } -// Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. -func (o WebAclRuleStatementRateBasedStatementPtrOutput) ScopeDownStatement() WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput { - return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementScopeDownStatement { +// What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput) OversizeHandling() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody) *string { if v == nil { return nil } - return v.ScopeDownStatement - }).(WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput) + return v.OversizeHandling + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern struct { + // An empty configuration block that is used for inspecting all headers. + All *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll `pulumi:"all"` + IncludedPaths []string `pulumi:"includedPaths"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs struct { + // An empty configuration block that is used for inspecting all headers. + All WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput `pulumi:"all"` + IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: o.OutputState, + } +} + +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput) +} + +// An empty configuration block that is used for inspecting all headers. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) All() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v == nil { + return nil + } + return v.All + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput) IncludedPaths() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern) []string { + if v == nil { + return nil + } + return v.IncludedPaths + }).(pulumi.StringArrayOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: o.OutputState, + } +} + +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) string { + return v.Name + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput) +} + +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name string `pulumi:"name"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs struct { + // Name of the query header to inspect. This setting must be provided as lower case characters. + Name pulumi.StringInput `pulumi:"name"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: o.OutputState, + } +} + +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) string { + return v.Name + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput) +} + +// Name of the query header to inspect. This setting must be provided as lower case characters. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath struct { +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs struct { +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput).ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs, WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput +} + +type webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs + +func WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtr(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput { + return (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType)(v) +} + +func (*webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +func (i *webAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { + return &v + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath] { + return pulumix.Output[*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput) Elem() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { + if v != nil { + return *v + } + var ret WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath + return ret + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput is an input type that accepts WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray and WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput` via: +// +// WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray{ WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{...} } +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput + ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray []WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: i.ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput() WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToWebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation { + return vs[0].([]WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput) +} + +type WebAclRuleStatementNotStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` +} + +// WebAclRuleStatementNotStatementInput is an input type that accepts WebAclRuleStatementNotStatementArgs and WebAclRuleStatementNotStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementNotStatementInput` via: +// +// WebAclRuleStatementNotStatementArgs{...} +type WebAclRuleStatementNotStatementInput interface { + pulumi.Input + + ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput + ToWebAclRuleStatementNotStatementOutputWithContext(context.Context) WebAclRuleStatementNotStatementOutput +} + +type WebAclRuleStatementNotStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +} + +func (WebAclRuleStatementNotStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementNotStatement)(nil)).Elem() +} + +func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput { + return i.ToWebAclRuleStatementNotStatementOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementOutput) +} + +func (i WebAclRuleStatementNotStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementNotStatement] { + return pulumix.Output[WebAclRuleStatementNotStatement]{ + OutputState: i.ToWebAclRuleStatementNotStatementOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { + return i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementNotStatementArgs) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementOutput).ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementNotStatementPtrInput is an input type that accepts WebAclRuleStatementNotStatementArgs, WebAclRuleStatementNotStatementPtr and WebAclRuleStatementNotStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementNotStatementPtrInput` via: +// +// WebAclRuleStatementNotStatementArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementNotStatementPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput + ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Context) WebAclRuleStatementNotStatementPtrOutput +} + +type webAclRuleStatementNotStatementPtrType WebAclRuleStatementNotStatementArgs + +func WebAclRuleStatementNotStatementPtr(v *WebAclRuleStatementNotStatementArgs) WebAclRuleStatementNotStatementPtrInput { + return (*webAclRuleStatementNotStatementPtrType)(v) +} + +func (*webAclRuleStatementNotStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementNotStatement)(nil)).Elem() +} + +func (i *webAclRuleStatementNotStatementPtrType) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { + return i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementNotStatementPtrType) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementNotStatementPtrOutput) +} + +func (i *webAclRuleStatementNotStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementNotStatement] { + return pulumix.Output[*WebAclRuleStatementNotStatement]{ + OutputState: i.ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementNotStatementOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementNotStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementNotStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementOutput() WebAclRuleStatementNotStatementOutput { + return o +} + +func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementOutput { + return o +} + +func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { + return o.ToWebAclRuleStatementNotStatementPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementNotStatementOutput) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementNotStatement) *WebAclRuleStatementNotStatement { + return &v + }).(WebAclRuleStatementNotStatementPtrOutput) +} + +func (o WebAclRuleStatementNotStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementNotStatement] { + return pulumix.Output[WebAclRuleStatementNotStatement]{ + OutputState: o.OutputState, + } +} + +// The statements to combine. +func (o WebAclRuleStatementNotStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementNotStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +} + +type WebAclRuleStatementNotStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementNotStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementNotStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementNotStatementPtrOutput) ToWebAclRuleStatementNotStatementPtrOutput() WebAclRuleStatementNotStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementNotStatementPtrOutput) ToWebAclRuleStatementNotStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementNotStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementNotStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementNotStatement] { + return pulumix.Output[*WebAclRuleStatementNotStatement]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementNotStatementPtrOutput) Elem() WebAclRuleStatementNotStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementNotStatement) WebAclRuleStatementNotStatement { + if v != nil { + return *v + } + var ret WebAclRuleStatementNotStatement + return ret + }).(WebAclRuleStatementNotStatementOutput) +} + +// The statements to combine. +func (o WebAclRuleStatementNotStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementNotStatement) []WebAclRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(WebAclRuleStatementArrayOutput) +} + +type WebAclRuleStatementOrStatement struct { + // The statements to combine. + Statements []WebAclRuleStatement `pulumi:"statements"` +} + +// WebAclRuleStatementOrStatementInput is an input type that accepts WebAclRuleStatementOrStatementArgs and WebAclRuleStatementOrStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementOrStatementInput` via: +// +// WebAclRuleStatementOrStatementArgs{...} +type WebAclRuleStatementOrStatementInput interface { + pulumi.Input + + ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput + ToWebAclRuleStatementOrStatementOutputWithContext(context.Context) WebAclRuleStatementOrStatementOutput +} + +type WebAclRuleStatementOrStatementArgs struct { + // The statements to combine. + Statements WebAclRuleStatementArrayInput `pulumi:"statements"` +} + +func (WebAclRuleStatementOrStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementOrStatement)(nil)).Elem() +} + +func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput { + return i.ToWebAclRuleStatementOrStatementOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementOutput) +} + +func (i WebAclRuleStatementOrStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementOrStatement] { + return pulumix.Output[WebAclRuleStatementOrStatement]{ + OutputState: i.ToWebAclRuleStatementOrStatementOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { + return i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementOrStatementArgs) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementOutput).ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementOrStatementPtrInput is an input type that accepts WebAclRuleStatementOrStatementArgs, WebAclRuleStatementOrStatementPtr and WebAclRuleStatementOrStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementOrStatementPtrInput` via: +// +// WebAclRuleStatementOrStatementArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementOrStatementPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput + ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Context) WebAclRuleStatementOrStatementPtrOutput +} + +type webAclRuleStatementOrStatementPtrType WebAclRuleStatementOrStatementArgs + +func WebAclRuleStatementOrStatementPtr(v *WebAclRuleStatementOrStatementArgs) WebAclRuleStatementOrStatementPtrInput { + return (*webAclRuleStatementOrStatementPtrType)(v) +} + +func (*webAclRuleStatementOrStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementOrStatement)(nil)).Elem() +} + +func (i *webAclRuleStatementOrStatementPtrType) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { + return i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementOrStatementPtrType) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementOrStatementPtrOutput) +} + +func (i *webAclRuleStatementOrStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementOrStatement] { + return pulumix.Output[*WebAclRuleStatementOrStatement]{ + OutputState: i.ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementOrStatementOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementOrStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementOrStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementOutput() WebAclRuleStatementOrStatementOutput { + return o +} + +func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementOutput { + return o +} + +func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { + return o.ToWebAclRuleStatementOrStatementPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementOrStatementOutput) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementOrStatement) *WebAclRuleStatementOrStatement { + return &v + }).(WebAclRuleStatementOrStatementPtrOutput) +} + +func (o WebAclRuleStatementOrStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementOrStatement] { + return pulumix.Output[WebAclRuleStatementOrStatement]{ + OutputState: o.OutputState, + } +} + +// The statements to combine. +func (o WebAclRuleStatementOrStatementOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementOrStatement) []WebAclRuleStatement { return v.Statements }).(WebAclRuleStatementArrayOutput) +} + +type WebAclRuleStatementOrStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementOrStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementOrStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementOrStatementPtrOutput) ToWebAclRuleStatementOrStatementPtrOutput() WebAclRuleStatementOrStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementOrStatementPtrOutput) ToWebAclRuleStatementOrStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementOrStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementOrStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementOrStatement] { + return pulumix.Output[*WebAclRuleStatementOrStatement]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementOrStatementPtrOutput) Elem() WebAclRuleStatementOrStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementOrStatement) WebAclRuleStatementOrStatement { + if v != nil { + return *v + } + var ret WebAclRuleStatementOrStatement + return ret + }).(WebAclRuleStatementOrStatementOutput) +} + +// The statements to combine. +func (o WebAclRuleStatementOrStatementPtrOutput) Statements() WebAclRuleStatementArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementOrStatement) []WebAclRuleStatement { + if v == nil { + return nil + } + return v.Statements + }).(WebAclRuleStatementArrayOutput) +} + +type WebAclRuleStatementRateBasedStatement struct { + // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. + AggregateKeyType *string `pulumi:"aggregateKeyType"` + // Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + CustomKeys []WebAclRuleStatementRateBasedStatementCustomKey `pulumi:"customKeys"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. + ForwardedIpConfig *WebAclRuleStatementRateBasedStatementForwardedIpConfig `pulumi:"forwardedIpConfig"` + // Limit on requests per 5-minute period for a single originating IP address. + Limit int `pulumi:"limit"` + // Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. + ScopeDownStatement *WebAclRuleStatementRateBasedStatementScopeDownStatement `pulumi:"scopeDownStatement"` +} + +// WebAclRuleStatementRateBasedStatementInput is an input type that accepts WebAclRuleStatementRateBasedStatementArgs and WebAclRuleStatementRateBasedStatementOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementInput` via: +// +// WebAclRuleStatementRateBasedStatementArgs{...} +type WebAclRuleStatementRateBasedStatementInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput + ToWebAclRuleStatementRateBasedStatementOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementOutput +} + +type WebAclRuleStatementRateBasedStatementArgs struct { + // Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. + AggregateKeyType pulumi.StringPtrInput `pulumi:"aggregateKeyType"` + // Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + CustomKeys WebAclRuleStatementRateBasedStatementCustomKeyArrayInput `pulumi:"customKeys"` + // Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. + ForwardedIpConfig WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrInput `pulumi:"forwardedIpConfig"` + // Limit on requests per 5-minute period for a single originating IP address. + Limit pulumi.IntInput `pulumi:"limit"` + // Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. + ScopeDownStatement WebAclRuleStatementRateBasedStatementScopeDownStatementPtrInput `pulumi:"scopeDownStatement"` +} + +func (WebAclRuleStatementRateBasedStatementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatement)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput { + return i.ToWebAclRuleStatementRateBasedStatementOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementOutput) +} + +func (i WebAclRuleStatementRateBasedStatementArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatement] { + return pulumix.Output[WebAclRuleStatementRateBasedStatement]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementArgs) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementOutput).ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementArgs, WebAclRuleStatementRateBasedStatementPtr and WebAclRuleStatementRateBasedStatementPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput + ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementPtrOutput +} + +type webAclRuleStatementRateBasedStatementPtrType WebAclRuleStatementRateBasedStatementArgs + +func WebAclRuleStatementRateBasedStatementPtr(v *WebAclRuleStatementRateBasedStatementArgs) WebAclRuleStatementRateBasedStatementPtrInput { + return (*webAclRuleStatementRateBasedStatementPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatement)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementPtrType) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementPtrType) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatement] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatement]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementOutput() WebAclRuleStatementRateBasedStatementOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementOutput) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatement { + return &v + }).(WebAclRuleStatementRateBasedStatementPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatement] { + return pulumix.Output[WebAclRuleStatementRateBasedStatement]{ + OutputState: o.OutputState, + } +} + +// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. +func (o WebAclRuleStatementRateBasedStatementOutput) AggregateKeyType() pulumi.StringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *string { return v.AggregateKeyType }).(pulumi.StringPtrOutput) +} + +// Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. +func (o WebAclRuleStatementRateBasedStatementOutput) CustomKeys() WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) []WebAclRuleStatementRateBasedStatementCustomKey { + return v.CustomKeys + }).(WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementRateBasedStatementOutput) ForwardedIpConfig() WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementForwardedIpConfig { + return v.ForwardedIpConfig + }).(WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) +} + +// Limit on requests per 5-minute period for a single originating IP address. +func (o WebAclRuleStatementRateBasedStatementOutput) Limit() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) int { return v.Limit }).(pulumi.IntOutput) +} + +// Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. +func (o WebAclRuleStatementRateBasedStatementOutput) ScopeDownStatement() WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementScopeDownStatement { + return v.ScopeDownStatement + }).(WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput) +} + +type WebAclRuleStatementRateBasedStatementPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatement)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToWebAclRuleStatementRateBasedStatementPtrOutput() WebAclRuleStatementRateBasedStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToWebAclRuleStatementRateBasedStatementPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatement] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatement]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementPtrOutput) Elem() WebAclRuleStatementRateBasedStatementOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) WebAclRuleStatementRateBasedStatement { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatement + return ret + }).(WebAclRuleStatementRateBasedStatementOutput) +} + +// Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. +func (o WebAclRuleStatementRateBasedStatementPtrOutput) AggregateKeyType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *string { + if v == nil { + return nil + } + return v.AggregateKeyType + }).(pulumi.StringPtrOutput) +} + +// Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. +func (o WebAclRuleStatementRateBasedStatementPtrOutput) CustomKeys() WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) []WebAclRuleStatementRateBasedStatementCustomKey { + if v == nil { + return nil + } + return v.CustomKeys + }).(WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + +// Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. +func (o WebAclRuleStatementRateBasedStatementPtrOutput) ForwardedIpConfig() WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementForwardedIpConfig { + if v == nil { + return nil + } + return v.ForwardedIpConfig + }).(WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput) +} + +// Limit on requests per 5-minute period for a single originating IP address. +func (o WebAclRuleStatementRateBasedStatementPtrOutput) Limit() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *int { + if v == nil { + return nil + } + return &v.Limit + }).(pulumi.IntPtrOutput) +} + +// Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregateKeyType` is set to `CONSTANT`, this block is required. +func (o WebAclRuleStatementRateBasedStatementPtrOutput) ScopeDownStatement() WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatement) *WebAclRuleStatementRateBasedStatementScopeDownStatement { + if v == nil { + return nil + } + return v.ScopeDownStatement + }).(WebAclRuleStatementRateBasedStatementScopeDownStatementPtrOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKey struct { + // Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + Cookie *WebAclRuleStatementRateBasedStatementCustomKeyCookie `pulumi:"cookie"` + // Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + ForwardedIp *WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp `pulumi:"forwardedIp"` + // Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + Header *WebAclRuleStatementRateBasedStatementCustomKeyHeader `pulumi:"header"` + // Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + HttpMethod *WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod `pulumi:"httpMethod"` + // Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + Ip *WebAclRuleStatementRateBasedStatementCustomKeyIp `pulumi:"ip"` + // Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + LabelNamespace *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace `pulumi:"labelNamespace"` + // Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + QueryArgument *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument `pulumi:"queryArgument"` + // Use the request's query string as an aggregate key. See RateLimit `queryString` below for details. + QueryString *WebAclRuleStatementRateBasedStatementCustomKeyQueryString `pulumi:"queryString"` + // Use the request's URI path as an aggregate key. See RateLimit `uriPath` below for details. + UriPath *WebAclRuleStatementRateBasedStatementCustomKeyUriPath `pulumi:"uriPath"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyArgs and WebAclRuleStatementRateBasedStatementCustomKeyOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyOutput() WebAclRuleStatementRateBasedStatementCustomKeyOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyArgs struct { + // Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + Cookie WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput `pulumi:"cookie"` + // Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + ForwardedIp WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput `pulumi:"forwardedIp"` + // Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + Header WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput `pulumi:"header"` + // Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + HttpMethod WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput `pulumi:"httpMethod"` + // Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + Ip WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput `pulumi:"ip"` + // Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + LabelNamespace WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput `pulumi:"labelNamespace"` + // Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + QueryArgument WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput `pulumi:"queryArgument"` + // Use the request's query string as an aggregate key. See RateLimit `queryString` below for details. + QueryString WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput `pulumi:"queryString"` + // Use the request's URI path as an aggregate key. See RateLimit `uriPath` below for details. + UriPath WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput `pulumi:"uriPath"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyOutput() WebAclRuleStatementRateBasedStatementCustomKeyOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKey]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyArray and WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyArray{ WebAclRuleStatementRateBasedStatementCustomKeyArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyArray []WebAclRuleStatementRateBasedStatementCustomKeyInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArray) ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArray) ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKey]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyOutput() WebAclRuleStatementRateBasedStatementCustomKeyOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKey]{ + OutputState: o.OutputState, + } +} + +// Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) Cookie() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyCookie { + return v.Cookie + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) +} + +// Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) ForwardedIp() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + return v.ForwardedIp + }).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} + +// Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) Header() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyHeader { + return v.Header + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) +} + +// Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) HttpMethod() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + return v.HttpMethod + }).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) +} + +// Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) Ip() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyIp { + return v.Ip + }).(WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) +} + +// Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) LabelNamespace() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + return v.LabelNamespace + }).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) +} + +// Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) QueryArgument() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + return v.QueryArgument + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) +} + +// Use the request's query string as an aggregate key. See RateLimit `queryString` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) QueryString() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + return v.QueryString + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) +} + +// Use the request's URI path as an aggregate key. See RateLimit `uriPath` below for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyOutput) UriPath() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKey) *WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + return v.UriPath + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKey)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKey] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKey]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKey { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKey)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookie struct { + // The name of the cookie to use. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations []WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyCookieInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs and WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyCookieInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyCookieInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs struct { + // The name of the cookie to use. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs, WebAclRuleStatementRateBasedStatementCustomKeyCookiePtr and WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyCookiePtr(v *WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyCookiePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyCookie) *WebAclRuleStatementRateBasedStatementCustomKeyCookie { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: o.OutputState, + } +} + +// The name of the cookie to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyCookie) string { return v.Name }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyCookie) []WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyCookie)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyCookie] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyCookie]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyCookie) WebAclRuleStatementRateBasedStatementCustomKeyCookie { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyCookie + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput) +} + +// The name of the cookie to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyCookie) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyCookie) []WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs and WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray and WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray{ WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray []WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation) string { return v.Type }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp struct { +} + +// WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs and WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs struct { +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs, WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtr and WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp) *WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp) WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeader struct { + // The name of the header to use. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations []WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs and WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHeaderInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs struct { + // The name of the header to use. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs, WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtr and WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHeaderPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyHeader) *WebAclRuleStatementRateBasedStatementCustomKeyHeader { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: o.OutputState, + } +} + +// The name of the header to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyHeader) string { return v.Name }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyHeader) []WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyHeader)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHeader] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHeader]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyHeader) WebAclRuleStatementRateBasedStatementCustomKeyHeader { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyHeader + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput) +} + +// The name of the header to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyHeader) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyHeader) []WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs and WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray and WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray{ WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray []WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation) string { return v.Type }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod struct { +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs and WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs struct { +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs, WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtr and WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod) *WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod) WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyIp struct { +} + +// WebAclRuleStatementRateBasedStatementCustomKeyIpInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyIpArgs and WebAclRuleStatementRateBasedStatementCustomKeyIpOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyIpInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyIpArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyIpInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyIpArgs struct { +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyIpOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyIpArgs, WebAclRuleStatementRateBasedStatementCustomKeyIpPtr and WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyIpArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyIpPtrType WebAclRuleStatementRateBasedStatementCustomKeyIpArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyIpPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyIpArgs) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyIpPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyIpPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyIpPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyIpPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyIpPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyIpOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyIp) *WebAclRuleStatementRateBasedStatementCustomKeyIp { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: o.OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyIp)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyIp] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyIp]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyIpOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyIp) WebAclRuleStatementRateBasedStatementCustomKeyIp { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyIp + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyIpOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace struct { + // The namespace to use for aggregation + Namespace string `pulumi:"namespace"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs and WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs struct { + // The namespace to use for aggregation + Namespace pulumi.StringInput `pulumi:"namespace"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs, WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtr and WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtr(v *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace) *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: o.OutputState, + } +} + +// The namespace to use for aggregation +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) Namespace() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace) string { return v.Namespace }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace) WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput) +} + +// The namespace to use for aggregation +func (o WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput) Namespace() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace) *string { + if v == nil { + return nil + } + return &v.Namespace + }).(pulumi.StringPtrOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument struct { + // The name of the query argument to use. + Name string `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations []WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs and WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs struct { + // The name of the query argument to use. + Name pulumi.StringInput `pulumi:"name"` + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs, WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtr and WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: o.OutputState, + } +} + +// The name of the query argument to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) string { return v.Name }).(pulumi.StringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) []WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput) +} + +// The name of the query argument to use. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument) []WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs and WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray and WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray{ WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray []WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryString struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations []WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs and WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryStringInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs, WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtr and WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyQueryString) *WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: o.OutputState, + } +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryString) []WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyQueryString)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryString] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyQueryString]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryString) WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyQueryString + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyQueryString) []WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs and WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray and WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray{ WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray []WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation) int { + return v.Priority + }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation) string { + return v.Type + }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPath struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations []WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation `pulumi:"textTransformations"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs and WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyUriPathInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs struct { + // Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + TextTransformations WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput `pulumi:"textTransformations"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx).OutputState, + } +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput).ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx) +} + +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs, WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtr and WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs{...} +// +// or: +// +// nil +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput +} + +type webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs + +func WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtr(v *WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput { + return (*webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType)(v) +} + +func (*webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} + +func (i *webAclRuleStatementRateBasedStatementCustomKeyUriPathPtrType) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(context.Background()) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v WebAclRuleStatementRateBasedStatementCustomKeyUriPath) *WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + return &v + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: o.OutputState, + } +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyUriPath) []WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WebAclRuleStatementRateBasedStatementCustomKeyUriPath)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyUriPath] { + return pulumix.Output[*WebAclRuleStatementRateBasedStatementCustomKeyUriPath]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) Elem() WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyUriPath) WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + if v != nil { + return *v + } + var ret WebAclRuleStatementRateBasedStatementCustomKeyUriPath + return ret + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput) +} + +// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput) TextTransformations() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o.ApplyT(func(v *WebAclRuleStatementRateBasedStatementCustomKeyUriPath) []WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + if v == nil { + return nil + } + return v.TextTransformations + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority int `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type string `pulumi:"type"` +} + +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs and WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{...} +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs struct { + // Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Priority pulumi.IntInput `pulumi:"priority"` + // Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Type pulumi.StringInput `pulumi:"type"` +} + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx).OutputState, + } +} + +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput is an input type that accepts WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray and WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput values. +// You can construct a concrete instance of `WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput` via: +// +// WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray{ WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{...} } +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput interface { + pulumi.Input + + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput + ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray []WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(context.Background()) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) +} + +func (i WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: i.ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx).OutputState, + } +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) ToOutput(ctx context.Context) pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: o.OutputState, + } +} + +// Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation) int { return v.Priority }).(pulumi.IntOutput) +} + +// Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation) string { return v.Type }).(pulumi.StringOutput) +} + +type WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput struct{ *pulumi.OutputState } + +func (WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)(nil)).Elem() +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput() WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToWebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutputWithContext(ctx context.Context) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput { + return o +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation] { + return pulumix.Output[[]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation]{ + OutputState: o.OutputState, + } +} + +func (o WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput) Index(i pulumi.IntInput) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + return vs[0].([]WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation)[vs[1].(int)] + }).(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput) } type WebAclRuleStatementRateBasedStatementForwardedIpConfig struct { @@ -40021,8 +44643,67 @@ func (o GetRegexPatternSetRegularExpressionArrayOutput) Index(i pulumi.IntInput) } func init() { + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementNotStatementInput)(nil)).Elem(), WebAclRuleStatementNotStatementArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementNotStatementPtrInput)(nil)).Elem(), WebAclRuleStatementNotStatementArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementOrStatementInput)(nil)).Elem(), WebAclRuleStatementOrStatementArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementOrStatementPtrInput)(nil)).Elem(), WebAclRuleStatementOrStatementArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookieInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyIpInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyIpPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyIpArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementForwardedIpConfigInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebAclRuleStatementRateBasedStatementScopeDownStatementInput)(nil)).Elem(), WebAclRuleStatementRateBasedStatementScopeDownStatementArgs{}) @@ -40490,8 +45171,67 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*WebAclVisibilityConfigPtrInput)(nil)).Elem(), WebAclVisibilityConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRegexPatternSetRegularExpressionInput)(nil)).Elem(), GetRegexPatternSetRegularExpressionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRegexPatternSetRegularExpressionArrayInput)(nil)).Elem(), GetRegexPatternSetRegularExpressionArray{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementNotStatementOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementNotStatementPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementOrStatementOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementOrStatementPtrOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyCookieOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyCookiePtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHeaderOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHeaderPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyIpOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyIpPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespacePtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArrayOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyUriPathOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyUriPathPtrOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationOutput{}) + pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArrayOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementForwardedIpConfigOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementForwardedIpConfigPtrOutput{}) pulumi.RegisterOutputType(WebAclRuleStatementRateBasedStatementScopeDownStatementOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueue.java b/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueue.java index 3c2cac9ef9a..e9c3760ab95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueue.java @@ -130,18 +130,16 @@ public Output arn() { return this.arn; } /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ @Export(name="computeEnvironments", refs={List.class,String.class}, tree="[0,1]") private Output> computeEnvironments; /** - * @return Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @return List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ public Output> computeEnvironments() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueueArgs.java b/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueueArgs.java index 2842daa03ac..f415d06dc13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/JobQueueArgs.java @@ -20,18 +20,16 @@ public final class JobQueueArgs extends com.pulumi.resources.ResourceArgs { public static final JobQueueArgs Empty = new JobQueueArgs(); /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ @Import(name="computeEnvironments", required=true) private Output> computeEnvironments; /** - * @return Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @return List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ public Output> computeEnvironments() { @@ -153,9 +151,8 @@ public Builder(JobQueueArgs defaults) { } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * @@ -166,9 +163,8 @@ public Builder computeEnvironments(Output> computeEnvironments) { } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * @@ -178,9 +174,8 @@ public Builder computeEnvironments(List computeEnvironments) { } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/inputs/JobQueueState.java b/sdk/java/src/main/java/com/pulumi/aws/batch/inputs/JobQueueState.java index be18239a323..e29fb34347e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/inputs/JobQueueState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/inputs/JobQueueState.java @@ -35,18 +35,16 @@ public Optional> arn() { } /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ @Import(name="computeEnvironments") private @Nullable Output> computeEnvironments; /** - * @return Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @return List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * */ public Optional>> computeEnvironments() { @@ -214,9 +212,8 @@ public Builder arn(String arn) { } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * @@ -227,9 +224,8 @@ public Builder computeEnvironments(@Nullable Output> computeEnviron } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * @@ -239,9 +235,8 @@ public Builder computeEnvironments(List computeEnvironments) { } /** - * @param computeEnvironments Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * @param computeEnvironments List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTable.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTable.java new file mode 100644 index 00000000000..068dca0cc36 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTable.java @@ -0,0 +1,270 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.cleanrooms; + +import com.pulumi.aws.Utilities; +import com.pulumi.aws.cleanrooms.ConfiguredTableArgs; +import com.pulumi.aws.cleanrooms.inputs.ConfiguredTableState; +import com.pulumi.aws.cleanrooms.outputs.ConfiguredTableTableReference; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. + * + * ## Example Usage + * ### Configured table with tags + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.cleanrooms.ConfiguredTable; + * import com.pulumi.aws.cleanrooms.ConfiguredTableArgs; + * import com.pulumi.aws.cleanrooms.inputs.ConfiguredTableTableReferenceArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var testConfiguredTable = new ConfiguredTable("testConfiguredTable", ConfiguredTableArgs.builder() + * .allowedColumns( + * "column1", + * "column2", + * "column3") + * .analysisMethod("DIRECT_QUERY") + * .description("I made this table with TODO!") + * .tableReference(ConfiguredTableTableReferenceArgs.builder() + * .databaseName("example_database") + * .tableName("example_table") + * .build()) + * .tags(Map.of("Project", "TODO")) + * .build()); + * + * } + * } + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { + * + * to = aws_cleanrooms_configured_table.table + * + * id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab + * + */ +@ResourceType(type="aws:cleanrooms/configuredTable:ConfiguredTable") +public class ConfiguredTable extends com.pulumi.resources.CustomResource { + /** + * The columns of the references table which will be included in the configured table. + * + */ + @Export(name="allowedColumns", refs={List.class,String.class}, tree="[0,1]") + private Output> allowedColumns; + + /** + * @return The columns of the references table which will be included in the configured table. + * + */ + public Output> allowedColumns() { + return this.allowedColumns; + } + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + @Export(name="analysisMethod", refs={String.class}, tree="[0]") + private Output analysisMethod; + + /** + * @return The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + public Output analysisMethod() { + return this.analysisMethod; + } + /** + * The ARN of the configured table. + * + */ + @Export(name="arn", refs={String.class}, tree="[0]") + private Output arn; + + /** + * @return The ARN of the configured table. + * + */ + public Output arn() { + return this.arn; + } + /** + * The date and time the configured table was created. + * + */ + @Export(name="createTime", refs={String.class}, tree="[0]") + private Output createTime; + + /** + * @return The date and time the configured table was created. + * + */ + public Output createTime() { + return this.createTime; + } + /** + * A description for the configured table. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return A description for the configured table. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } + /** + * The name of the configured table. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return The name of the configured table. + * + */ + public Output name() { + return this.name; + } + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + @Export(name="tableReference", refs={ConfiguredTableTableReference.class}, tree="[0]") + private Output tableReference; + + /** + * @return A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + public Output tableReference() { + return this.tableReference; + } + /** + * Key value pairs which tag the configured table. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return Key value pairs which tag the configured table. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tagsAll; + + public Output> tagsAll() { + return this.tagsAll; + } + /** + * The date and time the configured table was last updated. + * + */ + @Export(name="updateTime", refs={String.class}, tree="[0]") + private Output updateTime; + + /** + * @return The date and time the configured table was last updated. + * + */ + public Output updateTime() { + return this.updateTime; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public ConfiguredTable(String name) { + this(name, ConfiguredTableArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public ConfiguredTable(String name, ConfiguredTableArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public ConfiguredTable(String name, ConfiguredTableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:cleanrooms/configuredTable:ConfiguredTable", name, args == null ? ConfiguredTableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private ConfiguredTable(String name, Output id, @Nullable ConfiguredTableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:cleanrooms/configuredTable:ConfiguredTable", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .additionalSecretOutputs(List.of( + "tagsAll" + )) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static ConfiguredTable get(String name, Output id, @Nullable ConfiguredTableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new ConfiguredTable(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTableArgs.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTableArgs.java new file mode 100644 index 00000000000..f70f09f1006 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/ConfiguredTableArgs.java @@ -0,0 +1,292 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.cleanrooms; + +import com.pulumi.aws.cleanrooms.inputs.ConfiguredTableTableReferenceArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ConfiguredTableArgs extends com.pulumi.resources.ResourceArgs { + + public static final ConfiguredTableArgs Empty = new ConfiguredTableArgs(); + + /** + * The columns of the references table which will be included in the configured table. + * + */ + @Import(name="allowedColumns", required=true) + private Output> allowedColumns; + + /** + * @return The columns of the references table which will be included in the configured table. + * + */ + public Output> allowedColumns() { + return this.allowedColumns; + } + + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + @Import(name="analysisMethod", required=true) + private Output analysisMethod; + + /** + * @return The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + public Output analysisMethod() { + return this.analysisMethod; + } + + /** + * A description for the configured table. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return A description for the configured table. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The name of the configured table. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the configured table. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + @Import(name="tableReference", required=true) + private Output tableReference; + + /** + * @return A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + public Output tableReference() { + return this.tableReference; + } + + /** + * Key value pairs which tag the configured table. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return Key value pairs which tag the configured table. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private ConfiguredTableArgs() {} + + private ConfiguredTableArgs(ConfiguredTableArgs $) { + this.allowedColumns = $.allowedColumns; + this.analysisMethod = $.analysisMethod; + this.description = $.description; + this.name = $.name; + this.tableReference = $.tableReference; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ConfiguredTableArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ConfiguredTableArgs $; + + public Builder() { + $ = new ConfiguredTableArgs(); + } + + public Builder(ConfiguredTableArgs defaults) { + $ = new ConfiguredTableArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(Output> allowedColumns) { + $.allowedColumns = allowedColumns; + return this; + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(List allowedColumns) { + return allowedColumns(Output.of(allowedColumns)); + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(String... allowedColumns) { + return allowedColumns(List.of(allowedColumns)); + } + + /** + * @param analysisMethod The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + * @return builder + * + */ + public Builder analysisMethod(Output analysisMethod) { + $.analysisMethod = analysisMethod; + return this; + } + + /** + * @param analysisMethod The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + * @return builder + * + */ + public Builder analysisMethod(String analysisMethod) { + return analysisMethod(Output.of(analysisMethod)); + } + + /** + * @param description A description for the configured table. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description A description for the configured table. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param name The name of the configured table. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the configured table. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param tableReference A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + * @return builder + * + */ + public Builder tableReference(Output tableReference) { + $.tableReference = tableReference; + return this; + } + + /** + * @param tableReference A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + * @return builder + * + */ + public Builder tableReference(ConfiguredTableTableReferenceArgs tableReference) { + return tableReference(Output.of(tableReference)); + } + + /** + * @param tags Key value pairs which tag the configured table. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags Key value pairs which tag the configured table. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public ConfiguredTableArgs build() { + $.allowedColumns = Objects.requireNonNull($.allowedColumns, "expected parameter 'allowedColumns' to be non-null"); + $.analysisMethod = Objects.requireNonNull($.analysisMethod, "expected parameter 'analysisMethod' to be non-null"); + $.tableReference = Objects.requireNonNull($.tableReference, "expected parameter 'tableReference' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableState.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableState.java new file mode 100644 index 00000000000..b40201c8b0d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableState.java @@ -0,0 +1,445 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.cleanrooms.inputs; + +import com.pulumi.aws.cleanrooms.inputs.ConfiguredTableTableReferenceArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ConfiguredTableState extends com.pulumi.resources.ResourceArgs { + + public static final ConfiguredTableState Empty = new ConfiguredTableState(); + + /** + * The columns of the references table which will be included in the configured table. + * + */ + @Import(name="allowedColumns") + private @Nullable Output> allowedColumns; + + /** + * @return The columns of the references table which will be included in the configured table. + * + */ + public Optional>> allowedColumns() { + return Optional.ofNullable(this.allowedColumns); + } + + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + @Import(name="analysisMethod") + private @Nullable Output analysisMethod; + + /** + * @return The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + */ + public Optional> analysisMethod() { + return Optional.ofNullable(this.analysisMethod); + } + + /** + * The ARN of the configured table. + * + */ + @Import(name="arn") + private @Nullable Output arn; + + /** + * @return The ARN of the configured table. + * + */ + public Optional> arn() { + return Optional.ofNullable(this.arn); + } + + /** + * The date and time the configured table was created. + * + */ + @Import(name="createTime") + private @Nullable Output createTime; + + /** + * @return The date and time the configured table was created. + * + */ + public Optional> createTime() { + return Optional.ofNullable(this.createTime); + } + + /** + * A description for the configured table. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return A description for the configured table. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The name of the configured table. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the configured table. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + @Import(name="tableReference") + private @Nullable Output tableReference; + + /** + * @return A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + */ + public Optional> tableReference() { + return Optional.ofNullable(this.tableReference); + } + + /** + * Key value pairs which tag the configured table. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return Key value pairs which tag the configured table. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Import(name="tagsAll") + private @Nullable Output> tagsAll; + + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Optional>> tagsAll() { + return Optional.ofNullable(this.tagsAll); + } + + /** + * The date and time the configured table was last updated. + * + */ + @Import(name="updateTime") + private @Nullable Output updateTime; + + /** + * @return The date and time the configured table was last updated. + * + */ + public Optional> updateTime() { + return Optional.ofNullable(this.updateTime); + } + + private ConfiguredTableState() {} + + private ConfiguredTableState(ConfiguredTableState $) { + this.allowedColumns = $.allowedColumns; + this.analysisMethod = $.analysisMethod; + this.arn = $.arn; + this.createTime = $.createTime; + this.description = $.description; + this.name = $.name; + this.tableReference = $.tableReference; + this.tags = $.tags; + this.tagsAll = $.tagsAll; + this.updateTime = $.updateTime; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ConfiguredTableState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ConfiguredTableState $; + + public Builder() { + $ = new ConfiguredTableState(); + } + + public Builder(ConfiguredTableState defaults) { + $ = new ConfiguredTableState(Objects.requireNonNull(defaults)); + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(@Nullable Output> allowedColumns) { + $.allowedColumns = allowedColumns; + return this; + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(List allowedColumns) { + return allowedColumns(Output.of(allowedColumns)); + } + + /** + * @param allowedColumns The columns of the references table which will be included in the configured table. + * + * @return builder + * + */ + public Builder allowedColumns(String... allowedColumns) { + return allowedColumns(List.of(allowedColumns)); + } + + /** + * @param analysisMethod The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + * @return builder + * + */ + public Builder analysisMethod(@Nullable Output analysisMethod) { + $.analysisMethod = analysisMethod; + return this; + } + + /** + * @param analysisMethod The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + * + * @return builder + * + */ + public Builder analysisMethod(String analysisMethod) { + return analysisMethod(Output.of(analysisMethod)); + } + + /** + * @param arn The ARN of the configured table. + * + * @return builder + * + */ + public Builder arn(@Nullable Output arn) { + $.arn = arn; + return this; + } + + /** + * @param arn The ARN of the configured table. + * + * @return builder + * + */ + public Builder arn(String arn) { + return arn(Output.of(arn)); + } + + /** + * @param createTime The date and time the configured table was created. + * + * @return builder + * + */ + public Builder createTime(@Nullable Output createTime) { + $.createTime = createTime; + return this; + } + + /** + * @param createTime The date and time the configured table was created. + * + * @return builder + * + */ + public Builder createTime(String createTime) { + return createTime(Output.of(createTime)); + } + + /** + * @param description A description for the configured table. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description A description for the configured table. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param name The name of the configured table. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the configured table. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param tableReference A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + * @return builder + * + */ + public Builder tableReference(@Nullable Output tableReference) { + $.tableReference = tableReference; + return this; + } + + /** + * @param tableReference A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + * + * @return builder + * + */ + public Builder tableReference(ConfiguredTableTableReferenceArgs tableReference) { + return tableReference(Output.of(tableReference)); + } + + /** + * @param tags Key value pairs which tag the configured table. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags Key value pairs which tag the configured table. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(@Nullable Output> tagsAll) { + $.tagsAll = tagsAll; + return this; + } + + /** + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(Map tagsAll) { + return tagsAll(Output.of(tagsAll)); + } + + /** + * @param updateTime The date and time the configured table was last updated. + * + * @return builder + * + */ + public Builder updateTime(@Nullable Output updateTime) { + $.updateTime = updateTime; + return this; + } + + /** + * @param updateTime The date and time the configured table was last updated. + * + * @return builder + * + */ + public Builder updateTime(String updateTime) { + return updateTime(Output.of(updateTime)); + } + + public ConfiguredTableState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableTableReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableTableReferenceArgs.java new file mode 100644 index 00000000000..ef306696720 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/inputs/ConfiguredTableTableReferenceArgs.java @@ -0,0 +1,80 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.cleanrooms.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class ConfiguredTableTableReferenceArgs extends com.pulumi.resources.ResourceArgs { + + public static final ConfiguredTableTableReferenceArgs Empty = new ConfiguredTableTableReferenceArgs(); + + @Import(name="databaseName", required=true) + private Output databaseName; + + public Output databaseName() { + return this.databaseName; + } + + @Import(name="tableName", required=true) + private Output tableName; + + public Output tableName() { + return this.tableName; + } + + private ConfiguredTableTableReferenceArgs() {} + + private ConfiguredTableTableReferenceArgs(ConfiguredTableTableReferenceArgs $) { + this.databaseName = $.databaseName; + this.tableName = $.tableName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ConfiguredTableTableReferenceArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ConfiguredTableTableReferenceArgs $; + + public Builder() { + $ = new ConfiguredTableTableReferenceArgs(); + } + + public Builder(ConfiguredTableTableReferenceArgs defaults) { + $ = new ConfiguredTableTableReferenceArgs(Objects.requireNonNull(defaults)); + } + + public Builder databaseName(Output databaseName) { + $.databaseName = databaseName; + return this; + } + + public Builder databaseName(String databaseName) { + return databaseName(Output.of(databaseName)); + } + + public Builder tableName(Output tableName) { + $.tableName = tableName; + return this; + } + + public Builder tableName(String tableName) { + return tableName(Output.of(tableName)); + } + + public ConfiguredTableTableReferenceArgs build() { + $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); + $.tableName = Objects.requireNonNull($.tableName, "expected parameter 'tableName' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/outputs/ConfiguredTableTableReference.java b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/outputs/ConfiguredTableTableReference.java new file mode 100644 index 00000000000..670d4f3bedb --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/cleanrooms/outputs/ConfiguredTableTableReference.java @@ -0,0 +1,58 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.cleanrooms.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class ConfiguredTableTableReference { + private String databaseName; + private String tableName; + + private ConfiguredTableTableReference() {} + public String databaseName() { + return this.databaseName; + } + public String tableName() { + return this.tableName; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ConfiguredTableTableReference defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String databaseName; + private String tableName; + public Builder() {} + public Builder(ConfiguredTableTableReference defaults) { + Objects.requireNonNull(defaults); + this.databaseName = defaults.databaseName; + this.tableName = defaults.tableName; + } + + @CustomType.Setter + public Builder databaseName(String databaseName) { + this.databaseName = Objects.requireNonNull(databaseName); + return this; + } + @CustomType.Setter + public Builder tableName(String tableName) { + this.tableName = Objects.requireNonNull(tableName); + return this; + } + public ConfiguredTableTableReference build() { + final var o = new ConfiguredTableTableReference(); + o.databaseName = databaseName; + o.tableName = tableName; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2.java b/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2.java index 3fc240a7587..ea4b7bd3c7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2.java @@ -203,9 +203,11 @@ public Output> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ @Export(name="imageId", refs={String.class}, tree="[0]") @@ -216,9 +218,11 @@ public Output> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ public Output> imageId() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2Args.java b/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2Args.java index b82b3f4db63..71839983241 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2Args.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloud9/EnvironmentEC2Args.java @@ -67,9 +67,11 @@ public Optional> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ @Import(name="imageId") @@ -80,9 +82,11 @@ public Optional> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ public Optional> imageId() { @@ -264,9 +268,11 @@ public Builder description(String description) { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * * @return builder * @@ -281,9 +287,11 @@ public Builder imageId(@Nullable Output imageId) { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloud9/inputs/EnvironmentEC2State.java b/sdk/java/src/main/java/com/pulumi/aws/cloud9/inputs/EnvironmentEC2State.java index 7746ee2e083..e7fad5c5bb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloud9/inputs/EnvironmentEC2State.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloud9/inputs/EnvironmentEC2State.java @@ -82,9 +82,11 @@ public Optional> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ @Import(name="imageId") @@ -95,9 +97,11 @@ public Optional> description() { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * */ public Optional> imageId() { @@ -341,9 +345,11 @@ public Builder description(String description) { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * * @return builder * @@ -358,9 +364,11 @@ public Builder imageId(@Nullable Output imageId) { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/Distribution.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/Distribution.java index 471aee6f495..78800ec5da3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/Distribution.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/Distribution.java @@ -408,14 +408,14 @@ public Output> comment() { * */ @Export(name="continuousDeploymentPolicyId", refs={String.class}, tree="[0]") - private Output continuousDeploymentPolicyId; + private Output continuousDeploymentPolicyId; /** * @return Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `aws.cloudfront.ContinuousDeploymentPolicy` resource for additional details. * */ - public Output> continuousDeploymentPolicyId() { - return Codegen.optional(this.continuousDeploymentPolicyId); + public Output continuousDeploymentPolicyId() { + return this.continuousDeploymentPolicyId; } /** * One or more custom error response elements (multiples allowed). diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/inputs/DistributionOriginArgs.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/inputs/DistributionOriginArgs.java index fc775c71dcc..9982663a00c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/inputs/DistributionOriginArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/inputs/DistributionOriginArgs.java @@ -142,14 +142,14 @@ public Optional> originPath() { } /** - * The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * */ @Import(name="originShield") private @Nullable Output originShield; /** - * @return The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * @return CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * */ public Optional> originShield() { @@ -157,14 +157,14 @@ public Optional> originShield() { } /** - * The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + * CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. * */ @Import(name="s3OriginConfig") private @Nullable Output s3OriginConfig; /** - * @return The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + * @return CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. * */ public Optional> s3OriginConfig() { @@ -383,7 +383,7 @@ public Builder originPath(String originPath) { } /** - * @param originShield The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * @param originShield CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * * @return builder * @@ -394,7 +394,7 @@ public Builder originShield(@Nullable Output } /** - * @param originShield The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * @param originShield CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * * @return builder * @@ -404,7 +404,7 @@ public Builder originShield(DistributionOriginOriginShieldArgs originShield) { } /** - * @param s3OriginConfig The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + * @param s3OriginConfig CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. * * @return builder * @@ -415,7 +415,7 @@ public Builder s3OriginConfig(@Nullable Output enabled() { } /** - * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * */ - @Import(name="originShieldRegion", required=true) - private Output originShieldRegion; + @Import(name="originShieldRegion") + private @Nullable Output originShieldRegion; /** - * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * */ - public Output originShieldRegion() { - return this.originShieldRegion; + public Optional> originShieldRegion() { + return Optional.ofNullable(this.originShieldRegion); } private DistributionOriginOriginShieldArgs() {} @@ -91,18 +93,18 @@ public Builder enabled(Boolean enabled) { } /** - * @param originShieldRegion AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * @param originShieldRegion AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * * @return builder * */ - public Builder originShieldRegion(Output originShieldRegion) { + public Builder originShieldRegion(@Nullable Output originShieldRegion) { $.originShieldRegion = originShieldRegion; return this; } /** - * @param originShieldRegion AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * @param originShieldRegion AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * * @return builder * @@ -113,7 +115,6 @@ public Builder originShieldRegion(String originShieldRegion) { public DistributionOriginOriginShieldArgs build() { $.enabled = Objects.requireNonNull($.enabled, "expected parameter 'enabled' to be non-null"); - $.originShieldRegion = Objects.requireNonNull($.originShieldRegion, "expected parameter 'originShieldRegion' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java index 71d3077f075..2a825bb9b33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java @@ -58,12 +58,12 @@ public final class DistributionOrigin { */ private @Nullable String originPath; /** - * @return The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * @return CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * */ private @Nullable DistributionOriginOriginShield originShield; /** - * @return The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + * @return CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. * */ private @Nullable DistributionOriginS3OriginConfig s3OriginConfig; @@ -126,14 +126,14 @@ public Optional originPath() { return Optional.ofNullable(this.originPath); } /** - * @return The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * @return CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * */ public Optional originShield() { return Optional.ofNullable(this.originShield); } /** - * @return The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + * @return CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. * */ public Optional s3OriginConfig() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java index 6e0606125ea..f6942888683 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java @@ -7,6 +7,8 @@ import java.lang.Boolean; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class DistributionOriginOriginShield { @@ -16,10 +18,10 @@ public final class DistributionOriginOriginShield { */ private Boolean enabled; /** - * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * */ - private String originShieldRegion; + private @Nullable String originShieldRegion; private DistributionOriginOriginShield() {} /** @@ -30,11 +32,11 @@ public Boolean enabled() { return this.enabled; } /** - * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * @return AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. * */ - public String originShieldRegion() { - return this.originShieldRegion; + public Optional originShieldRegion() { + return Optional.ofNullable(this.originShieldRegion); } public static Builder builder() { @@ -47,7 +49,7 @@ public static Builder builder(DistributionOriginOriginShield defaults) { @CustomType.Builder public static final class Builder { private Boolean enabled; - private String originShieldRegion; + private @Nullable String originShieldRegion; public Builder() {} public Builder(DistributionOriginOriginShield defaults) { Objects.requireNonNull(defaults); @@ -61,8 +63,8 @@ public Builder enabled(Boolean enabled) { return this; } @CustomType.Setter - public Builder originShieldRegion(String originShieldRegion) { - this.originShieldRegion = Objects.requireNonNull(originShieldRegion); + public Builder originShieldRegion(@Nullable String originShieldRegion) { + this.originShieldRegion = originShieldRegion; return this; } public DistributionOriginOriginShield build() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfig.java index 7c841f126f5..0c831ca0247 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfig.java @@ -263,14 +263,14 @@ public Output instanceId() { return this.instanceId; } /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ @Export(name="resourceType", refs={String.class}, tree="[0]") private Output resourceType; /** - * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ public Output resourceType() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfigArgs.java index a4d5f341c71..f43642b3986 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/InstanceStorageConfigArgs.java @@ -30,14 +30,14 @@ public Output instanceId() { } /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ @Import(name="resourceType", required=true) private Output resourceType; /** - * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ public Output resourceType() { @@ -107,7 +107,7 @@ public Builder instanceId(String instanceId) { } /** - * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * @@ -118,7 +118,7 @@ public Builder resourceType(Output resourceType) { } /** - * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigArgs.java index 7aad093d036..f9ec0545de6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigArgs.java @@ -44,14 +44,14 @@ public Output instanceId() { } /** - * A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ @Import(name="resourceType", required=true) private Output resourceType; /** - * @return A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ public Output resourceType() { @@ -127,7 +127,7 @@ public Builder instanceId(String instanceId) { } /** - * @param resourceType A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * @@ -138,7 +138,7 @@ public Builder resourceType(Output resourceType) { } /** - * @param resourceType A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigPlainArgs.java b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigPlainArgs.java index 91c49ab1eb0..0d4d430cf36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/GetInstanceStorageConfigPlainArgs.java @@ -43,14 +43,14 @@ public String instanceId() { } /** - * A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ @Import(name="resourceType", required=true) private String resourceType; /** - * @return A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ public String resourceType() { @@ -106,7 +106,7 @@ public Builder instanceId(String instanceId) { } /** - * @param resourceType A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/InstanceStorageConfigState.java b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/InstanceStorageConfigState.java index fbcd9d426d8..a3de7a472bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/InstanceStorageConfigState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/inputs/InstanceStorageConfigState.java @@ -47,14 +47,14 @@ public Optional> instanceId() { } /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ @Import(name="resourceType") private @Nullable Output resourceType; /** - * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @return A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * */ public Optional> resourceType() { @@ -146,7 +146,7 @@ public Builder instanceId(String instanceId) { } /** - * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * @@ -157,7 +157,7 @@ public Builder resourceType(@Nullable Output resourceType) { } /** - * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * @param resourceType A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfig.java new file mode 100644 index 00000000000..ba347dcd834 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfig.java @@ -0,0 +1,322 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.dms; + +import com.pulumi.aws.Utilities; +import com.pulumi.aws.dms.ReplicationConfigArgs; +import com.pulumi.aws.dms.inputs.ReplicationConfigState; +import com.pulumi.aws.dms.outputs.ReplicationConfigComputeConfig; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Provides a DMS Serverless replication config resource. + * + * > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `start_replication` to resume the replication afterwards. + * + * ## Example Usage + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.dms.ReplicationConfig; + * import com.pulumi.aws.dms.ReplicationConfigArgs; + * import com.pulumi.aws.dms.inputs.ReplicationConfigComputeConfigArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var name = new ReplicationConfig("name", ReplicationConfigArgs.builder() + * .replicationConfigIdentifier("test-dms-serverless-replication-tf") + * .resourceIdentifier("test-dms-serverless-replication-tf") + * .replicationType("cdc") + * .sourceEndpointArn(aws_dms_endpoint.source().endpoint_arn()) + * .targetEndpointArn(aws_dms_endpoint.target().endpoint_arn()) + * .tableMappings(""" + * { + * "rules":[{"rule-type":"selection","rule-id":"1","rule-name":"1","object-locator":{"schema-name":"%%","table-name":"%%", "rule-action":"include"}] + * } + * """) + * .startReplication(true) + * .computeConfig(ReplicationConfigComputeConfigArgs.builder() + * .replicationSubnetGroupId(aws_dms_replication_subnet_group.default().replication_subnet_group_id()) + * .maxCapacityUnits("64") + * .minCapacityUnits("2") + * .preferredMaintenanceWindow("sun:23:45-mon:00:30") + * .build()) + * .build()); + * + * } + * } + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { + * + * to = aws_dms_replication_config.example + * + * id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI + * + */ +@ResourceType(type="aws:dms/replicationConfig:ReplicationConfig") +public class ReplicationConfig extends com.pulumi.resources.CustomResource { + /** + * The Amazon Resource Name (ARN) for the serverless replication config. + * + */ + @Export(name="arn", refs={String.class}, tree="[0]") + private Output arn; + + /** + * @return The Amazon Resource Name (ARN) for the serverless replication config. + * + */ + public Output arn() { + return this.arn; + } + /** + * Configuration block for provisioning an DMS Serverless replication. + * + */ + @Export(name="computeConfig", refs={ReplicationConfigComputeConfig.class}, tree="[0]") + private Output computeConfig; + + /** + * @return Configuration block for provisioning an DMS Serverless replication. + * + */ + public Output computeConfig() { + return this.computeConfig; + } + /** + * Unique identifier that you want to use to create the config. + * + */ + @Export(name="replicationConfigIdentifier", refs={String.class}, tree="[0]") + private Output replicationConfigIdentifier; + + /** + * @return Unique identifier that you want to use to create the config. + * + */ + public Output replicationConfigIdentifier() { + return this.replicationConfigIdentifier; + } + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + @Export(name="replicationSettings", refs={String.class}, tree="[0]") + private Output replicationSettings; + + /** + * @return An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + public Output replicationSettings() { + return this.replicationSettings; + } + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + @Export(name="replicationType", refs={String.class}, tree="[0]") + private Output replicationType; + + /** + * @return The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + public Output replicationType() { + return this.replicationType; + } + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + @Export(name="resourceIdentifier", refs={String.class}, tree="[0]") + private Output resourceIdentifier; + + /** + * @return Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + public Output resourceIdentifier() { + return this.resourceIdentifier; + } + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + @Export(name="sourceEndpointArn", refs={String.class}, tree="[0]") + private Output sourceEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + public Output sourceEndpointArn() { + return this.sourceEndpointArn; + } + /** + * Whether to run or stop the serverless replication, default is false. + * + */ + @Export(name="startReplication", refs={Boolean.class}, tree="[0]") + private Output startReplication; + + /** + * @return Whether to run or stop the serverless replication, default is false. + * + */ + public Output> startReplication() { + return Codegen.optional(this.startReplication); + } + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + @Export(name="supplementalSettings", refs={String.class}, tree="[0]") + private Output supplementalSettings; + + /** + * @return JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + public Output> supplementalSettings() { + return Codegen.optional(this.supplementalSettings); + } + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + @Export(name="tableMappings", refs={String.class}, tree="[0]") + private Output tableMappings; + + /** + * @return An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + public Output tableMappings() { + return this.tableMappings; + } + /** + * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tagsAll; + + /** + * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + */ + public Output> tagsAll() { + return this.tagsAll; + } + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + @Export(name="targetEndpointArn", refs={String.class}, tree="[0]") + private Output targetEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + public Output targetEndpointArn() { + return this.targetEndpointArn; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public ReplicationConfig(String name) { + this(name, ReplicationConfigArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public ReplicationConfig(String name, ReplicationConfigArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public ReplicationConfig(String name, ReplicationConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:dms/replicationConfig:ReplicationConfig", name, args == null ? ReplicationConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private ReplicationConfig(String name, Output id, @Nullable ReplicationConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:dms/replicationConfig:ReplicationConfig", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .additionalSecretOutputs(List.of( + "tagsAll" + )) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static ReplicationConfig get(String name, Output id, @Nullable ReplicationConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new ReplicationConfig(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfigArgs.java new file mode 100644 index 00000000000..77f418417ac --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/ReplicationConfigArgs.java @@ -0,0 +1,462 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.dms; + +import com.pulumi.aws.dms.inputs.ReplicationConfigComputeConfigArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ReplicationConfigArgs extends com.pulumi.resources.ResourceArgs { + + public static final ReplicationConfigArgs Empty = new ReplicationConfigArgs(); + + /** + * Configuration block for provisioning an DMS Serverless replication. + * + */ + @Import(name="computeConfig", required=true) + private Output computeConfig; + + /** + * @return Configuration block for provisioning an DMS Serverless replication. + * + */ + public Output computeConfig() { + return this.computeConfig; + } + + /** + * Unique identifier that you want to use to create the config. + * + */ + @Import(name="replicationConfigIdentifier", required=true) + private Output replicationConfigIdentifier; + + /** + * @return Unique identifier that you want to use to create the config. + * + */ + public Output replicationConfigIdentifier() { + return this.replicationConfigIdentifier; + } + + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + @Import(name="replicationSettings") + private @Nullable Output replicationSettings; + + /** + * @return An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + public Optional> replicationSettings() { + return Optional.ofNullable(this.replicationSettings); + } + + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + @Import(name="replicationType", required=true) + private Output replicationType; + + /** + * @return The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + public Output replicationType() { + return this.replicationType; + } + + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + @Import(name="resourceIdentifier") + private @Nullable Output resourceIdentifier; + + /** + * @return Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + public Optional> resourceIdentifier() { + return Optional.ofNullable(this.resourceIdentifier); + } + + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + @Import(name="sourceEndpointArn", required=true) + private Output sourceEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + public Output sourceEndpointArn() { + return this.sourceEndpointArn; + } + + /** + * Whether to run or stop the serverless replication, default is false. + * + */ + @Import(name="startReplication") + private @Nullable Output startReplication; + + /** + * @return Whether to run or stop the serverless replication, default is false. + * + */ + public Optional> startReplication() { + return Optional.ofNullable(this.startReplication); + } + + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + @Import(name="supplementalSettings") + private @Nullable Output supplementalSettings; + + /** + * @return JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + public Optional> supplementalSettings() { + return Optional.ofNullable(this.supplementalSettings); + } + + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + @Import(name="tableMappings", required=true) + private Output tableMappings; + + /** + * @return An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + public Output tableMappings() { + return this.tableMappings; + } + + /** + * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + @Import(name="targetEndpointArn", required=true) + private Output targetEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + public Output targetEndpointArn() { + return this.targetEndpointArn; + } + + private ReplicationConfigArgs() {} + + private ReplicationConfigArgs(ReplicationConfigArgs $) { + this.computeConfig = $.computeConfig; + this.replicationConfigIdentifier = $.replicationConfigIdentifier; + this.replicationSettings = $.replicationSettings; + this.replicationType = $.replicationType; + this.resourceIdentifier = $.resourceIdentifier; + this.sourceEndpointArn = $.sourceEndpointArn; + this.startReplication = $.startReplication; + this.supplementalSettings = $.supplementalSettings; + this.tableMappings = $.tableMappings; + this.tags = $.tags; + this.targetEndpointArn = $.targetEndpointArn; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ReplicationConfigArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ReplicationConfigArgs $; + + public Builder() { + $ = new ReplicationConfigArgs(); + } + + public Builder(ReplicationConfigArgs defaults) { + $ = new ReplicationConfigArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param computeConfig Configuration block for provisioning an DMS Serverless replication. + * + * @return builder + * + */ + public Builder computeConfig(Output computeConfig) { + $.computeConfig = computeConfig; + return this; + } + + /** + * @param computeConfig Configuration block for provisioning an DMS Serverless replication. + * + * @return builder + * + */ + public Builder computeConfig(ReplicationConfigComputeConfigArgs computeConfig) { + return computeConfig(Output.of(computeConfig)); + } + + /** + * @param replicationConfigIdentifier Unique identifier that you want to use to create the config. + * + * @return builder + * + */ + public Builder replicationConfigIdentifier(Output replicationConfigIdentifier) { + $.replicationConfigIdentifier = replicationConfigIdentifier; + return this; + } + + /** + * @param replicationConfigIdentifier Unique identifier that you want to use to create the config. + * + * @return builder + * + */ + public Builder replicationConfigIdentifier(String replicationConfigIdentifier) { + return replicationConfigIdentifier(Output.of(replicationConfigIdentifier)); + } + + /** + * @param replicationSettings An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + * @return builder + * + */ + public Builder replicationSettings(@Nullable Output replicationSettings) { + $.replicationSettings = replicationSettings; + return this; + } + + /** + * @param replicationSettings An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + * @return builder + * + */ + public Builder replicationSettings(String replicationSettings) { + return replicationSettings(Output.of(replicationSettings)); + } + + /** + * @param replicationType The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + * @return builder + * + */ + public Builder replicationType(Output replicationType) { + $.replicationType = replicationType; + return this; + } + + /** + * @param replicationType The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + * @return builder + * + */ + public Builder replicationType(String replicationType) { + return replicationType(Output.of(replicationType)); + } + + /** + * @param resourceIdentifier Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + * @return builder + * + */ + public Builder resourceIdentifier(@Nullable Output resourceIdentifier) { + $.resourceIdentifier = resourceIdentifier; + return this; + } + + /** + * @param resourceIdentifier Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + * @return builder + * + */ + public Builder resourceIdentifier(String resourceIdentifier) { + return resourceIdentifier(Output.of(resourceIdentifier)); + } + + /** + * @param sourceEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + * @return builder + * + */ + public Builder sourceEndpointArn(Output sourceEndpointArn) { + $.sourceEndpointArn = sourceEndpointArn; + return this; + } + + /** + * @param sourceEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + * @return builder + * + */ + public Builder sourceEndpointArn(String sourceEndpointArn) { + return sourceEndpointArn(Output.of(sourceEndpointArn)); + } + + /** + * @param startReplication Whether to run or stop the serverless replication, default is false. + * + * @return builder + * + */ + public Builder startReplication(@Nullable Output startReplication) { + $.startReplication = startReplication; + return this; + } + + /** + * @param startReplication Whether to run or stop the serverless replication, default is false. + * + * @return builder + * + */ + public Builder startReplication(Boolean startReplication) { + return startReplication(Output.of(startReplication)); + } + + /** + * @param supplementalSettings JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + * @return builder + * + */ + public Builder supplementalSettings(@Nullable Output supplementalSettings) { + $.supplementalSettings = supplementalSettings; + return this; + } + + /** + * @param supplementalSettings JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + * @return builder + * + */ + public Builder supplementalSettings(String supplementalSettings) { + return supplementalSettings(Output.of(supplementalSettings)); + } + + /** + * @param tableMappings An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + * @return builder + * + */ + public Builder tableMappings(Output tableMappings) { + $.tableMappings = tableMappings; + return this; + } + + /** + * @param tableMappings An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + * @return builder + * + */ + public Builder tableMappings(String tableMappings) { + return tableMappings(Output.of(tableMappings)); + } + + /** + * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param targetEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + * @return builder + * + */ + public Builder targetEndpointArn(Output targetEndpointArn) { + $.targetEndpointArn = targetEndpointArn; + return this; + } + + /** + * @param targetEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + * @return builder + * + */ + public Builder targetEndpointArn(String targetEndpointArn) { + return targetEndpointArn(Output.of(targetEndpointArn)); + } + + public ReplicationConfigArgs build() { + $.computeConfig = Objects.requireNonNull($.computeConfig, "expected parameter 'computeConfig' to be non-null"); + $.replicationConfigIdentifier = Objects.requireNonNull($.replicationConfigIdentifier, "expected parameter 'replicationConfigIdentifier' to be non-null"); + $.replicationType = Objects.requireNonNull($.replicationType, "expected parameter 'replicationType' to be non-null"); + $.sourceEndpointArn = Objects.requireNonNull($.sourceEndpointArn, "expected parameter 'sourceEndpointArn' to be non-null"); + $.tableMappings = Objects.requireNonNull($.tableMappings, "expected parameter 'tableMappings' to be non-null"); + $.targetEndpointArn = Objects.requireNonNull($.targetEndpointArn, "expected parameter 'targetEndpointArn' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigComputeConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigComputeConfigArgs.java new file mode 100644 index 00000000000..35d1136a253 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigComputeConfigArgs.java @@ -0,0 +1,413 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.dms.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ReplicationConfigComputeConfigArgs extends com.pulumi.resources.ResourceArgs { + + public static final ReplicationConfigComputeConfigArgs Empty = new ReplicationConfigComputeConfigArgs(); + + /** + * The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + */ + @Import(name="availabilityZone") + private @Nullable Output availabilityZone; + + /** + * @return The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + */ + public Optional> availabilityZone() { + return Optional.ofNullable(this.availabilityZone); + } + + /** + * A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + */ + @Import(name="dnsNameServers") + private @Nullable Output dnsNameServers; + + /** + * @return A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + */ + public Optional> dnsNameServers() { + return Optional.ofNullable(this.dnsNameServers); + } + + /** + * An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + */ + @Import(name="kmsKeyId") + private @Nullable Output kmsKeyId; + + /** + * @return An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + */ + public Optional> kmsKeyId() { + return Optional.ofNullable(this.kmsKeyId); + } + + /** + * Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + */ + @Import(name="maxCapacityUnits") + private @Nullable Output maxCapacityUnits; + + /** + * @return Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + */ + public Optional> maxCapacityUnits() { + return Optional.ofNullable(this.maxCapacityUnits); + } + + /** + * Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + */ + @Import(name="minCapacityUnits") + private @Nullable Output minCapacityUnits; + + /** + * @return Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + */ + public Optional> minCapacityUnits() { + return Optional.ofNullable(this.minCapacityUnits); + } + + /** + * Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + */ + @Import(name="multiAz") + private @Nullable Output multiAz; + + /** + * @return Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + */ + public Optional> multiAz() { + return Optional.ofNullable(this.multiAz); + } + + /** + * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + */ + @Import(name="preferredMaintenanceWindow") + private @Nullable Output preferredMaintenanceWindow; + + /** + * @return The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + */ + public Optional> preferredMaintenanceWindow() { + return Optional.ofNullable(this.preferredMaintenanceWindow); + } + + /** + * Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + */ + @Import(name="replicationSubnetGroupId", required=true) + private Output replicationSubnetGroupId; + + /** + * @return Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + */ + public Output replicationSubnetGroupId() { + return this.replicationSubnetGroupId; + } + + /** + * Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + */ + @Import(name="vpcSecurityGroupIds") + private @Nullable Output> vpcSecurityGroupIds; + + /** + * @return Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + */ + public Optional>> vpcSecurityGroupIds() { + return Optional.ofNullable(this.vpcSecurityGroupIds); + } + + private ReplicationConfigComputeConfigArgs() {} + + private ReplicationConfigComputeConfigArgs(ReplicationConfigComputeConfigArgs $) { + this.availabilityZone = $.availabilityZone; + this.dnsNameServers = $.dnsNameServers; + this.kmsKeyId = $.kmsKeyId; + this.maxCapacityUnits = $.maxCapacityUnits; + this.minCapacityUnits = $.minCapacityUnits; + this.multiAz = $.multiAz; + this.preferredMaintenanceWindow = $.preferredMaintenanceWindow; + this.replicationSubnetGroupId = $.replicationSubnetGroupId; + this.vpcSecurityGroupIds = $.vpcSecurityGroupIds; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ReplicationConfigComputeConfigArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ReplicationConfigComputeConfigArgs $; + + public Builder() { + $ = new ReplicationConfigComputeConfigArgs(); + } + + public Builder(ReplicationConfigComputeConfigArgs defaults) { + $ = new ReplicationConfigComputeConfigArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param availabilityZone The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + * @return builder + * + */ + public Builder availabilityZone(@Nullable Output availabilityZone) { + $.availabilityZone = availabilityZone; + return this; + } + + /** + * @param availabilityZone The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + * @return builder + * + */ + public Builder availabilityZone(String availabilityZone) { + return availabilityZone(Output.of(availabilityZone)); + } + + /** + * @param dnsNameServers A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + * @return builder + * + */ + public Builder dnsNameServers(@Nullable Output dnsNameServers) { + $.dnsNameServers = dnsNameServers; + return this; + } + + /** + * @param dnsNameServers A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + * @return builder + * + */ + public Builder dnsNameServers(String dnsNameServers) { + return dnsNameServers(Output.of(dnsNameServers)); + } + + /** + * @param kmsKeyId An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + * @return builder + * + */ + public Builder kmsKeyId(@Nullable Output kmsKeyId) { + $.kmsKeyId = kmsKeyId; + return this; + } + + /** + * @param kmsKeyId An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + * @return builder + * + */ + public Builder kmsKeyId(String kmsKeyId) { + return kmsKeyId(Output.of(kmsKeyId)); + } + + /** + * @param maxCapacityUnits Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + * @return builder + * + */ + public Builder maxCapacityUnits(@Nullable Output maxCapacityUnits) { + $.maxCapacityUnits = maxCapacityUnits; + return this; + } + + /** + * @param maxCapacityUnits Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + * @return builder + * + */ + public Builder maxCapacityUnits(Integer maxCapacityUnits) { + return maxCapacityUnits(Output.of(maxCapacityUnits)); + } + + /** + * @param minCapacityUnits Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + * @return builder + * + */ + public Builder minCapacityUnits(@Nullable Output minCapacityUnits) { + $.minCapacityUnits = minCapacityUnits; + return this; + } + + /** + * @param minCapacityUnits Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + * @return builder + * + */ + public Builder minCapacityUnits(Integer minCapacityUnits) { + return minCapacityUnits(Output.of(minCapacityUnits)); + } + + /** + * @param multiAz Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + * @return builder + * + */ + public Builder multiAz(@Nullable Output multiAz) { + $.multiAz = multiAz; + return this; + } + + /** + * @param multiAz Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + * @return builder + * + */ + public Builder multiAz(Boolean multiAz) { + return multiAz(Output.of(multiAz)); + } + + /** + * @param preferredMaintenanceWindow The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + * @return builder + * + */ + public Builder preferredMaintenanceWindow(@Nullable Output preferredMaintenanceWindow) { + $.preferredMaintenanceWindow = preferredMaintenanceWindow; + return this; + } + + /** + * @param preferredMaintenanceWindow The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + * @return builder + * + */ + public Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) { + return preferredMaintenanceWindow(Output.of(preferredMaintenanceWindow)); + } + + /** + * @param replicationSubnetGroupId Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + * @return builder + * + */ + public Builder replicationSubnetGroupId(Output replicationSubnetGroupId) { + $.replicationSubnetGroupId = replicationSubnetGroupId; + return this; + } + + /** + * @param replicationSubnetGroupId Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + * @return builder + * + */ + public Builder replicationSubnetGroupId(String replicationSubnetGroupId) { + return replicationSubnetGroupId(Output.of(replicationSubnetGroupId)); + } + + /** + * @param vpcSecurityGroupIds Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + * @return builder + * + */ + public Builder vpcSecurityGroupIds(@Nullable Output> vpcSecurityGroupIds) { + $.vpcSecurityGroupIds = vpcSecurityGroupIds; + return this; + } + + /** + * @param vpcSecurityGroupIds Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + * @return builder + * + */ + public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { + return vpcSecurityGroupIds(Output.of(vpcSecurityGroupIds)); + } + + /** + * @param vpcSecurityGroupIds Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + * @return builder + * + */ + public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { + return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); + } + + public ReplicationConfigComputeConfigArgs build() { + $.replicationSubnetGroupId = Objects.requireNonNull($.replicationSubnetGroupId, "expected parameter 'replicationSubnetGroupId' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigState.java b/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigState.java new file mode 100644 index 00000000000..9de0c1c0639 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/inputs/ReplicationConfigState.java @@ -0,0 +1,546 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.dms.inputs; + +import com.pulumi.aws.dms.inputs.ReplicationConfigComputeConfigArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ReplicationConfigState extends com.pulumi.resources.ResourceArgs { + + public static final ReplicationConfigState Empty = new ReplicationConfigState(); + + /** + * The Amazon Resource Name (ARN) for the serverless replication config. + * + */ + @Import(name="arn") + private @Nullable Output arn; + + /** + * @return The Amazon Resource Name (ARN) for the serverless replication config. + * + */ + public Optional> arn() { + return Optional.ofNullable(this.arn); + } + + /** + * Configuration block for provisioning an DMS Serverless replication. + * + */ + @Import(name="computeConfig") + private @Nullable Output computeConfig; + + /** + * @return Configuration block for provisioning an DMS Serverless replication. + * + */ + public Optional> computeConfig() { + return Optional.ofNullable(this.computeConfig); + } + + /** + * Unique identifier that you want to use to create the config. + * + */ + @Import(name="replicationConfigIdentifier") + private @Nullable Output replicationConfigIdentifier; + + /** + * @return Unique identifier that you want to use to create the config. + * + */ + public Optional> replicationConfigIdentifier() { + return Optional.ofNullable(this.replicationConfigIdentifier); + } + + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + @Import(name="replicationSettings") + private @Nullable Output replicationSettings; + + /** + * @return An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + */ + public Optional> replicationSettings() { + return Optional.ofNullable(this.replicationSettings); + } + + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + @Import(name="replicationType") + private @Nullable Output replicationType; + + /** + * @return The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + */ + public Optional> replicationType() { + return Optional.ofNullable(this.replicationType); + } + + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + @Import(name="resourceIdentifier") + private @Nullable Output resourceIdentifier; + + /** + * @return Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + */ + public Optional> resourceIdentifier() { + return Optional.ofNullable(this.resourceIdentifier); + } + + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + @Import(name="sourceEndpointArn") + private @Nullable Output sourceEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + */ + public Optional> sourceEndpointArn() { + return Optional.ofNullable(this.sourceEndpointArn); + } + + /** + * Whether to run or stop the serverless replication, default is false. + * + */ + @Import(name="startReplication") + private @Nullable Output startReplication; + + /** + * @return Whether to run or stop the serverless replication, default is false. + * + */ + public Optional> startReplication() { + return Optional.ofNullable(this.startReplication); + } + + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + @Import(name="supplementalSettings") + private @Nullable Output supplementalSettings; + + /** + * @return JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + */ + public Optional> supplementalSettings() { + return Optional.ofNullable(this.supplementalSettings); + } + + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + @Import(name="tableMappings") + private @Nullable Output tableMappings; + + /** + * @return An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + */ + public Optional> tableMappings() { + return Optional.ofNullable(this.tableMappings); + } + + /** + * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Import(name="tagsAll") + private @Nullable Output> tagsAll; + + /** + * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Optional>> tagsAll() { + return Optional.ofNullable(this.tagsAll); + } + + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + @Import(name="targetEndpointArn") + private @Nullable Output targetEndpointArn; + + /** + * @return The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + */ + public Optional> targetEndpointArn() { + return Optional.ofNullable(this.targetEndpointArn); + } + + private ReplicationConfigState() {} + + private ReplicationConfigState(ReplicationConfigState $) { + this.arn = $.arn; + this.computeConfig = $.computeConfig; + this.replicationConfigIdentifier = $.replicationConfigIdentifier; + this.replicationSettings = $.replicationSettings; + this.replicationType = $.replicationType; + this.resourceIdentifier = $.resourceIdentifier; + this.sourceEndpointArn = $.sourceEndpointArn; + this.startReplication = $.startReplication; + this.supplementalSettings = $.supplementalSettings; + this.tableMappings = $.tableMappings; + this.tags = $.tags; + this.tagsAll = $.tagsAll; + this.targetEndpointArn = $.targetEndpointArn; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ReplicationConfigState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ReplicationConfigState $; + + public Builder() { + $ = new ReplicationConfigState(); + } + + public Builder(ReplicationConfigState defaults) { + $ = new ReplicationConfigState(Objects.requireNonNull(defaults)); + } + + /** + * @param arn The Amazon Resource Name (ARN) for the serverless replication config. + * + * @return builder + * + */ + public Builder arn(@Nullable Output arn) { + $.arn = arn; + return this; + } + + /** + * @param arn The Amazon Resource Name (ARN) for the serverless replication config. + * + * @return builder + * + */ + public Builder arn(String arn) { + return arn(Output.of(arn)); + } + + /** + * @param computeConfig Configuration block for provisioning an DMS Serverless replication. + * + * @return builder + * + */ + public Builder computeConfig(@Nullable Output computeConfig) { + $.computeConfig = computeConfig; + return this; + } + + /** + * @param computeConfig Configuration block for provisioning an DMS Serverless replication. + * + * @return builder + * + */ + public Builder computeConfig(ReplicationConfigComputeConfigArgs computeConfig) { + return computeConfig(Output.of(computeConfig)); + } + + /** + * @param replicationConfigIdentifier Unique identifier that you want to use to create the config. + * + * @return builder + * + */ + public Builder replicationConfigIdentifier(@Nullable Output replicationConfigIdentifier) { + $.replicationConfigIdentifier = replicationConfigIdentifier; + return this; + } + + /** + * @param replicationConfigIdentifier Unique identifier that you want to use to create the config. + * + * @return builder + * + */ + public Builder replicationConfigIdentifier(String replicationConfigIdentifier) { + return replicationConfigIdentifier(Output.of(replicationConfigIdentifier)); + } + + /** + * @param replicationSettings An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + * @return builder + * + */ + public Builder replicationSettings(@Nullable Output replicationSettings) { + $.replicationSettings = replicationSettings; + return this; + } + + /** + * @param replicationSettings An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + * + * @return builder + * + */ + public Builder replicationSettings(String replicationSettings) { + return replicationSettings(Output.of(replicationSettings)); + } + + /** + * @param replicationType The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + * @return builder + * + */ + public Builder replicationType(@Nullable Output replicationType) { + $.replicationType = replicationType; + return this; + } + + /** + * @param replicationType The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + * + * @return builder + * + */ + public Builder replicationType(String replicationType) { + return replicationType(Output.of(replicationType)); + } + + /** + * @param resourceIdentifier Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + * @return builder + * + */ + public Builder resourceIdentifier(@Nullable Output resourceIdentifier) { + $.resourceIdentifier = resourceIdentifier; + return this; + } + + /** + * @param resourceIdentifier Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + * + * @return builder + * + */ + public Builder resourceIdentifier(String resourceIdentifier) { + return resourceIdentifier(Output.of(resourceIdentifier)); + } + + /** + * @param sourceEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + * @return builder + * + */ + public Builder sourceEndpointArn(@Nullable Output sourceEndpointArn) { + $.sourceEndpointArn = sourceEndpointArn; + return this; + } + + /** + * @param sourceEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + * + * @return builder + * + */ + public Builder sourceEndpointArn(String sourceEndpointArn) { + return sourceEndpointArn(Output.of(sourceEndpointArn)); + } + + /** + * @param startReplication Whether to run or stop the serverless replication, default is false. + * + * @return builder + * + */ + public Builder startReplication(@Nullable Output startReplication) { + $.startReplication = startReplication; + return this; + } + + /** + * @param startReplication Whether to run or stop the serverless replication, default is false. + * + * @return builder + * + */ + public Builder startReplication(Boolean startReplication) { + return startReplication(Output.of(startReplication)); + } + + /** + * @param supplementalSettings JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + * @return builder + * + */ + public Builder supplementalSettings(@Nullable Output supplementalSettings) { + $.supplementalSettings = supplementalSettings; + return this; + } + + /** + * @param supplementalSettings JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + * + * @return builder + * + */ + public Builder supplementalSettings(String supplementalSettings) { + return supplementalSettings(Output.of(supplementalSettings)); + } + + /** + * @param tableMappings An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + * @return builder + * + */ + public Builder tableMappings(@Nullable Output tableMappings) { + $.tableMappings = tableMappings; + return this; + } + + /** + * @param tableMappings An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + * + * @return builder + * + */ + public Builder tableMappings(String tableMappings) { + return tableMappings(Output.of(tableMappings)); + } + + /** + * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(@Nullable Output> tagsAll) { + $.tagsAll = tagsAll; + return this; + } + + /** + * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(Map tagsAll) { + return tagsAll(Output.of(tagsAll)); + } + + /** + * @param targetEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + * @return builder + * + */ + public Builder targetEndpointArn(@Nullable Output targetEndpointArn) { + $.targetEndpointArn = targetEndpointArn; + return this; + } + + /** + * @param targetEndpointArn The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + * + * @return builder + * + */ + public Builder targetEndpointArn(String targetEndpointArn) { + return targetEndpointArn(Output.of(targetEndpointArn)); + } + + public ReplicationConfigState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/ReplicationConfigComputeConfig.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/ReplicationConfigComputeConfig.java new file mode 100644 index 00000000000..3570942b034 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/ReplicationConfigComputeConfig.java @@ -0,0 +1,232 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.dms.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ReplicationConfigComputeConfig { + /** + * @return The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + */ + private @Nullable String availabilityZone; + /** + * @return A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + */ + private @Nullable String dnsNameServers; + /** + * @return An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + */ + private @Nullable String kmsKeyId; + /** + * @return Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + */ + private @Nullable Integer maxCapacityUnits; + /** + * @return Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + */ + private @Nullable Integer minCapacityUnits; + /** + * @return Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + */ + private @Nullable Boolean multiAz; + /** + * @return The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + */ + private @Nullable String preferredMaintenanceWindow; + /** + * @return Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + */ + private String replicationSubnetGroupId; + /** + * @return Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + */ + private @Nullable List vpcSecurityGroupIds; + + private ReplicationConfigComputeConfig() {} + /** + * @return The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + * + */ + public Optional availabilityZone() { + return Optional.ofNullable(this.availabilityZone); + } + /** + * @return A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + * + */ + public Optional dnsNameServers() { + return Optional.ofNullable(this.dnsNameServers); + } + /** + * @return An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + * + */ + public Optional kmsKeyId() { + return Optional.ofNullable(this.kmsKeyId); + } + /** + * @return Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + * + */ + public Optional maxCapacityUnits() { + return Optional.ofNullable(this.maxCapacityUnits); + } + /** + * @return Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + * + */ + public Optional minCapacityUnits() { + return Optional.ofNullable(this.minCapacityUnits); + } + /** + * @return Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + * + */ + public Optional multiAz() { + return Optional.ofNullable(this.multiAz); + } + /** + * @return The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + * + */ + public Optional preferredMaintenanceWindow() { + return Optional.ofNullable(this.preferredMaintenanceWindow); + } + /** + * @return Specifies a subnet group identifier to associate with the DMS Serverless replication. + * + */ + public String replicationSubnetGroupId() { + return this.replicationSubnetGroupId; + } + /** + * @return Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + * + */ + public List vpcSecurityGroupIds() { + return this.vpcSecurityGroupIds == null ? List.of() : this.vpcSecurityGroupIds; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ReplicationConfigComputeConfig defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String availabilityZone; + private @Nullable String dnsNameServers; + private @Nullable String kmsKeyId; + private @Nullable Integer maxCapacityUnits; + private @Nullable Integer minCapacityUnits; + private @Nullable Boolean multiAz; + private @Nullable String preferredMaintenanceWindow; + private String replicationSubnetGroupId; + private @Nullable List vpcSecurityGroupIds; + public Builder() {} + public Builder(ReplicationConfigComputeConfig defaults) { + Objects.requireNonNull(defaults); + this.availabilityZone = defaults.availabilityZone; + this.dnsNameServers = defaults.dnsNameServers; + this.kmsKeyId = defaults.kmsKeyId; + this.maxCapacityUnits = defaults.maxCapacityUnits; + this.minCapacityUnits = defaults.minCapacityUnits; + this.multiAz = defaults.multiAz; + this.preferredMaintenanceWindow = defaults.preferredMaintenanceWindow; + this.replicationSubnetGroupId = defaults.replicationSubnetGroupId; + this.vpcSecurityGroupIds = defaults.vpcSecurityGroupIds; + } + + @CustomType.Setter + public Builder availabilityZone(@Nullable String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + @CustomType.Setter + public Builder dnsNameServers(@Nullable String dnsNameServers) { + this.dnsNameServers = dnsNameServers; + return this; + } + @CustomType.Setter + public Builder kmsKeyId(@Nullable String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + return this; + } + @CustomType.Setter + public Builder maxCapacityUnits(@Nullable Integer maxCapacityUnits) { + this.maxCapacityUnits = maxCapacityUnits; + return this; + } + @CustomType.Setter + public Builder minCapacityUnits(@Nullable Integer minCapacityUnits) { + this.minCapacityUnits = minCapacityUnits; + return this; + } + @CustomType.Setter + public Builder multiAz(@Nullable Boolean multiAz) { + this.multiAz = multiAz; + return this; + } + @CustomType.Setter + public Builder preferredMaintenanceWindow(@Nullable String preferredMaintenanceWindow) { + this.preferredMaintenanceWindow = preferredMaintenanceWindow; + return this; + } + @CustomType.Setter + public Builder replicationSubnetGroupId(String replicationSubnetGroupId) { + this.replicationSubnetGroupId = Objects.requireNonNull(replicationSubnetGroupId); + return this; + } + @CustomType.Setter + public Builder vpcSecurityGroupIds(@Nullable List vpcSecurityGroupIds) { + this.vpcSecurityGroupIds = vpcSecurityGroupIds; + return this; + } + public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { + return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); + } + public ReplicationConfigComputeConfig build() { + final var o = new ReplicationConfigComputeConfig(); + o.availabilityZone = availabilityZone; + o.dnsNameServers = dnsNameServers; + o.kmsKeyId = kmsKeyId; + o.maxCapacityUnits = maxCapacityUnits; + o.minCapacityUnits = minCapacityUnits; + o.multiAz = multiAz; + o.preferredMaintenanceWindow = preferredMaintenanceWindow; + o.replicationSubnetGroupId = replicationSubnetGroupId; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystem.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystem.java index 753e37f4561..e1030e0e60c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystem.java @@ -128,14 +128,14 @@ public Output deploymentType() { return this.deploymentType; } /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ @Export(name="diskIopsConfiguration", refs={OntapFileSystemDiskIopsConfiguration.class}, tree="[0]") private Output diskIopsConfiguration; /** - * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ public Output diskIopsConfiguration() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystemArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystemArgs.java index 376afb26fc1..cbc4e11c399 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystemArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapFileSystemArgs.java @@ -65,14 +65,14 @@ public Output deploymentType() { } /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ @Import(name="diskIopsConfiguration") private @Nullable Output diskIopsConfiguration; /** - * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ public Optional> diskIopsConfiguration() { @@ -362,7 +362,7 @@ public Builder deploymentType(String deploymentType) { } /** - * @param diskIopsConfiguration The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * @param diskIopsConfiguration The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * * @return builder * @@ -373,7 +373,7 @@ public Builder diskIopsConfiguration(@Nullable Output arn() { return this.arn; } + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + @Export(name="bypassSnaplockEnterpriseRetention", refs={Boolean.class}, tree="[0]") + private Output bypassSnaplockEnterpriseRetention; + + /** + * @return Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + public Output> bypassSnaplockEnterpriseRetention() { + return Codegen.optional(this.bypassSnaplockEnterpriseRetention); + } + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + @Export(name="copyTagsToBackups", refs={Boolean.class}, tree="[0]") + private Output copyTagsToBackups; + + /** + * @return A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + public Output> copyTagsToBackups() { + return Codegen.optional(this.copyTagsToBackups); + } /** * Describes the file system for the volume, e.g. `fs-12345679` * @@ -233,6 +262,34 @@ public Output sizeInMegabytes() { public Output> skipFinalBackup() { return Codegen.optional(this.skipFinalBackup); } + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + @Export(name="snaplockConfiguration", refs={OntapVolumeSnaplockConfiguration.class}, tree="[0]") + private Output snaplockConfiguration; + + /** + * @return The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + public Output> snaplockConfiguration() { + return Codegen.optional(this.snaplockConfiguration); + } + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + @Export(name="snapshotPolicy", refs={String.class}, tree="[0]") + private Output snapshotPolicy; + + /** + * @return Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + public Output snapshotPolicy() { + return this.snapshotPolicy; + } /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. * @@ -293,9 +350,17 @@ public Output>> tags() { public Output> tagsAll() { return this.tagsAll; } + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ @Export(name="tieringPolicy", refs={OntapVolumeTieringPolicy.class}, tree="[0]") private Output tieringPolicy; + /** + * @return The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ public Output> tieringPolicy() { return Codegen.optional(this.tieringPolicy); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapVolumeArgs.java index 29a4830cfc0..99d151c3331 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/OntapVolumeArgs.java @@ -3,6 +3,7 @@ package com.pulumi.aws.fsx; +import com.pulumi.aws.fsx.inputs.OntapVolumeSnaplockConfigurationArgs; import com.pulumi.aws.fsx.inputs.OntapVolumeTieringPolicyArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; @@ -19,6 +20,36 @@ public final class OntapVolumeArgs extends com.pulumi.resources.ResourceArgs { public static final OntapVolumeArgs Empty = new OntapVolumeArgs(); + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + @Import(name="bypassSnaplockEnterpriseRetention") + private @Nullable Output bypassSnaplockEnterpriseRetention; + + /** + * @return Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + public Optional> bypassSnaplockEnterpriseRetention() { + return Optional.ofNullable(this.bypassSnaplockEnterpriseRetention); + } + + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + @Import(name="copyTagsToBackups") + private @Nullable Output copyTagsToBackups; + + /** + * @return A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + public Optional> copyTagsToBackups() { + return Optional.ofNullable(this.copyTagsToBackups); + } + /** * Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` * @@ -109,6 +140,36 @@ public Optional> skipFinalBackup() { return Optional.ofNullable(this.skipFinalBackup); } + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + @Import(name="snaplockConfiguration") + private @Nullable Output snaplockConfiguration; + + /** + * @return The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + public Optional> snaplockConfiguration() { + return Optional.ofNullable(this.snaplockConfiguration); + } + + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + @Import(name="snapshotPolicy") + private @Nullable Output snapshotPolicy; + + /** + * @return Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + public Optional> snapshotPolicy() { + return Optional.ofNullable(this.snapshotPolicy); + } + /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. * @@ -154,9 +215,17 @@ public Optional>> tags() { return Optional.ofNullable(this.tags); } + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ @Import(name="tieringPolicy") private @Nullable Output tieringPolicy; + /** + * @return The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ public Optional> tieringPolicy() { return Optional.ofNullable(this.tieringPolicy); } @@ -179,12 +248,16 @@ public Optional> volumeType() { private OntapVolumeArgs() {} private OntapVolumeArgs(OntapVolumeArgs $) { + this.bypassSnaplockEnterpriseRetention = $.bypassSnaplockEnterpriseRetention; + this.copyTagsToBackups = $.copyTagsToBackups; this.junctionPath = $.junctionPath; this.name = $.name; this.ontapVolumeType = $.ontapVolumeType; this.securityStyle = $.securityStyle; this.sizeInMegabytes = $.sizeInMegabytes; this.skipFinalBackup = $.skipFinalBackup; + this.snaplockConfiguration = $.snaplockConfiguration; + this.snapshotPolicy = $.snapshotPolicy; this.storageEfficiencyEnabled = $.storageEfficiencyEnabled; this.storageVirtualMachineId = $.storageVirtualMachineId; this.tags = $.tags; @@ -210,6 +283,48 @@ public Builder(OntapVolumeArgs defaults) { $ = new OntapVolumeArgs(Objects.requireNonNull(defaults)); } + /** + * @param bypassSnaplockEnterpriseRetention Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + * @return builder + * + */ + public Builder bypassSnaplockEnterpriseRetention(@Nullable Output bypassSnaplockEnterpriseRetention) { + $.bypassSnaplockEnterpriseRetention = bypassSnaplockEnterpriseRetention; + return this; + } + + /** + * @param bypassSnaplockEnterpriseRetention Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + * @return builder + * + */ + public Builder bypassSnaplockEnterpriseRetention(Boolean bypassSnaplockEnterpriseRetention) { + return bypassSnaplockEnterpriseRetention(Output.of(bypassSnaplockEnterpriseRetention)); + } + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + * @return builder + * + */ + public Builder copyTagsToBackups(@Nullable Output copyTagsToBackups) { + $.copyTagsToBackups = copyTagsToBackups; + return this; + } + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + * @return builder + * + */ + public Builder copyTagsToBackups(Boolean copyTagsToBackups) { + return copyTagsToBackups(Output.of(copyTagsToBackups)); + } + /** * @param junctionPath Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` * @@ -336,6 +451,48 @@ public Builder skipFinalBackup(Boolean skipFinalBackup) { return skipFinalBackup(Output.of(skipFinalBackup)); } + /** + * @param snaplockConfiguration The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + * @return builder + * + */ + public Builder snaplockConfiguration(@Nullable Output snaplockConfiguration) { + $.snaplockConfiguration = snaplockConfiguration; + return this; + } + + /** + * @param snaplockConfiguration The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + * @return builder + * + */ + public Builder snaplockConfiguration(OntapVolumeSnaplockConfigurationArgs snaplockConfiguration) { + return snaplockConfiguration(Output.of(snaplockConfiguration)); + } + + /** + * @param snapshotPolicy Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + * @return builder + * + */ + public Builder snapshotPolicy(@Nullable Output snapshotPolicy) { + $.snapshotPolicy = snapshotPolicy; + return this; + } + + /** + * @param snapshotPolicy Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + * @return builder + * + */ + public Builder snapshotPolicy(String snapshotPolicy) { + return snapshotPolicy(Output.of(snapshotPolicy)); + } + /** * @param storageEfficiencyEnabled Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. * @@ -399,11 +556,23 @@ public Builder tags(Map tags) { return tags(Output.of(tags)); } + /** + * @param tieringPolicy The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + * @return builder + * + */ public Builder tieringPolicy(@Nullable Output tieringPolicy) { $.tieringPolicy = tieringPolicy; return this; } + /** + * @param tieringPolicy The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + * @return builder + * + */ public Builder tieringPolicy(OntapVolumeTieringPolicyArgs tieringPolicy) { return tieringPolicy(Output.of(tieringPolicy)); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolume.java index e151ebb4508..9572ac08ab9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolume.java @@ -108,6 +108,20 @@ public Output> copyTagsToSnapshots() { public Output> dataCompressionType() { return Codegen.optional(this.dataCompressionType); } + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + @Export(name="deleteVolumeOptions", refs={String.class}, tree="[0]") + private Output deleteVolumeOptions; + + /** + * @return Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + public Output> deleteVolumeOptions() { + return Codegen.optional(this.deleteVolumeOptions); + } /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolumeArgs.java index 54e5ef68e63..a611dd5b911 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/OpenZfsVolumeArgs.java @@ -52,6 +52,21 @@ public Optional> dataCompressionType() { return Optional.ofNullable(this.dataCompressionType); } + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + @Import(name="deleteVolumeOptions") + private @Nullable Output deleteVolumeOptions; + + /** + * @return Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + public Optional> deleteVolumeOptions() { + return Optional.ofNullable(this.deleteVolumeOptions); + } + /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. * @@ -214,6 +229,7 @@ private OpenZfsVolumeArgs() {} private OpenZfsVolumeArgs(OpenZfsVolumeArgs $) { this.copyTagsToSnapshots = $.copyTagsToSnapshots; this.dataCompressionType = $.dataCompressionType; + this.deleteVolumeOptions = $.deleteVolumeOptions; this.name = $.name; this.nfsExports = $.nfsExports; this.originSnapshot = $.originSnapshot; @@ -287,6 +303,27 @@ public Builder dataCompressionType(String dataCompressionType) { return dataCompressionType(Output.of(dataCompressionType)); } + /** + * @param deleteVolumeOptions Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + * @return builder + * + */ + public Builder deleteVolumeOptions(@Nullable Output deleteVolumeOptions) { + $.deleteVolumeOptions = deleteVolumeOptions; + return this; + } + + /** + * @param deleteVolumeOptions Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + * @return builder + * + */ + public Builder deleteVolumeOptions(String deleteVolumeOptions) { + return deleteVolumeOptions(Output.of(deleteVolumeOptions)); + } + /** * @param name The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapFileSystemState.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapFileSystemState.java index 9a3bef71acc..cc65b9d5222 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapFileSystemState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapFileSystemState.java @@ -81,14 +81,14 @@ public Optional> deploymentType() { } /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ @Import(name="diskIopsConfiguration") private @Nullable Output diskIopsConfiguration; /** - * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * @return The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * */ public Optional> diskIopsConfiguration() { @@ -504,7 +504,7 @@ public Builder deploymentType(String deploymentType) { } /** - * @param diskIopsConfiguration The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * @param diskIopsConfiguration The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. * * @return builder * @@ -515,7 +515,7 @@ public Builder diskIopsConfiguration(@Nullable Output auditLogVolume; + + /** + * @return Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + public Optional> auditLogVolume() { + return Optional.ofNullable(this.auditLogVolume); + } + + /** + * The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + */ + @Import(name="autocommitPeriod") + private @Nullable Output autocommitPeriod; + + /** + * @return The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + */ + public Optional> autocommitPeriod() { + return Optional.ofNullable(this.autocommitPeriod); + } + + /** + * Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + */ + @Import(name="privilegedDelete") + private @Nullable Output privilegedDelete; + + /** + * @return Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + */ + public Optional> privilegedDelete() { + return Optional.ofNullable(this.privilegedDelete); + } + + /** + * The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + */ + @Import(name="retentionPeriod") + private @Nullable Output retentionPeriod; + + /** + * @return The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + */ + public Optional> retentionPeriod() { + return Optional.ofNullable(this.retentionPeriod); + } + + /** + * Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + */ + @Import(name="snaplockType", required=true) + private Output snaplockType; + + /** + * @return Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + */ + public Output snaplockType() { + return this.snaplockType; + } + + /** + * Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + @Import(name="volumeAppendModeEnabled") + private @Nullable Output volumeAppendModeEnabled; + + /** + * @return Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + public Optional> volumeAppendModeEnabled() { + return Optional.ofNullable(this.volumeAppendModeEnabled); + } + + private OntapVolumeSnaplockConfigurationArgs() {} + + private OntapVolumeSnaplockConfigurationArgs(OntapVolumeSnaplockConfigurationArgs $) { + this.auditLogVolume = $.auditLogVolume; + this.autocommitPeriod = $.autocommitPeriod; + this.privilegedDelete = $.privilegedDelete; + this.retentionPeriod = $.retentionPeriod; + this.snaplockType = $.snaplockType; + this.volumeAppendModeEnabled = $.volumeAppendModeEnabled; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param auditLogVolume Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + * + * @return builder + * + */ + public Builder auditLogVolume(@Nullable Output auditLogVolume) { + $.auditLogVolume = auditLogVolume; + return this; + } + + /** + * @param auditLogVolume Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + * + * @return builder + * + */ + public Builder auditLogVolume(Boolean auditLogVolume) { + return auditLogVolume(Output.of(auditLogVolume)); + } + + /** + * @param autocommitPeriod The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + * @return builder + * + */ + public Builder autocommitPeriod(@Nullable Output autocommitPeriod) { + $.autocommitPeriod = autocommitPeriod; + return this; + } + + /** + * @param autocommitPeriod The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + * @return builder + * + */ + public Builder autocommitPeriod(OntapVolumeSnaplockConfigurationAutocommitPeriodArgs autocommitPeriod) { + return autocommitPeriod(Output.of(autocommitPeriod)); + } + + /** + * @param privilegedDelete Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + * @return builder + * + */ + public Builder privilegedDelete(@Nullable Output privilegedDelete) { + $.privilegedDelete = privilegedDelete; + return this; + } + + /** + * @param privilegedDelete Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + * @return builder + * + */ + public Builder privilegedDelete(String privilegedDelete) { + return privilegedDelete(Output.of(privilegedDelete)); + } + + /** + * @param retentionPeriod The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + * @return builder + * + */ + public Builder retentionPeriod(@Nullable Output retentionPeriod) { + $.retentionPeriod = retentionPeriod; + return this; + } + + /** + * @param retentionPeriod The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + * @return builder + * + */ + public Builder retentionPeriod(OntapVolumeSnaplockConfigurationRetentionPeriodArgs retentionPeriod) { + return retentionPeriod(Output.of(retentionPeriod)); + } + + /** + * @param snaplockType Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + * @return builder + * + */ + public Builder snaplockType(Output snaplockType) { + $.snaplockType = snaplockType; + return this; + } + + /** + * @param snaplockType Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + * @return builder + * + */ + public Builder snaplockType(String snaplockType) { + return snaplockType(Output.of(snaplockType)); + } + + /** + * @param volumeAppendModeEnabled Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + * @return builder + * + */ + public Builder volumeAppendModeEnabled(@Nullable Output volumeAppendModeEnabled) { + $.volumeAppendModeEnabled = volumeAppendModeEnabled; + return this; + } + + /** + * @param volumeAppendModeEnabled Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + * @return builder + * + */ + public Builder volumeAppendModeEnabled(Boolean volumeAppendModeEnabled) { + return volumeAppendModeEnabled(Output.of(volumeAppendModeEnabled)); + } + + public OntapVolumeSnaplockConfigurationArgs build() { + $.snaplockType = Objects.requireNonNull($.snaplockType, "expected parameter 'snaplockType' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.java new file mode 100644 index 00000000000..4c16af7fb33 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationAutocommitPeriodArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OntapVolumeSnaplockConfigurationAutocommitPeriodArgs extends com.pulumi.resources.ResourceArgs { + + public static final OntapVolumeSnaplockConfigurationAutocommitPeriodArgs Empty = new OntapVolumeSnaplockConfigurationAutocommitPeriodArgs(); + + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + @Import(name="type") + private @Nullable Output type; + + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional> type() { + return Optional.ofNullable(this.type); + } + + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + @Import(name="value") + private @Nullable Output value; + + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional> value() { + return Optional.ofNullable(this.value); + } + + private OntapVolumeSnaplockConfigurationAutocommitPeriodArgs() {} + + private OntapVolumeSnaplockConfigurationAutocommitPeriodArgs(OntapVolumeSnaplockConfigurationAutocommitPeriodArgs $) { + this.type = $.type; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationAutocommitPeriodArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationAutocommitPeriodArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationAutocommitPeriodArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationAutocommitPeriodArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationAutocommitPeriodArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(@Nullable Output value) { + $.value = value; + return this; + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public OntapVolumeSnaplockConfigurationAutocommitPeriodArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.java new file mode 100644 index 00000000000..ed78a615830 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodArgs.java @@ -0,0 +1,159 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.inputs; + +import com.pulumi.aws.fsx.inputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs; +import com.pulumi.aws.fsx.inputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs; +import com.pulumi.aws.fsx.inputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OntapVolumeSnaplockConfigurationRetentionPeriodArgs extends com.pulumi.resources.ResourceArgs { + + public static final OntapVolumeSnaplockConfigurationRetentionPeriodArgs Empty = new OntapVolumeSnaplockConfigurationRetentionPeriodArgs(); + + /** + * The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + */ + @Import(name="defaultRetention") + private @Nullable Output defaultRetention; + + /** + * @return The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + */ + public Optional> defaultRetention() { + return Optional.ofNullable(this.defaultRetention); + } + + /** + * The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + @Import(name="maximumRetention") + private @Nullable Output maximumRetention; + + /** + * @return The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + public Optional> maximumRetention() { + return Optional.ofNullable(this.maximumRetention); + } + + /** + * The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + @Import(name="minimumRetention") + private @Nullable Output minimumRetention; + + /** + * @return The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + public Optional> minimumRetention() { + return Optional.ofNullable(this.minimumRetention); + } + + private OntapVolumeSnaplockConfigurationRetentionPeriodArgs() {} + + private OntapVolumeSnaplockConfigurationRetentionPeriodArgs(OntapVolumeSnaplockConfigurationRetentionPeriodArgs $) { + this.defaultRetention = $.defaultRetention; + this.maximumRetention = $.maximumRetention; + this.minimumRetention = $.minimumRetention; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationRetentionPeriodArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param defaultRetention The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + * @return builder + * + */ + public Builder defaultRetention(@Nullable Output defaultRetention) { + $.defaultRetention = defaultRetention; + return this; + } + + /** + * @param defaultRetention The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + * @return builder + * + */ + public Builder defaultRetention(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs defaultRetention) { + return defaultRetention(Output.of(defaultRetention)); + } + + /** + * @param maximumRetention The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + * @return builder + * + */ + public Builder maximumRetention(@Nullable Output maximumRetention) { + $.maximumRetention = maximumRetention; + return this; + } + + /** + * @param maximumRetention The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + * @return builder + * + */ + public Builder maximumRetention(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs maximumRetention) { + return maximumRetention(Output.of(maximumRetention)); + } + + /** + * @param minimumRetention The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + * @return builder + * + */ + public Builder minimumRetention(@Nullable Output minimumRetention) { + $.minimumRetention = minimumRetention; + return this; + } + + /** + * @param minimumRetention The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + * @return builder + * + */ + public Builder minimumRetention(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs minimumRetention) { + return minimumRetention(Output.of(minimumRetention)); + } + + public OntapVolumeSnaplockConfigurationRetentionPeriodArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.java new file mode 100644 index 00000000000..25d25083bec --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs extends com.pulumi.resources.ResourceArgs { + + public static final OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs Empty = new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs(); + + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + @Import(name="type") + private @Nullable Output type; + + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional> type() { + return Optional.ofNullable(this.type); + } + + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + @Import(name="value") + private @Nullable Output value; + + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional> value() { + return Optional.ofNullable(this.value); + } + + private OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs() {} + + private OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs $) { + this.type = $.type; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(@Nullable Output value) { + $.value = value; + return this; + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.java new file mode 100644 index 00000000000..5f0f73a0313 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs extends com.pulumi.resources.ResourceArgs { + + public static final OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs Empty = new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs(); + + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + @Import(name="type") + private @Nullable Output type; + + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional> type() { + return Optional.ofNullable(this.type); + } + + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + @Import(name="value") + private @Nullable Output value; + + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional> value() { + return Optional.ofNullable(this.value); + } + + private OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs() {} + + private OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs $) { + this.type = $.type; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(@Nullable Output value) { + $.value = value; + return this; + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.java new file mode 100644 index 00000000000..d0b9b471949 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs extends com.pulumi.resources.ResourceArgs { + + public static final OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs Empty = new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs(); + + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + @Import(name="type") + private @Nullable Output type; + + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional> type() { + return Optional.ofNullable(this.type); + } + + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + @Import(name="value") + private @Nullable Output value; + + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional> value() { + return Optional.ofNullable(this.value); + } + + private OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs() {} + + private OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs $) { + this.type = $.type; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs $; + + public Builder() { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs(); + } + + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs defaults) { + $ = new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + /** + * @param type The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(@Nullable Output value) { + $.value = value; + return this; + } + + /** + * @param value The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + * @return builder + * + */ + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeState.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeState.java index adf786013ba..1a3157d6a73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OntapVolumeState.java @@ -3,6 +3,7 @@ package com.pulumi.aws.fsx.inputs; +import com.pulumi.aws.fsx.inputs.OntapVolumeSnaplockConfigurationArgs; import com.pulumi.aws.fsx.inputs.OntapVolumeTieringPolicyArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; @@ -34,6 +35,36 @@ public Optional> arn() { return Optional.ofNullable(this.arn); } + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + @Import(name="bypassSnaplockEnterpriseRetention") + private @Nullable Output bypassSnaplockEnterpriseRetention; + + /** + * @return Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + */ + public Optional> bypassSnaplockEnterpriseRetention() { + return Optional.ofNullable(this.bypassSnaplockEnterpriseRetention); + } + + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + @Import(name="copyTagsToBackups") + private @Nullable Output copyTagsToBackups; + + /** + * @return A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + */ + public Optional> copyTagsToBackups() { + return Optional.ofNullable(this.copyTagsToBackups); + } + /** * Describes the file system for the volume, e.g. `fs-12345679` * @@ -154,6 +185,36 @@ public Optional> skipFinalBackup() { return Optional.ofNullable(this.skipFinalBackup); } + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + @Import(name="snaplockConfiguration") + private @Nullable Output snaplockConfiguration; + + /** + * @return The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + */ + public Optional> snaplockConfiguration() { + return Optional.ofNullable(this.snaplockConfiguration); + } + + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + @Import(name="snapshotPolicy") + private @Nullable Output snapshotPolicy; + + /** + * @return Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + */ + public Optional> snapshotPolicy() { + return Optional.ofNullable(this.snapshotPolicy); + } + /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. * @@ -222,9 +283,17 @@ public Optional>> tagsAll() { return Optional.ofNullable(this.tagsAll); } + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ @Import(name="tieringPolicy") private @Nullable Output tieringPolicy; + /** + * @return The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + */ public Optional> tieringPolicy() { return Optional.ofNullable(this.tieringPolicy); } @@ -263,6 +332,8 @@ private OntapVolumeState() {} private OntapVolumeState(OntapVolumeState $) { this.arn = $.arn; + this.bypassSnaplockEnterpriseRetention = $.bypassSnaplockEnterpriseRetention; + this.copyTagsToBackups = $.copyTagsToBackups; this.fileSystemId = $.fileSystemId; this.flexcacheEndpointType = $.flexcacheEndpointType; this.junctionPath = $.junctionPath; @@ -271,6 +342,8 @@ private OntapVolumeState(OntapVolumeState $) { this.securityStyle = $.securityStyle; this.sizeInMegabytes = $.sizeInMegabytes; this.skipFinalBackup = $.skipFinalBackup; + this.snaplockConfiguration = $.snaplockConfiguration; + this.snapshotPolicy = $.snapshotPolicy; this.storageEfficiencyEnabled = $.storageEfficiencyEnabled; this.storageVirtualMachineId = $.storageVirtualMachineId; this.tags = $.tags; @@ -319,6 +392,48 @@ public Builder arn(String arn) { return arn(Output.of(arn)); } + /** + * @param bypassSnaplockEnterpriseRetention Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + * @return builder + * + */ + public Builder bypassSnaplockEnterpriseRetention(@Nullable Output bypassSnaplockEnterpriseRetention) { + $.bypassSnaplockEnterpriseRetention = bypassSnaplockEnterpriseRetention; + return this; + } + + /** + * @param bypassSnaplockEnterpriseRetention Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + * + * @return builder + * + */ + public Builder bypassSnaplockEnterpriseRetention(Boolean bypassSnaplockEnterpriseRetention) { + return bypassSnaplockEnterpriseRetention(Output.of(bypassSnaplockEnterpriseRetention)); + } + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + * @return builder + * + */ + public Builder copyTagsToBackups(@Nullable Output copyTagsToBackups) { + $.copyTagsToBackups = copyTagsToBackups; + return this; + } + + /** + * @param copyTagsToBackups A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + * + * @return builder + * + */ + public Builder copyTagsToBackups(Boolean copyTagsToBackups) { + return copyTagsToBackups(Output.of(copyTagsToBackups)); + } + /** * @param fileSystemId Describes the file system for the volume, e.g. `fs-12345679` * @@ -487,6 +602,48 @@ public Builder skipFinalBackup(Boolean skipFinalBackup) { return skipFinalBackup(Output.of(skipFinalBackup)); } + /** + * @param snaplockConfiguration The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + * @return builder + * + */ + public Builder snaplockConfiguration(@Nullable Output snaplockConfiguration) { + $.snaplockConfiguration = snaplockConfiguration; + return this; + } + + /** + * @param snaplockConfiguration The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + * + * @return builder + * + */ + public Builder snaplockConfiguration(OntapVolumeSnaplockConfigurationArgs snaplockConfiguration) { + return snaplockConfiguration(Output.of(snaplockConfiguration)); + } + + /** + * @param snapshotPolicy Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + * @return builder + * + */ + public Builder snapshotPolicy(@Nullable Output snapshotPolicy) { + $.snapshotPolicy = snapshotPolicy; + return this; + } + + /** + * @param snapshotPolicy Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + * + * @return builder + * + */ + public Builder snapshotPolicy(String snapshotPolicy) { + return snapshotPolicy(Output.of(snapshotPolicy)); + } + /** * @param storageEfficiencyEnabled Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. * @@ -579,11 +736,23 @@ public Builder tagsAll(Map tagsAll) { return tagsAll(Output.of(tagsAll)); } + /** + * @param tieringPolicy The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + * @return builder + * + */ public Builder tieringPolicy(@Nullable Output tieringPolicy) { $.tieringPolicy = tieringPolicy; return this; } + /** + * @param tieringPolicy The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + * + * @return builder + * + */ public Builder tieringPolicy(OntapVolumeTieringPolicyArgs tieringPolicy) { return tieringPolicy(Output.of(tieringPolicy)); } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OpenZfsVolumeState.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OpenZfsVolumeState.java index 7c776f73f58..fa5975ea556 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OpenZfsVolumeState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/inputs/OpenZfsVolumeState.java @@ -67,6 +67,21 @@ public Optional> dataCompressionType() { return Optional.ofNullable(this.dataCompressionType); } + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + @Import(name="deleteVolumeOptions") + private @Nullable Output deleteVolumeOptions; + + /** + * @return Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + */ + public Optional> deleteVolumeOptions() { + return Optional.ofNullable(this.deleteVolumeOptions); + } + /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. * @@ -253,6 +268,7 @@ private OpenZfsVolumeState(OpenZfsVolumeState $) { this.arn = $.arn; this.copyTagsToSnapshots = $.copyTagsToSnapshots; this.dataCompressionType = $.dataCompressionType; + this.deleteVolumeOptions = $.deleteVolumeOptions; this.name = $.name; this.nfsExports = $.nfsExports; this.originSnapshot = $.originSnapshot; @@ -348,6 +364,27 @@ public Builder dataCompressionType(String dataCompressionType) { return dataCompressionType(Output.of(dataCompressionType)); } + /** + * @param deleteVolumeOptions Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + * @return builder + * + */ + public Builder deleteVolumeOptions(@Nullable Output deleteVolumeOptions) { + $.deleteVolumeOptions = deleteVolumeOptions; + return this; + } + + /** + * @param deleteVolumeOptions Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + * + * @return builder + * + */ + public Builder deleteVolumeOptions(String deleteVolumeOptions) { + return deleteVolumeOptions(Output.of(deleteVolumeOptions)); + } + /** * @param name The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfiguration.java new file mode 100644 index 00000000000..46ee63219e1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfiguration.java @@ -0,0 +1,159 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.aws.fsx.outputs.OntapVolumeSnaplockConfigurationAutocommitPeriod; +import com.pulumi.aws.fsx.outputs.OntapVolumeSnaplockConfigurationRetentionPeriod; +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfiguration { + /** + * @return Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + private @Nullable Boolean auditLogVolume; + /** + * @return The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + */ + private @Nullable OntapVolumeSnaplockConfigurationAutocommitPeriod autocommitPeriod; + /** + * @return Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + */ + private @Nullable String privilegedDelete; + /** + * @return The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + */ + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriod retentionPeriod; + /** + * @return Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + */ + private String snaplockType; + /** + * @return Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + private @Nullable Boolean volumeAppendModeEnabled; + + private OntapVolumeSnaplockConfiguration() {} + /** + * @return Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + public Optional auditLogVolume() { + return Optional.ofNullable(this.auditLogVolume); + } + /** + * @return The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + * + */ + public Optional autocommitPeriod() { + return Optional.ofNullable(this.autocommitPeriod); + } + /** + * @return Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + * + */ + public Optional privilegedDelete() { + return Optional.ofNullable(this.privilegedDelete); + } + /** + * @return The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + * + */ + public Optional retentionPeriod() { + return Optional.ofNullable(this.retentionPeriod); + } + /** + * @return Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + * + */ + public String snaplockType() { + return this.snaplockType; + } + /** + * @return Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + * + */ + public Optional volumeAppendModeEnabled() { + return Optional.ofNullable(this.volumeAppendModeEnabled); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfiguration defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean auditLogVolume; + private @Nullable OntapVolumeSnaplockConfigurationAutocommitPeriod autocommitPeriod; + private @Nullable String privilegedDelete; + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriod retentionPeriod; + private String snaplockType; + private @Nullable Boolean volumeAppendModeEnabled; + public Builder() {} + public Builder(OntapVolumeSnaplockConfiguration defaults) { + Objects.requireNonNull(defaults); + this.auditLogVolume = defaults.auditLogVolume; + this.autocommitPeriod = defaults.autocommitPeriod; + this.privilegedDelete = defaults.privilegedDelete; + this.retentionPeriod = defaults.retentionPeriod; + this.snaplockType = defaults.snaplockType; + this.volumeAppendModeEnabled = defaults.volumeAppendModeEnabled; + } + + @CustomType.Setter + public Builder auditLogVolume(@Nullable Boolean auditLogVolume) { + this.auditLogVolume = auditLogVolume; + return this; + } + @CustomType.Setter + public Builder autocommitPeriod(@Nullable OntapVolumeSnaplockConfigurationAutocommitPeriod autocommitPeriod) { + this.autocommitPeriod = autocommitPeriod; + return this; + } + @CustomType.Setter + public Builder privilegedDelete(@Nullable String privilegedDelete) { + this.privilegedDelete = privilegedDelete; + return this; + } + @CustomType.Setter + public Builder retentionPeriod(@Nullable OntapVolumeSnaplockConfigurationRetentionPeriod retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + @CustomType.Setter + public Builder snaplockType(String snaplockType) { + this.snaplockType = Objects.requireNonNull(snaplockType); + return this; + } + @CustomType.Setter + public Builder volumeAppendModeEnabled(@Nullable Boolean volumeAppendModeEnabled) { + this.volumeAppendModeEnabled = volumeAppendModeEnabled; + return this; + } + public OntapVolumeSnaplockConfiguration build() { + final var o = new OntapVolumeSnaplockConfiguration(); + o.auditLogVolume = auditLogVolume; + o.autocommitPeriod = autocommitPeriod; + o.privilegedDelete = privilegedDelete; + o.retentionPeriod = retentionPeriod; + o.snaplockType = snaplockType; + o.volumeAppendModeEnabled = volumeAppendModeEnabled; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.java new file mode 100644 index 00000000000..0fcdb9de2f1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationAutocommitPeriod.java @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfigurationAutocommitPeriod { + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + private @Nullable String type; + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + private @Nullable Integer value; + + private OntapVolumeSnaplockConfigurationAutocommitPeriod() {} + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional type() { + return Optional.ofNullable(this.type); + } + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional value() { + return Optional.ofNullable(this.value); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfigurationAutocommitPeriod defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String type; + private @Nullable Integer value; + public Builder() {} + public Builder(OntapVolumeSnaplockConfigurationAutocommitPeriod defaults) { + Objects.requireNonNull(defaults); + this.type = defaults.type; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder type(@Nullable String type) { + this.type = type; + return this; + } + @CustomType.Setter + public Builder value(@Nullable Integer value) { + this.value = value; + return this; + } + public OntapVolumeSnaplockConfigurationAutocommitPeriod build() { + final var o = new OntapVolumeSnaplockConfigurationAutocommitPeriod(); + o.type = type; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.java new file mode 100644 index 00000000000..55dc6b8f19e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriod.java @@ -0,0 +1,98 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.aws.fsx.outputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention; +import com.pulumi.aws.fsx.outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention; +import com.pulumi.aws.fsx.outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention; +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfigurationRetentionPeriod { + /** + * @return The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + */ + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention defaultRetention; + /** + * @return The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention maximumRetention; + /** + * @return The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention minimumRetention; + + private OntapVolumeSnaplockConfigurationRetentionPeriod() {} + /** + * @return The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + * + */ + public Optional defaultRetention() { + return Optional.ofNullable(this.defaultRetention); + } + /** + * @return The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + public Optional maximumRetention() { + return Optional.ofNullable(this.maximumRetention); + } + /** + * @return The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + * + */ + public Optional minimumRetention() { + return Optional.ofNullable(this.minimumRetention); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriod defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention defaultRetention; + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention maximumRetention; + private @Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention minimumRetention; + public Builder() {} + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriod defaults) { + Objects.requireNonNull(defaults); + this.defaultRetention = defaults.defaultRetention; + this.maximumRetention = defaults.maximumRetention; + this.minimumRetention = defaults.minimumRetention; + } + + @CustomType.Setter + public Builder defaultRetention(@Nullable OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention defaultRetention) { + this.defaultRetention = defaultRetention; + return this; + } + @CustomType.Setter + public Builder maximumRetention(@Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention maximumRetention) { + this.maximumRetention = maximumRetention; + return this; + } + @CustomType.Setter + public Builder minimumRetention(@Nullable OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention minimumRetention) { + this.minimumRetention = minimumRetention; + return this; + } + public OntapVolumeSnaplockConfigurationRetentionPeriod build() { + final var o = new OntapVolumeSnaplockConfigurationRetentionPeriod(); + o.defaultRetention = defaultRetention; + o.maximumRetention = maximumRetention; + o.minimumRetention = minimumRetention; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.java new file mode 100644 index 00000000000..3092239f239 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention.java @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + private @Nullable String type; + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + private @Nullable Integer value; + + private OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention() {} + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional type() { + return Optional.ofNullable(this.type); + } + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional value() { + return Optional.ofNullable(this.value); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String type; + private @Nullable Integer value; + public Builder() {} + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention defaults) { + Objects.requireNonNull(defaults); + this.type = defaults.type; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder type(@Nullable String type) { + this.type = type; + return this; + } + @CustomType.Setter + public Builder value(@Nullable Integer value) { + this.value = value; + return this; + } + public OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention build() { + final var o = new OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention(); + o.type = type; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.java new file mode 100644 index 00000000000..5b948f19eff --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention.java @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + private @Nullable String type; + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + private @Nullable Integer value; + + private OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention() {} + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional type() { + return Optional.ofNullable(this.type); + } + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional value() { + return Optional.ofNullable(this.value); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String type; + private @Nullable Integer value; + public Builder() {} + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention defaults) { + Objects.requireNonNull(defaults); + this.type = defaults.type; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder type(@Nullable String type) { + this.type = type; + return this; + } + @CustomType.Setter + public Builder value(@Nullable Integer value) { + this.value = value; + return this; + } + public OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention build() { + final var o = new OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention(); + o.type = type; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.java new file mode 100644 index 00000000000..d04e72b38f3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention.java @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.fsx.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + private @Nullable String type; + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + private @Nullable Integer value; + + private OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention() {} + /** + * @return The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + * + */ + public Optional type() { + return Optional.ofNullable(this.type); + } + /** + * @return The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + * + */ + public Optional value() { + return Optional.ofNullable(this.value); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String type; + private @Nullable Integer value; + public Builder() {} + public Builder(OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention defaults) { + Objects.requireNonNull(defaults); + this.type = defaults.type; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder type(@Nullable String type) { + this.type = type; + return this; + } + @CustomType.Setter + public Builder value(@Nullable Integer value) { + this.value = value; + return this; + } + public OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention build() { + final var o = new OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention(); + o.type = type; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBot.java b/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBot.java new file mode 100644 index 00000000000..75e69309609 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBot.java @@ -0,0 +1,263 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex; + +import com.pulumi.aws.Utilities; +import com.pulumi.aws.lex.V2modelsBotArgs; +import com.pulumi.aws.lex.inputs.V2modelsBotState; +import com.pulumi.aws.lex.outputs.V2modelsBotDataPrivacy; +import com.pulumi.aws.lex.outputs.V2modelsBotMember; +import com.pulumi.aws.lex.outputs.V2modelsBotTimeouts; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Resource for managing an AWS Lex V2 Models Bot. + * + * ## Example Usage + * ### Basic Usage + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.lex.V2modelsBot; + * import com.pulumi.aws.lex.V2modelsBotArgs; + * import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var example = new V2modelsBot("example", V2modelsBotArgs.builder() + * .dataPrivacies(V2modelsBotDataPrivacyArgs.builder() + * .childDirected("boolean") + * .build()) + * .idleSessionTtlInSeconds(10) + * .roleArn("bot_example_arn") + * .build()); + * + * } + * } + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { + * + * to = aws_lexv2models_bot.example + * + * id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 + * + */ +@ResourceType(type="aws:lex/v2modelsBot:V2modelsBot") +public class V2modelsBot extends com.pulumi.resources.CustomResource { + @Export(name="arn", refs={String.class}, tree="[0]") + private Output arn; + + public Output arn() { + return this.arn; + } + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + @Export(name="dataPrivacies", refs={List.class,V2modelsBotDataPrivacy.class}, tree="[0,1]") + private Output> dataPrivacies; + + /** + * @return Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + public Output>> dataPrivacies() { + return Codegen.optional(this.dataPrivacies); + } + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + @Export(name="idleSessionTtlInSeconds", refs={Integer.class}, tree="[0]") + private Output idleSessionTtlInSeconds; + + /** + * @return Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + public Output idleSessionTtlInSeconds() { + return this.idleSessionTtlInSeconds; + } + /** + * List of bot members in a network to be created. See `bot_members`. + * + */ + @Export(name="members", refs={List.class,V2modelsBotMember.class}, tree="[0,1]") + private Output> members; + + /** + * @return List of bot members in a network to be created. See `bot_members`. + * + */ + public Output>> members() { + return Codegen.optional(this.members); + } + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + public Output name() { + return this.name; + } + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + @Export(name="roleArn", refs={String.class}, tree="[0]") + private Output roleArn; + + /** + * @return ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + public Output roleArn() { + return this.roleArn; + } + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tagsAll; + + public Output> tagsAll() { + return this.tagsAll; + } + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + @Export(name="testBotAliasTags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> testBotAliasTags; + + /** + * @return List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + public Output>> testBotAliasTags() { + return Codegen.optional(this.testBotAliasTags); + } + @Export(name="timeouts", refs={V2modelsBotTimeouts.class}, tree="[0]") + private Output timeouts; + + public Output> timeouts() { + return Codegen.optional(this.timeouts); + } + @Export(name="type", refs={String.class}, tree="[0]") + private Output type; + + public Output type() { + return this.type; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public V2modelsBot(String name) { + this(name, V2modelsBotArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public V2modelsBot(String name, V2modelsBotArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public V2modelsBot(String name, V2modelsBotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:lex/v2modelsBot:V2modelsBot", name, args == null ? V2modelsBotArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private V2modelsBot(String name, Output id, @Nullable V2modelsBotState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:lex/v2modelsBot:V2modelsBot", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .additionalSecretOutputs(List.of( + "tagsAll" + )) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static V2modelsBot get(String name, Output id, @Nullable V2modelsBotState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new V2modelsBot(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBotArgs.java b/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBotArgs.java new file mode 100644 index 00000000000..9c4cd4218c0 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/V2modelsBotArgs.java @@ -0,0 +1,392 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex; + +import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs; +import com.pulumi.aws.lex.inputs.V2modelsBotMemberArgs; +import com.pulumi.aws.lex.inputs.V2modelsBotTimeoutsArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class V2modelsBotArgs extends com.pulumi.resources.ResourceArgs { + + public static final V2modelsBotArgs Empty = new V2modelsBotArgs(); + + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + @Import(name="dataPrivacies") + private @Nullable Output> dataPrivacies; + + /** + * @return Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + public Optional>> dataPrivacies() { + return Optional.ofNullable(this.dataPrivacies); + } + + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + @Import(name="idleSessionTtlInSeconds", required=true) + private Output idleSessionTtlInSeconds; + + /** + * @return Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + public Output idleSessionTtlInSeconds() { + return this.idleSessionTtlInSeconds; + } + + /** + * List of bot members in a network to be created. See `bot_members`. + * + */ + @Import(name="members") + private @Nullable Output> members; + + /** + * @return List of bot members in a network to be created. See `bot_members`. + * + */ + public Optional>> members() { + return Optional.ofNullable(this.members); + } + + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + @Import(name="roleArn", required=true) + private Output roleArn; + + /** + * @return ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + public Output roleArn() { + return this.roleArn; + } + + @Import(name="tags") + private @Nullable Output> tags; + + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + @Import(name="testBotAliasTags") + private @Nullable Output> testBotAliasTags; + + /** + * @return List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + public Optional>> testBotAliasTags() { + return Optional.ofNullable(this.testBotAliasTags); + } + + @Import(name="timeouts") + private @Nullable Output timeouts; + + public Optional> timeouts() { + return Optional.ofNullable(this.timeouts); + } + + @Import(name="type") + private @Nullable Output type; + + public Optional> type() { + return Optional.ofNullable(this.type); + } + + private V2modelsBotArgs() {} + + private V2modelsBotArgs(V2modelsBotArgs $) { + this.dataPrivacies = $.dataPrivacies; + this.description = $.description; + this.idleSessionTtlInSeconds = $.idleSessionTtlInSeconds; + this.members = $.members; + this.name = $.name; + this.roleArn = $.roleArn; + this.tags = $.tags; + this.testBotAliasTags = $.testBotAliasTags; + this.timeouts = $.timeouts; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(V2modelsBotArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private V2modelsBotArgs $; + + public Builder() { + $ = new V2modelsBotArgs(); + } + + public Builder(V2modelsBotArgs defaults) { + $ = new V2modelsBotArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(@Nullable Output> dataPrivacies) { + $.dataPrivacies = dataPrivacies; + return this; + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(List dataPrivacies) { + return dataPrivacies(Output.of(dataPrivacies)); + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(V2modelsBotDataPrivacyArgs... dataPrivacies) { + return dataPrivacies(List.of(dataPrivacies)); + } + + /** + * @param description Description of the bot. It appears in lists to help you identify a particular bot. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description Description of the bot. It appears in lists to help you identify a particular bot. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + * @return builder + * + */ + public Builder idleSessionTtlInSeconds(Output idleSessionTtlInSeconds) { + $.idleSessionTtlInSeconds = idleSessionTtlInSeconds; + return this; + } + + /** + * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + * @return builder + * + */ + public Builder idleSessionTtlInSeconds(Integer idleSessionTtlInSeconds) { + return idleSessionTtlInSeconds(Output.of(idleSessionTtlInSeconds)); + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(@Nullable Output> members) { + $.members = members; + return this; + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(List members) { + return members(Output.of(members)); + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(V2modelsBotMemberArgs... members) { + return members(List.of(members)); + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param roleArn ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + * @return builder + * + */ + public Builder roleArn(Output roleArn) { + $.roleArn = roleArn; + return this; + } + + /** + * @param roleArn ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + * @return builder + * + */ + public Builder roleArn(String roleArn) { + return roleArn(Output.of(roleArn)); + } + + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + * @return builder + * + */ + public Builder testBotAliasTags(@Nullable Output> testBotAliasTags) { + $.testBotAliasTags = testBotAliasTags; + return this; + } + + /** + * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + * @return builder + * + */ + public Builder testBotAliasTags(Map testBotAliasTags) { + return testBotAliasTags(Output.of(testBotAliasTags)); + } + + public Builder timeouts(@Nullable Output timeouts) { + $.timeouts = timeouts; + return this; + } + + public Builder timeouts(V2modelsBotTimeoutsArgs timeouts) { + return timeouts(Output.of(timeouts)); + } + + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + public Builder type(String type) { + return type(Output.of(type)); + } + + public V2modelsBotArgs build() { + $.idleSessionTtlInSeconds = Objects.requireNonNull($.idleSessionTtlInSeconds, "expected parameter 'idleSessionTtlInSeconds' to be non-null"); + $.roleArn = Objects.requireNonNull($.roleArn, "expected parameter 'roleArn' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotDataPrivacyArgs.java b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotDataPrivacyArgs.java new file mode 100644 index 00000000000..2b6a2e2b050 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotDataPrivacyArgs.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.util.Objects; + + +public final class V2modelsBotDataPrivacyArgs extends com.pulumi.resources.ResourceArgs { + + public static final V2modelsBotDataPrivacyArgs Empty = new V2modelsBotDataPrivacyArgs(); + + /** + * (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + */ + @Import(name="childDirected", required=true) + private Output childDirected; + + /** + * @return (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + */ + public Output childDirected() { + return this.childDirected; + } + + private V2modelsBotDataPrivacyArgs() {} + + private V2modelsBotDataPrivacyArgs(V2modelsBotDataPrivacyArgs $) { + this.childDirected = $.childDirected; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(V2modelsBotDataPrivacyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private V2modelsBotDataPrivacyArgs $; + + public Builder() { + $ = new V2modelsBotDataPrivacyArgs(); + } + + public Builder(V2modelsBotDataPrivacyArgs defaults) { + $ = new V2modelsBotDataPrivacyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param childDirected (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + * @return builder + * + */ + public Builder childDirected(Output childDirected) { + $.childDirected = childDirected; + return this; + } + + /** + * @param childDirected (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + * @return builder + * + */ + public Builder childDirected(Boolean childDirected) { + return childDirected(Output.of(childDirected)); + } + + public V2modelsBotDataPrivacyArgs build() { + $.childDirected = Objects.requireNonNull($.childDirected, "expected parameter 'childDirected' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotMemberArgs.java b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotMemberArgs.java new file mode 100644 index 00000000000..1d5743d4185 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotMemberArgs.java @@ -0,0 +1,234 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class V2modelsBotMemberArgs extends com.pulumi.resources.ResourceArgs { + + public static final V2modelsBotMemberArgs Empty = new V2modelsBotMemberArgs(); + + /** + * (Required) - Alias ID of a bot that is a member of this network of bots. + * + */ + @Import(name="aliasId", required=true) + private Output aliasId; + + /** + * @return (Required) - Alias ID of a bot that is a member of this network of bots. + * + */ + public Output aliasId() { + return this.aliasId; + } + + /** + * (Required) - Alias name of a bot that is a member of this network of bots. + * + */ + @Import(name="aliasName", required=true) + private Output aliasName; + + /** + * @return (Required) - Alias name of a bot that is a member of this network of bots. + * + */ + public Output aliasName() { + return this.aliasName; + } + + /** + * (Required) - Unique ID of a bot that is a member of this network of bots. + * + */ + @Import(name="id", required=true) + private Output id; + + /** + * @return (Required) - Unique ID of a bot that is a member of this network of bots. + * + */ + public Output id() { + return this.id; + } + + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + public Output name() { + return this.name; + } + + /** + * (Required) - Version of a bot that is a member of this network of bots. + * + */ + @Import(name="version", required=true) + private Output version; + + /** + * @return (Required) - Version of a bot that is a member of this network of bots. + * + */ + public Output version() { + return this.version; + } + + private V2modelsBotMemberArgs() {} + + private V2modelsBotMemberArgs(V2modelsBotMemberArgs $) { + this.aliasId = $.aliasId; + this.aliasName = $.aliasName; + this.id = $.id; + this.name = $.name; + this.version = $.version; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(V2modelsBotMemberArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private V2modelsBotMemberArgs $; + + public Builder() { + $ = new V2modelsBotMemberArgs(); + } + + public Builder(V2modelsBotMemberArgs defaults) { + $ = new V2modelsBotMemberArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param aliasId (Required) - Alias ID of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder aliasId(Output aliasId) { + $.aliasId = aliasId; + return this; + } + + /** + * @param aliasId (Required) - Alias ID of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder aliasId(String aliasId) { + return aliasId(Output.of(aliasId)); + } + + /** + * @param aliasName (Required) - Alias name of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder aliasName(Output aliasName) { + $.aliasName = aliasName; + return this; + } + + /** + * @param aliasName (Required) - Alias name of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder aliasName(String aliasName) { + return aliasName(Output.of(aliasName)); + } + + /** + * @param id (Required) - Unique ID of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder id(Output id) { + $.id = id; + return this; + } + + /** + * @param id (Required) - Unique ID of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder id(String id) { + return id(Output.of(id)); + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param version (Required) - Version of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder version(Output version) { + $.version = version; + return this; + } + + /** + * @param version (Required) - Version of a bot that is a member of this network of bots. + * + * @return builder + * + */ + public Builder version(String version) { + return version(Output.of(version)); + } + + public V2modelsBotMemberArgs build() { + $.aliasId = Objects.requireNonNull($.aliasId, "expected parameter 'aliasId' to be non-null"); + $.aliasName = Objects.requireNonNull($.aliasName, "expected parameter 'aliasName' to be non-null"); + $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.version = Objects.requireNonNull($.version, "expected parameter 'version' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotState.java b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotState.java new file mode 100644 index 00000000000..bed8eac9f4a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotState.java @@ -0,0 +1,452 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.inputs; + +import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs; +import com.pulumi.aws.lex.inputs.V2modelsBotMemberArgs; +import com.pulumi.aws.lex.inputs.V2modelsBotTimeoutsArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class V2modelsBotState extends com.pulumi.resources.ResourceArgs { + + public static final V2modelsBotState Empty = new V2modelsBotState(); + + @Import(name="arn") + private @Nullable Output arn; + + public Optional> arn() { + return Optional.ofNullable(this.arn); + } + + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + @Import(name="dataPrivacies") + private @Nullable Output> dataPrivacies; + + /** + * @return Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + */ + public Optional>> dataPrivacies() { + return Optional.ofNullable(this.dataPrivacies); + } + + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return Description of the bot. It appears in lists to help you identify a particular bot. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + @Import(name="idleSessionTtlInSeconds") + private @Nullable Output idleSessionTtlInSeconds; + + /** + * @return Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + */ + public Optional> idleSessionTtlInSeconds() { + return Optional.ofNullable(this.idleSessionTtlInSeconds); + } + + /** + * List of bot members in a network to be created. See `bot_members`. + * + */ + @Import(name="members") + private @Nullable Output> members; + + /** + * @return List of bot members in a network to be created. See `bot_members`. + * + */ + public Optional>> members() { + return Optional.ofNullable(this.members); + } + + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + @Import(name="roleArn") + private @Nullable Output roleArn; + + /** + * @return ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + */ + public Optional> roleArn() { + return Optional.ofNullable(this.roleArn); + } + + @Import(name="tags") + private @Nullable Output> tags; + + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Import(name="tagsAll") + private @Nullable Output> tagsAll; + + /** + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Optional>> tagsAll() { + return Optional.ofNullable(this.tagsAll); + } + + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + @Import(name="testBotAliasTags") + private @Nullable Output> testBotAliasTags; + + /** + * @return List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + */ + public Optional>> testBotAliasTags() { + return Optional.ofNullable(this.testBotAliasTags); + } + + @Import(name="timeouts") + private @Nullable Output timeouts; + + public Optional> timeouts() { + return Optional.ofNullable(this.timeouts); + } + + @Import(name="type") + private @Nullable Output type; + + public Optional> type() { + return Optional.ofNullable(this.type); + } + + private V2modelsBotState() {} + + private V2modelsBotState(V2modelsBotState $) { + this.arn = $.arn; + this.dataPrivacies = $.dataPrivacies; + this.description = $.description; + this.idleSessionTtlInSeconds = $.idleSessionTtlInSeconds; + this.members = $.members; + this.name = $.name; + this.roleArn = $.roleArn; + this.tags = $.tags; + this.tagsAll = $.tagsAll; + this.testBotAliasTags = $.testBotAliasTags; + this.timeouts = $.timeouts; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(V2modelsBotState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private V2modelsBotState $; + + public Builder() { + $ = new V2modelsBotState(); + } + + public Builder(V2modelsBotState defaults) { + $ = new V2modelsBotState(Objects.requireNonNull(defaults)); + } + + public Builder arn(@Nullable Output arn) { + $.arn = arn; + return this; + } + + public Builder arn(String arn) { + return arn(Output.of(arn)); + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(@Nullable Output> dataPrivacies) { + $.dataPrivacies = dataPrivacies; + return this; + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(List dataPrivacies) { + return dataPrivacies(Output.of(dataPrivacies)); + } + + /** + * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + * + * @return builder + * + */ + public Builder dataPrivacies(V2modelsBotDataPrivacyArgs... dataPrivacies) { + return dataPrivacies(List.of(dataPrivacies)); + } + + /** + * @param description Description of the bot. It appears in lists to help you identify a particular bot. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description Description of the bot. It appears in lists to help you identify a particular bot. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + * @return builder + * + */ + public Builder idleSessionTtlInSeconds(@Nullable Output idleSessionTtlInSeconds) { + $.idleSessionTtlInSeconds = idleSessionTtlInSeconds; + return this; + } + + /** + * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + * + * @return builder + * + */ + public Builder idleSessionTtlInSeconds(Integer idleSessionTtlInSeconds) { + return idleSessionTtlInSeconds(Output.of(idleSessionTtlInSeconds)); + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(@Nullable Output> members) { + $.members = members; + return this; + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(List members) { + return members(Output.of(members)); + } + + /** + * @param members List of bot members in a network to be created. See `bot_members`. + * + * @return builder + * + */ + public Builder members(V2modelsBotMemberArgs... members) { + return members(List.of(members)); + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param roleArn ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + * @return builder + * + */ + public Builder roleArn(@Nullable Output roleArn) { + $.roleArn = roleArn; + return this; + } + + /** + * @param roleArn ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + * + * @return builder + * + */ + public Builder roleArn(String roleArn) { + return roleArn(Output.of(roleArn)); + } + + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(@Nullable Output> tagsAll) { + $.tagsAll = tagsAll; + return this; + } + + /** + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(Map tagsAll) { + return tagsAll(Output.of(tagsAll)); + } + + /** + * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + * @return builder + * + */ + public Builder testBotAliasTags(@Nullable Output> testBotAliasTags) { + $.testBotAliasTags = testBotAliasTags; + return this; + } + + /** + * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + * + * @return builder + * + */ + public Builder testBotAliasTags(Map testBotAliasTags) { + return testBotAliasTags(Output.of(testBotAliasTags)); + } + + public Builder timeouts(@Nullable Output timeouts) { + $.timeouts = timeouts; + return this; + } + + public Builder timeouts(V2modelsBotTimeoutsArgs timeouts) { + return timeouts(Output.of(timeouts)); + } + + public Builder type(@Nullable Output type) { + $.type = type; + return this; + } + + public Builder type(String type) { + return type(Output.of(type)); + } + + public V2modelsBotState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotTimeoutsArgs.java b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotTimeoutsArgs.java new file mode 100644 index 00000000000..9ebe60a2a11 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/inputs/V2modelsBotTimeoutsArgs.java @@ -0,0 +1,97 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class V2modelsBotTimeoutsArgs extends com.pulumi.resources.ResourceArgs { + + public static final V2modelsBotTimeoutsArgs Empty = new V2modelsBotTimeoutsArgs(); + + @Import(name="create") + private @Nullable Output create; + + public Optional> create() { + return Optional.ofNullable(this.create); + } + + @Import(name="delete") + private @Nullable Output delete; + + public Optional> delete() { + return Optional.ofNullable(this.delete); + } + + @Import(name="update") + private @Nullable Output update; + + public Optional> update() { + return Optional.ofNullable(this.update); + } + + private V2modelsBotTimeoutsArgs() {} + + private V2modelsBotTimeoutsArgs(V2modelsBotTimeoutsArgs $) { + this.create = $.create; + this.delete = $.delete; + this.update = $.update; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(V2modelsBotTimeoutsArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private V2modelsBotTimeoutsArgs $; + + public Builder() { + $ = new V2modelsBotTimeoutsArgs(); + } + + public Builder(V2modelsBotTimeoutsArgs defaults) { + $ = new V2modelsBotTimeoutsArgs(Objects.requireNonNull(defaults)); + } + + public Builder create(@Nullable Output create) { + $.create = create; + return this; + } + + public Builder create(String create) { + return create(Output.of(create)); + } + + public Builder delete(@Nullable Output delete) { + $.delete = delete; + return this; + } + + public Builder delete(String delete) { + return delete(Output.of(delete)); + } + + public Builder update(@Nullable Output update) { + $.update = update; + return this; + } + + public Builder update(String update) { + return update(Output.of(update)); + } + + public V2modelsBotTimeoutsArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotDataPrivacy.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotDataPrivacy.java new file mode 100644 index 00000000000..c3df012be53 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotDataPrivacy.java @@ -0,0 +1,54 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.util.Objects; + +@CustomType +public final class V2modelsBotDataPrivacy { + /** + * @return (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + */ + private Boolean childDirected; + + private V2modelsBotDataPrivacy() {} + /** + * @return (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + * + */ + public Boolean childDirected() { + return this.childDirected; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(V2modelsBotDataPrivacy defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Boolean childDirected; + public Builder() {} + public Builder(V2modelsBotDataPrivacy defaults) { + Objects.requireNonNull(defaults); + this.childDirected = defaults.childDirected; + } + + @CustomType.Setter + public Builder childDirected(Boolean childDirected) { + this.childDirected = Objects.requireNonNull(childDirected); + return this; + } + public V2modelsBotDataPrivacy build() { + final var o = new V2modelsBotDataPrivacy(); + o.childDirected = childDirected; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotMember.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotMember.java new file mode 100644 index 00000000000..421f0657e24 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotMember.java @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class V2modelsBotMember { + /** + * @return (Required) - Alias ID of a bot that is a member of this network of bots. + * + */ + private String aliasId; + /** + * @return (Required) - Alias name of a bot that is a member of this network of bots. + * + */ + private String aliasName; + /** + * @return (Required) - Unique ID of a bot that is a member of this network of bots. + * + */ + private String id; + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + private String name; + /** + * @return (Required) - Version of a bot that is a member of this network of bots. + * + */ + private String version; + + private V2modelsBotMember() {} + /** + * @return (Required) - Alias ID of a bot that is a member of this network of bots. + * + */ + public String aliasId() { + return this.aliasId; + } + /** + * @return (Required) - Alias name of a bot that is a member of this network of bots. + * + */ + public String aliasName() { + return this.aliasName; + } + /** + * @return (Required) - Unique ID of a bot that is a member of this network of bots. + * + */ + public String id() { + return this.id; + } + /** + * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + * + */ + public String name() { + return this.name; + } + /** + * @return (Required) - Version of a bot that is a member of this network of bots. + * + */ + public String version() { + return this.version; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(V2modelsBotMember defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String aliasId; + private String aliasName; + private String id; + private String name; + private String version; + public Builder() {} + public Builder(V2modelsBotMember defaults) { + Objects.requireNonNull(defaults); + this.aliasId = defaults.aliasId; + this.aliasName = defaults.aliasName; + this.id = defaults.id; + this.name = defaults.name; + this.version = defaults.version; + } + + @CustomType.Setter + public Builder aliasId(String aliasId) { + this.aliasId = Objects.requireNonNull(aliasId); + return this; + } + @CustomType.Setter + public Builder aliasName(String aliasName) { + this.aliasName = Objects.requireNonNull(aliasName); + return this; + } + @CustomType.Setter + public Builder id(String id) { + this.id = Objects.requireNonNull(id); + return this; + } + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder version(String version) { + this.version = Objects.requireNonNull(version); + return this; + } + public V2modelsBotMember build() { + final var o = new V2modelsBotMember(); + o.aliasId = aliasId; + o.aliasName = aliasName; + o.id = id; + o.name = name; + o.version = version; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotTimeouts.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotTimeouts.java new file mode 100644 index 00000000000..89a8565a4cc --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/V2modelsBotTimeouts.java @@ -0,0 +1,72 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.lex.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class V2modelsBotTimeouts { + private @Nullable String create; + private @Nullable String delete; + private @Nullable String update; + + private V2modelsBotTimeouts() {} + public Optional create() { + return Optional.ofNullable(this.create); + } + public Optional delete() { + return Optional.ofNullable(this.delete); + } + public Optional update() { + return Optional.ofNullable(this.update); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(V2modelsBotTimeouts defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String create; + private @Nullable String delete; + private @Nullable String update; + public Builder() {} + public Builder(V2modelsBotTimeouts defaults) { + Objects.requireNonNull(defaults); + this.create = defaults.create; + this.delete = defaults.delete; + this.update = defaults.update; + } + + @CustomType.Setter + public Builder create(@Nullable String create) { + this.create = create; + return this; + } + @CustomType.Setter + public Builder delete(@Nullable String delete) { + this.delete = delete; + return this; + } + @CustomType.Setter + public Builder update(@Nullable String update) { + this.update = update; + return this; + } + public V2modelsBotTimeouts build() { + final var o = new V2modelsBotTimeouts(); + o.create = create; + o.delete = delete; + o.update = update; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/Bucket.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/Bucket.java index e5e881f65a7..9c2d667b761 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/Bucket.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/Bucket.java @@ -10,6 +10,7 @@ import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; import com.pulumi.core.internal.Codegen; +import java.lang.Boolean; import java.lang.String; import java.util.List; import java.util.Map; @@ -116,6 +117,20 @@ public Output bundleId() { public Output createdAt() { return this.createdAt; } + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + @Export(name="forceDelete", refs={Boolean.class}, tree="[0]") + private Output forceDelete; + + /** + * @return Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + public Output> forceDelete() { + return Codegen.optional(this.forceDelete); + } /** * The name for the bucket. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/BucketArgs.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/BucketArgs.java index f38a2099ec2..3ae47a6fe64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/BucketArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/BucketArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.String; import java.util.Map; import java.util.Objects; @@ -31,6 +32,21 @@ public Output bundleId() { return this.bundleId; } + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + @Import(name="forceDelete") + private @Nullable Output forceDelete; + + /** + * @return Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + public Optional> forceDelete() { + return Optional.ofNullable(this.forceDelete); + } + /** * The name for the bucket. * @@ -65,6 +81,7 @@ private BucketArgs() {} private BucketArgs(BucketArgs $) { this.bundleId = $.bundleId; + this.forceDelete = $.forceDelete; this.name = $.name; this.tags = $.tags; } @@ -108,6 +125,27 @@ public Builder bundleId(String bundleId) { return bundleId(Output.of(bundleId)); } + /** + * @param forceDelete Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + * @return builder + * + */ + public Builder forceDelete(@Nullable Output forceDelete) { + $.forceDelete = forceDelete; + return this; + } + + /** + * @param forceDelete Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + * @return builder + * + */ + public Builder forceDelete(Boolean forceDelete) { + return forceDelete(Output.of(forceDelete)); + } + /** * @param name The name for the bucket. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/inputs/BucketState.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/inputs/BucketState.java index c25dc2dc795..30be4efa689 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/inputs/BucketState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/inputs/BucketState.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.String; import java.util.Map; import java.util.Objects; @@ -76,6 +77,21 @@ public Optional> createdAt() { return Optional.ofNullable(this.createdAt); } + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + @Import(name="forceDelete") + private @Nullable Output forceDelete; + + /** + * @return Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + */ + public Optional> forceDelete() { + return Optional.ofNullable(this.forceDelete); + } + /** * The name for the bucket. * @@ -173,6 +189,7 @@ private BucketState(BucketState $) { this.availabilityZone = $.availabilityZone; this.bundleId = $.bundleId; this.createdAt = $.createdAt; + this.forceDelete = $.forceDelete; this.name = $.name; this.region = $.region; this.supportCode = $.supportCode; @@ -283,6 +300,27 @@ public Builder createdAt(String createdAt) { return createdAt(Output.of(createdAt)); } + /** + * @param forceDelete Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + * @return builder + * + */ + public Builder forceDelete(@Nullable Output forceDelete) { + $.forceDelete = forceDelete; + return this; + } + + /** + * @param forceDelete Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + * + * @return builder + * + */ + public Builder forceDelete(Boolean forceDelete) { + return forceDelete(Output.of(forceDelete)); + } + /** * @param name The name for the bucket. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnection.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnection.java index 3a33546230c..777d0fcd190 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnection.java @@ -6,13 +6,16 @@ import com.pulumi.aws.Utilities; import com.pulumi.aws.opensearch.OutboundConnectionArgs; import com.pulumi.aws.opensearch.inputs.OutboundConnectionState; +import com.pulumi.aws.opensearch.outputs.OutboundConnectionConnectionProperties; import com.pulumi.aws.opensearch.outputs.OutboundConnectionLocalDomainInfo; import com.pulumi.aws.opensearch.outputs.OutboundConnectionRemoteDomainInfo; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; import com.pulumi.core.internal.Codegen; +import java.lang.Boolean; import java.lang.String; +import java.util.Optional; import javax.annotation.Nullable; /** @@ -52,6 +55,7 @@ * * var foo = new OutboundConnection("foo", OutboundConnectionArgs.builder() * .connectionAlias("outbound_connection") + * .connectionMode("DIRECT") * .localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder() * .ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())) * .region(currentRegion.applyValue(getRegionResult -> getRegionResult.name())) @@ -79,6 +83,20 @@ */ @ResourceType(type="aws:opensearch/outboundConnection:OutboundConnection") public class OutboundConnection extends com.pulumi.resources.CustomResource { + /** + * Accepts the connection. + * + */ + @Export(name="acceptConnection", refs={Boolean.class}, tree="[0]") + private Output acceptConnection; + + /** + * @return Accepts the connection. + * + */ + public Output> acceptConnection() { + return Codegen.optional(this.acceptConnection); + } /** * Specifies the connection alias that will be used by the customer for this connection. * @@ -93,6 +111,34 @@ public class OutboundConnection extends com.pulumi.resources.CustomResource { public Output connectionAlias() { return this.connectionAlias; } + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + @Export(name="connectionMode", refs={String.class}, tree="[0]") + private Output connectionMode; + + /** + * @return Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + public Output> connectionMode() { + return Codegen.optional(this.connectionMode); + } + /** + * Configuration block for the outbound connection. + * + */ + @Export(name="connectionProperties", refs={OutboundConnectionConnectionProperties.class}, tree="[0]") + private Output connectionProperties; + + /** + * @return Configuration block for the outbound connection. + * + */ + public Output connectionProperties() { + return this.connectionProperties; + } /** * Status of the connection request. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnectionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnectionArgs.java index ecb022c75dd..54b89fb0689 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/OutboundConnectionArgs.java @@ -3,18 +3,37 @@ package com.pulumi.aws.opensearch; +import com.pulumi.aws.opensearch.inputs.OutboundConnectionConnectionPropertiesArgs; import com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs; import com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class OutboundConnectionArgs extends com.pulumi.resources.ResourceArgs { public static final OutboundConnectionArgs Empty = new OutboundConnectionArgs(); + /** + * Accepts the connection. + * + */ + @Import(name="acceptConnection") + private @Nullable Output acceptConnection; + + /** + * @return Accepts the connection. + * + */ + public Optional> acceptConnection() { + return Optional.ofNullable(this.acceptConnection); + } + /** * Specifies the connection alias that will be used by the customer for this connection. * @@ -30,6 +49,36 @@ public Output connectionAlias() { return this.connectionAlias; } + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + @Import(name="connectionMode") + private @Nullable Output connectionMode; + + /** + * @return Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + public Optional> connectionMode() { + return Optional.ofNullable(this.connectionMode); + } + + /** + * Configuration block for the outbound connection. + * + */ + @Import(name="connectionProperties") + private @Nullable Output connectionProperties; + + /** + * @return Configuration block for the outbound connection. + * + */ + public Optional> connectionProperties() { + return Optional.ofNullable(this.connectionProperties); + } + /** * Configuration block for the local Opensearch domain. * @@ -63,7 +112,10 @@ public Output remoteDomainInfo() { private OutboundConnectionArgs() {} private OutboundConnectionArgs(OutboundConnectionArgs $) { + this.acceptConnection = $.acceptConnection; this.connectionAlias = $.connectionAlias; + this.connectionMode = $.connectionMode; + this.connectionProperties = $.connectionProperties; this.localDomainInfo = $.localDomainInfo; this.remoteDomainInfo = $.remoteDomainInfo; } @@ -86,6 +138,27 @@ public Builder(OutboundConnectionArgs defaults) { $ = new OutboundConnectionArgs(Objects.requireNonNull(defaults)); } + /** + * @param acceptConnection Accepts the connection. + * + * @return builder + * + */ + public Builder acceptConnection(@Nullable Output acceptConnection) { + $.acceptConnection = acceptConnection; + return this; + } + + /** + * @param acceptConnection Accepts the connection. + * + * @return builder + * + */ + public Builder acceptConnection(Boolean acceptConnection) { + return acceptConnection(Output.of(acceptConnection)); + } + /** * @param connectionAlias Specifies the connection alias that will be used by the customer for this connection. * @@ -107,6 +180,48 @@ public Builder connectionAlias(String connectionAlias) { return connectionAlias(Output.of(connectionAlias)); } + /** + * @param connectionMode Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + * @return builder + * + */ + public Builder connectionMode(@Nullable Output connectionMode) { + $.connectionMode = connectionMode; + return this; + } + + /** + * @param connectionMode Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + * @return builder + * + */ + public Builder connectionMode(String connectionMode) { + return connectionMode(Output.of(connectionMode)); + } + + /** + * @param connectionProperties Configuration block for the outbound connection. + * + * @return builder + * + */ + public Builder connectionProperties(@Nullable Output connectionProperties) { + $.connectionProperties = connectionProperties; + return this; + } + + /** + * @param connectionProperties Configuration block for the outbound connection. + * + * @return builder + * + */ + public Builder connectionProperties(OutboundConnectionConnectionPropertiesArgs connectionProperties) { + return connectionProperties(Output.of(connectionProperties)); + } + /** * @param localDomainInfo Configuration block for the local Opensearch domain. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesArgs.java new file mode 100644 index 00000000000..93f609ecf3d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.opensearch.inputs; + +import com.pulumi.aws.opensearch.inputs.OutboundConnectionConnectionPropertiesCrossClusterSearchArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OutboundConnectionConnectionPropertiesArgs extends com.pulumi.resources.ResourceArgs { + + public static final OutboundConnectionConnectionPropertiesArgs Empty = new OutboundConnectionConnectionPropertiesArgs(); + + /** + * Configuration block for cross cluster search. + * + */ + @Import(name="crossClusterSearch") + private @Nullable Output crossClusterSearch; + + /** + * @return Configuration block for cross cluster search. + * + */ + public Optional> crossClusterSearch() { + return Optional.ofNullable(this.crossClusterSearch); + } + + /** + * The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + */ + @Import(name="endpoint") + private @Nullable Output endpoint; + + /** + * @return The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + */ + public Optional> endpoint() { + return Optional.ofNullable(this.endpoint); + } + + private OutboundConnectionConnectionPropertiesArgs() {} + + private OutboundConnectionConnectionPropertiesArgs(OutboundConnectionConnectionPropertiesArgs $) { + this.crossClusterSearch = $.crossClusterSearch; + this.endpoint = $.endpoint; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OutboundConnectionConnectionPropertiesArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OutboundConnectionConnectionPropertiesArgs $; + + public Builder() { + $ = new OutboundConnectionConnectionPropertiesArgs(); + } + + public Builder(OutboundConnectionConnectionPropertiesArgs defaults) { + $ = new OutboundConnectionConnectionPropertiesArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param crossClusterSearch Configuration block for cross cluster search. + * + * @return builder + * + */ + public Builder crossClusterSearch(@Nullable Output crossClusterSearch) { + $.crossClusterSearch = crossClusterSearch; + return this; + } + + /** + * @param crossClusterSearch Configuration block for cross cluster search. + * + * @return builder + * + */ + public Builder crossClusterSearch(OutboundConnectionConnectionPropertiesCrossClusterSearchArgs crossClusterSearch) { + return crossClusterSearch(Output.of(crossClusterSearch)); + } + + /** + * @param endpoint The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + * @return builder + * + */ + public Builder endpoint(@Nullable Output endpoint) { + $.endpoint = endpoint; + return this; + } + + /** + * @param endpoint The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + * @return builder + * + */ + public Builder endpoint(String endpoint) { + return endpoint(Output.of(endpoint)); + } + + public OutboundConnectionConnectionPropertiesArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.java new file mode 100644 index 00000000000..1762a1b5fbc --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionConnectionPropertiesCrossClusterSearchArgs.java @@ -0,0 +1,83 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.opensearch.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OutboundConnectionConnectionPropertiesCrossClusterSearchArgs extends com.pulumi.resources.ResourceArgs { + + public static final OutboundConnectionConnectionPropertiesCrossClusterSearchArgs Empty = new OutboundConnectionConnectionPropertiesCrossClusterSearchArgs(); + + /** + * Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + */ + @Import(name="skipUnavailable") + private @Nullable Output skipUnavailable; + + /** + * @return Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + */ + public Optional> skipUnavailable() { + return Optional.ofNullable(this.skipUnavailable); + } + + private OutboundConnectionConnectionPropertiesCrossClusterSearchArgs() {} + + private OutboundConnectionConnectionPropertiesCrossClusterSearchArgs(OutboundConnectionConnectionPropertiesCrossClusterSearchArgs $) { + this.skipUnavailable = $.skipUnavailable; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OutboundConnectionConnectionPropertiesCrossClusterSearchArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OutboundConnectionConnectionPropertiesCrossClusterSearchArgs $; + + public Builder() { + $ = new OutboundConnectionConnectionPropertiesCrossClusterSearchArgs(); + } + + public Builder(OutboundConnectionConnectionPropertiesCrossClusterSearchArgs defaults) { + $ = new OutboundConnectionConnectionPropertiesCrossClusterSearchArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param skipUnavailable Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + * @return builder + * + */ + public Builder skipUnavailable(@Nullable Output skipUnavailable) { + $.skipUnavailable = skipUnavailable; + return this; + } + + /** + * @param skipUnavailable Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + * @return builder + * + */ + public Builder skipUnavailable(String skipUnavailable) { + return skipUnavailable(Output.of(skipUnavailable)); + } + + public OutboundConnectionConnectionPropertiesCrossClusterSearchArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionState.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionState.java index 33062d550c5..e11b78ad7b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/inputs/OutboundConnectionState.java @@ -3,10 +3,12 @@ package com.pulumi.aws.opensearch.inputs; +import com.pulumi.aws.opensearch.inputs.OutboundConnectionConnectionPropertiesArgs; import com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs; import com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -17,6 +19,21 @@ public final class OutboundConnectionState extends com.pulumi.resources.Resource public static final OutboundConnectionState Empty = new OutboundConnectionState(); + /** + * Accepts the connection. + * + */ + @Import(name="acceptConnection") + private @Nullable Output acceptConnection; + + /** + * @return Accepts the connection. + * + */ + public Optional> acceptConnection() { + return Optional.ofNullable(this.acceptConnection); + } + /** * Specifies the connection alias that will be used by the customer for this connection. * @@ -32,6 +49,36 @@ public Optional> connectionAlias() { return Optional.ofNullable(this.connectionAlias); } + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + @Import(name="connectionMode") + private @Nullable Output connectionMode; + + /** + * @return Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + */ + public Optional> connectionMode() { + return Optional.ofNullable(this.connectionMode); + } + + /** + * Configuration block for the outbound connection. + * + */ + @Import(name="connectionProperties") + private @Nullable Output connectionProperties; + + /** + * @return Configuration block for the outbound connection. + * + */ + public Optional> connectionProperties() { + return Optional.ofNullable(this.connectionProperties); + } + /** * Status of the connection request. * @@ -80,7 +127,10 @@ public Optional> remoteDomainInfo private OutboundConnectionState() {} private OutboundConnectionState(OutboundConnectionState $) { + this.acceptConnection = $.acceptConnection; this.connectionAlias = $.connectionAlias; + this.connectionMode = $.connectionMode; + this.connectionProperties = $.connectionProperties; this.connectionStatus = $.connectionStatus; this.localDomainInfo = $.localDomainInfo; this.remoteDomainInfo = $.remoteDomainInfo; @@ -104,6 +154,27 @@ public Builder(OutboundConnectionState defaults) { $ = new OutboundConnectionState(Objects.requireNonNull(defaults)); } + /** + * @param acceptConnection Accepts the connection. + * + * @return builder + * + */ + public Builder acceptConnection(@Nullable Output acceptConnection) { + $.acceptConnection = acceptConnection; + return this; + } + + /** + * @param acceptConnection Accepts the connection. + * + * @return builder + * + */ + public Builder acceptConnection(Boolean acceptConnection) { + return acceptConnection(Output.of(acceptConnection)); + } + /** * @param connectionAlias Specifies the connection alias that will be used by the customer for this connection. * @@ -125,6 +196,48 @@ public Builder connectionAlias(String connectionAlias) { return connectionAlias(Output.of(connectionAlias)); } + /** + * @param connectionMode Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + * @return builder + * + */ + public Builder connectionMode(@Nullable Output connectionMode) { + $.connectionMode = connectionMode; + return this; + } + + /** + * @param connectionMode Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + * + * @return builder + * + */ + public Builder connectionMode(String connectionMode) { + return connectionMode(Output.of(connectionMode)); + } + + /** + * @param connectionProperties Configuration block for the outbound connection. + * + * @return builder + * + */ + public Builder connectionProperties(@Nullable Output connectionProperties) { + $.connectionProperties = connectionProperties; + return this; + } + + /** + * @param connectionProperties Configuration block for the outbound connection. + * + * @return builder + * + */ + public Builder connectionProperties(OutboundConnectionConnectionPropertiesArgs connectionProperties) { + return connectionProperties(Output.of(connectionProperties)); + } + /** * @param connectionStatus Status of the connection request. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionProperties.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionProperties.java new file mode 100644 index 00000000000..313a8edffa1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionProperties.java @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.opensearch.outputs; + +import com.pulumi.aws.opensearch.outputs.OutboundConnectionConnectionPropertiesCrossClusterSearch; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OutboundConnectionConnectionProperties { + /** + * @return Configuration block for cross cluster search. + * + */ + private @Nullable OutboundConnectionConnectionPropertiesCrossClusterSearch crossClusterSearch; + /** + * @return The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + */ + private @Nullable String endpoint; + + private OutboundConnectionConnectionProperties() {} + /** + * @return Configuration block for cross cluster search. + * + */ + public Optional crossClusterSearch() { + return Optional.ofNullable(this.crossClusterSearch); + } + /** + * @return The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + * + */ + public Optional endpoint() { + return Optional.ofNullable(this.endpoint); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OutboundConnectionConnectionProperties defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable OutboundConnectionConnectionPropertiesCrossClusterSearch crossClusterSearch; + private @Nullable String endpoint; + public Builder() {} + public Builder(OutboundConnectionConnectionProperties defaults) { + Objects.requireNonNull(defaults); + this.crossClusterSearch = defaults.crossClusterSearch; + this.endpoint = defaults.endpoint; + } + + @CustomType.Setter + public Builder crossClusterSearch(@Nullable OutboundConnectionConnectionPropertiesCrossClusterSearch crossClusterSearch) { + this.crossClusterSearch = crossClusterSearch; + return this; + } + @CustomType.Setter + public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; + return this; + } + public OutboundConnectionConnectionProperties build() { + final var o = new OutboundConnectionConnectionProperties(); + o.crossClusterSearch = crossClusterSearch; + o.endpoint = endpoint; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.java new file mode 100644 index 00000000000..90152ff7825 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/OutboundConnectionConnectionPropertiesCrossClusterSearch.java @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.opensearch.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OutboundConnectionConnectionPropertiesCrossClusterSearch { + /** + * @return Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + */ + private @Nullable String skipUnavailable; + + private OutboundConnectionConnectionPropertiesCrossClusterSearch() {} + /** + * @return Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + * + */ + public Optional skipUnavailable() { + return Optional.ofNullable(this.skipUnavailable); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OutboundConnectionConnectionPropertiesCrossClusterSearch defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String skipUnavailable; + public Builder() {} + public Builder(OutboundConnectionConnectionPropertiesCrossClusterSearch defaults) { + Objects.requireNonNull(defaults); + this.skipUnavailable = defaults.skipUnavailable; + } + + @CustomType.Setter + public Builder skipUnavailable(@Nullable String skipUnavailable) { + this.skipUnavailable = skipUnavailable; + return this; + } + public OutboundConnectionConnectionPropertiesCrossClusterSearch build() { + final var o = new OutboundConnectionConnectionPropertiesCrossClusterSearch(); + o.skipUnavailable = skipUnavailable; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersion.java b/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersion.java new file mode 100644 index 00000000000..b3e34ed250c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersion.java @@ -0,0 +1,520 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.rds; + +import com.pulumi.aws.Utilities; +import com.pulumi.aws.rds.CustomDbEngineVersionArgs; +import com.pulumi.aws.rds.inputs.CustomDbEngineVersionState; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). + * + * ## Example Usage + * ### RDS Custom for Oracle Usage + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.kms.Key; + * import com.pulumi.aws.kms.KeyArgs; + * import com.pulumi.aws.rds.CustomDbEngineVersion; + * import com.pulumi.aws.rds.CustomDbEngineVersionArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var exampleKey = new Key("exampleKey", KeyArgs.builder() + * .description("KMS symmetric key for RDS Custom for Oracle") + * .build()); + * + * var exampleCustomDbEngineVersion = new CustomDbEngineVersion("exampleCustomDbEngineVersion", CustomDbEngineVersionArgs.builder() + * .databaseInstallationFilesS3BucketName("DOC-EXAMPLE-BUCKET") + * .databaseInstallationFilesS3Prefix("1915_GI/") + * .engine("custom-oracle-ee-cdb") + * .engineVersion("19.cdb_cev1") + * .kmsKeyId(exampleKey.arn()) + * .manifest(""" + * { + * "databaseInstallationFileNames":["V982063-01.zip"] + * } + * """) + * .tags(Map.ofEntries( + * Map.entry("Name", "example"), + * Map.entry("Key", "value") + * )) + * .build()); + * + * } + * } + * ``` + * ### RDS Custom for Oracle External Manifest Usage + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.kms.Key; + * import com.pulumi.aws.kms.KeyArgs; + * import com.pulumi.aws.rds.CustomDbEngineVersion; + * import com.pulumi.aws.rds.CustomDbEngineVersionArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var exampleKey = new Key("exampleKey", KeyArgs.builder() + * .description("KMS symmetric key for RDS Custom for Oracle") + * .build()); + * + * var exampleCustomDbEngineVersion = new CustomDbEngineVersion("exampleCustomDbEngineVersion", CustomDbEngineVersionArgs.builder() + * .databaseInstallationFilesS3BucketName("DOC-EXAMPLE-BUCKET") + * .databaseInstallationFilesS3Prefix("1915_GI/") + * .engine("custom-oracle-ee-cdb") + * .engineVersion("19.cdb_cev1") + * .kmsKeyId(exampleKey.arn()) + * .filename("manifest_1915_GI.json") + * .manifestHash(computeFileBase64Sha256(manifest_1915_GI.json())) + * .tags(Map.ofEntries( + * Map.entry("Name", "example"), + * Map.entry("Key", "value") + * )) + * .build()); + * + * } + * } + * ``` + * ### RDS Custom for SQL Server Usage + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.rds.CustomDbEngineVersion; + * import com.pulumi.aws.rds.CustomDbEngineVersionArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var test = new CustomDbEngineVersion("test", CustomDbEngineVersionArgs.builder() + * .engine("custom-sqlserver-se") + * .engineVersion("15.00.4249.2.cev-1") + * .sourceImageId("ami-0aa12345678a12ab1") + * .build()); + * + * } + * } + * ``` + * ### RDS Custom for SQL Server Usage with AMI from another region + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.ec2.AmiCopy; + * import com.pulumi.aws.ec2.AmiCopyArgs; + * import com.pulumi.aws.rds.CustomDbEngineVersion; + * import com.pulumi.aws.rds.CustomDbEngineVersionArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var example = new AmiCopy("example", AmiCopyArgs.builder() + * .description("A copy of ami-xxxxxxxx") + * .sourceAmiId("ami-xxxxxxxx") + * .sourceAmiRegion("us-east-1") + * .build()); + * + * var test = new CustomDbEngineVersion("test", CustomDbEngineVersionArgs.builder() + * .engine("custom-sqlserver-se") + * .engineVersion("15.00.4249.2.cev-1") + * .sourceImageId(example.id()) + * .build()); + * + * } + * } + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { + * + * to = aws_rds_custom_db_engine_version.example + * + * id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 + * + */ +@ResourceType(type="aws:rds/customDbEngineVersion:CustomDbEngineVersion") +public class CustomDbEngineVersion extends com.pulumi.resources.CustomResource { + /** + * The Amazon Resource Name (ARN) for the custom engine version. + * + */ + @Export(name="arn", refs={String.class}, tree="[0]") + private Output arn; + + /** + * @return The Amazon Resource Name (ARN) for the custom engine version. + * + */ + public Output arn() { + return this.arn; + } + /** + * The date and time that the CEV was created. + * + */ + @Export(name="createTime", refs={String.class}, tree="[0]") + private Output createTime; + + /** + * @return The date and time that the CEV was created. + * + */ + public Output createTime() { + return this.createTime; + } + /** + * The name of the Amazon S3 bucket that contains the database installation files. + * + */ + @Export(name="databaseInstallationFilesS3BucketName", refs={String.class}, tree="[0]") + private Output databaseInstallationFilesS3BucketName; + + /** + * @return The name of the Amazon S3 bucket that contains the database installation files. + * + */ + public Output> databaseInstallationFilesS3BucketName() { + return Codegen.optional(this.databaseInstallationFilesS3BucketName); + } + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + @Export(name="databaseInstallationFilesS3Prefix", refs={String.class}, tree="[0]") + private Output databaseInstallationFilesS3Prefix; + + /** + * @return The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + public Output> databaseInstallationFilesS3Prefix() { + return Codegen.optional(this.databaseInstallationFilesS3Prefix); + } + /** + * The name of the DB parameter group family for the CEV. + * + */ + @Export(name="dbParameterGroupFamily", refs={String.class}, tree="[0]") + private Output dbParameterGroupFamily; + + /** + * @return The name of the DB parameter group family for the CEV. + * + */ + public Output dbParameterGroupFamily() { + return this.dbParameterGroupFamily; + } + /** + * The description of the CEV. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return The description of the CEV. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + @Export(name="engine", refs={String.class}, tree="[0]") + private Output engine; + + /** + * @return The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + public Output engine() { + return this.engine; + } + /** + * The version of the database engine. + * + */ + @Export(name="engineVersion", refs={String.class}, tree="[0]") + private Output engineVersion; + + /** + * @return The version of the database engine. + * + */ + public Output engineVersion() { + return this.engineVersion; + } + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + @Export(name="filename", refs={String.class}, tree="[0]") + private Output filename; + + /** + * @return The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + public Output> filename() { + return Codegen.optional(this.filename); + } + /** + * The ID of the AMI that was created with the CEV. + * + */ + @Export(name="imageId", refs={String.class}, tree="[0]") + private Output imageId; + + /** + * @return The ID of the AMI that was created with the CEV. + * + */ + public Output imageId() { + return this.imageId; + } + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + @Export(name="kmsKeyId", refs={String.class}, tree="[0]") + private Output kmsKeyId; + + /** + * @return The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + public Output kmsKeyId() { + return this.kmsKeyId; + } + /** + * The major version of the database engine. + * + */ + @Export(name="majorEngineVersion", refs={String.class}, tree="[0]") + private Output majorEngineVersion; + + /** + * @return The major version of the database engine. + * + */ + public Output majorEngineVersion() { + return this.majorEngineVersion; + } + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + @Export(name="manifest", refs={String.class}, tree="[0]") + private Output manifest; + + /** + * @return The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + public Output> manifest() { + return Codegen.optional(this.manifest); + } + /** + * The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + */ + @Export(name="manifestComputed", refs={String.class}, tree="[0]") + private Output manifestComputed; + + /** + * @return The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + */ + public Output manifestComputed() { + return this.manifestComputed; + } + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + @Export(name="manifestHash", refs={String.class}, tree="[0]") + private Output manifestHash; + + /** + * @return Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + public Output> manifestHash() { + return Codegen.optional(this.manifestHash); + } + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + @Export(name="sourceImageId", refs={String.class}, tree="[0]") + private Output sourceImageId; + + /** + * @return The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + public Output> sourceImageId() { + return Codegen.optional(this.sourceImageId); + } + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + @Export(name="status", refs={String.class}, tree="[0]") + private Output status; + + /** + * @return The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + public Output status() { + return this.status; + } + /** + * A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tagsAll; + + /** + * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + */ + public Output> tagsAll() { + return this.tagsAll; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public CustomDbEngineVersion(String name) { + this(name, CustomDbEngineVersionArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public CustomDbEngineVersion(String name, CustomDbEngineVersionArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public CustomDbEngineVersion(String name, CustomDbEngineVersionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, args == null ? CustomDbEngineVersionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private CustomDbEngineVersion(String name, Output id, @Nullable CustomDbEngineVersionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("aws:rds/customDbEngineVersion:CustomDbEngineVersion", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .additionalSecretOutputs(List.of( + "tagsAll" + )) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static CustomDbEngineVersion get(String name, Output id, @Nullable CustomDbEngineVersionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new CustomDbEngineVersion(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersionArgs.java b/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersionArgs.java new file mode 100644 index 00000000000..18b3ecc823d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/CustomDbEngineVersionArgs.java @@ -0,0 +1,493 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.rds; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class CustomDbEngineVersionArgs extends com.pulumi.resources.ResourceArgs { + + public static final CustomDbEngineVersionArgs Empty = new CustomDbEngineVersionArgs(); + + /** + * The name of the Amazon S3 bucket that contains the database installation files. + * + */ + @Import(name="databaseInstallationFilesS3BucketName") + private @Nullable Output databaseInstallationFilesS3BucketName; + + /** + * @return The name of the Amazon S3 bucket that contains the database installation files. + * + */ + public Optional> databaseInstallationFilesS3BucketName() { + return Optional.ofNullable(this.databaseInstallationFilesS3BucketName); + } + + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + @Import(name="databaseInstallationFilesS3Prefix") + private @Nullable Output databaseInstallationFilesS3Prefix; + + /** + * @return The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + public Optional> databaseInstallationFilesS3Prefix() { + return Optional.ofNullable(this.databaseInstallationFilesS3Prefix); + } + + /** + * The description of the CEV. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the CEV. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + @Import(name="engine", required=true) + private Output engine; + + /** + * @return The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + public Output engine() { + return this.engine; + } + + /** + * The version of the database engine. + * + */ + @Import(name="engineVersion", required=true) + private Output engineVersion; + + /** + * @return The version of the database engine. + * + */ + public Output engineVersion() { + return this.engineVersion; + } + + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + @Import(name="filename") + private @Nullable Output filename; + + /** + * @return The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + public Optional> filename() { + return Optional.ofNullable(this.filename); + } + + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + @Import(name="kmsKeyId") + private @Nullable Output kmsKeyId; + + /** + * @return The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + public Optional> kmsKeyId() { + return Optional.ofNullable(this.kmsKeyId); + } + + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + @Import(name="manifest") + private @Nullable Output manifest; + + /** + * @return The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + public Optional> manifest() { + return Optional.ofNullable(this.manifest); + } + + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + @Import(name="manifestHash") + private @Nullable Output manifestHash; + + /** + * @return Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + public Optional> manifestHash() { + return Optional.ofNullable(this.manifestHash); + } + + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + @Import(name="sourceImageId") + private @Nullable Output sourceImageId; + + /** + * @return The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + public Optional> sourceImageId() { + return Optional.ofNullable(this.sourceImageId); + } + + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + @Import(name="status") + private @Nullable Output status; + + /** + * @return The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + public Optional> status() { + return Optional.ofNullable(this.status); + } + + /** + * A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private CustomDbEngineVersionArgs() {} + + private CustomDbEngineVersionArgs(CustomDbEngineVersionArgs $) { + this.databaseInstallationFilesS3BucketName = $.databaseInstallationFilesS3BucketName; + this.databaseInstallationFilesS3Prefix = $.databaseInstallationFilesS3Prefix; + this.description = $.description; + this.engine = $.engine; + this.engineVersion = $.engineVersion; + this.filename = $.filename; + this.kmsKeyId = $.kmsKeyId; + this.manifest = $.manifest; + this.manifestHash = $.manifestHash; + this.sourceImageId = $.sourceImageId; + this.status = $.status; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(CustomDbEngineVersionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private CustomDbEngineVersionArgs $; + + public Builder() { + $ = new CustomDbEngineVersionArgs(); + } + + public Builder(CustomDbEngineVersionArgs defaults) { + $ = new CustomDbEngineVersionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param databaseInstallationFilesS3BucketName The name of the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3BucketName(@Nullable Output databaseInstallationFilesS3BucketName) { + $.databaseInstallationFilesS3BucketName = databaseInstallationFilesS3BucketName; + return this; + } + + /** + * @param databaseInstallationFilesS3BucketName The name of the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3BucketName(String databaseInstallationFilesS3BucketName) { + return databaseInstallationFilesS3BucketName(Output.of(databaseInstallationFilesS3BucketName)); + } + + /** + * @param databaseInstallationFilesS3Prefix The prefix for the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3Prefix(@Nullable Output databaseInstallationFilesS3Prefix) { + $.databaseInstallationFilesS3Prefix = databaseInstallationFilesS3Prefix; + return this; + } + + /** + * @param databaseInstallationFilesS3Prefix The prefix for the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3Prefix(String databaseInstallationFilesS3Prefix) { + return databaseInstallationFilesS3Prefix(Output.of(databaseInstallationFilesS3Prefix)); + } + + /** + * @param description The description of the CEV. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the CEV. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param engine The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + * @return builder + * + */ + public Builder engine(Output engine) { + $.engine = engine; + return this; + } + + /** + * @param engine The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + * @return builder + * + */ + public Builder engine(String engine) { + return engine(Output.of(engine)); + } + + /** + * @param engineVersion The version of the database engine. + * + * @return builder + * + */ + public Builder engineVersion(Output engineVersion) { + $.engineVersion = engineVersion; + return this; + } + + /** + * @param engineVersion The version of the database engine. + * + * @return builder + * + */ + public Builder engineVersion(String engineVersion) { + return engineVersion(Output.of(engineVersion)); + } + + /** + * @param filename The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + * @return builder + * + */ + public Builder filename(@Nullable Output filename) { + $.filename = filename; + return this; + } + + /** + * @param filename The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + * @return builder + * + */ + public Builder filename(String filename) { + return filename(Output.of(filename)); + } + + /** + * @param kmsKeyId The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + * @return builder + * + */ + public Builder kmsKeyId(@Nullable Output kmsKeyId) { + $.kmsKeyId = kmsKeyId; + return this; + } + + /** + * @param kmsKeyId The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + * @return builder + * + */ + public Builder kmsKeyId(String kmsKeyId) { + return kmsKeyId(Output.of(kmsKeyId)); + } + + /** + * @param manifest The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + * @return builder + * + */ + public Builder manifest(@Nullable Output manifest) { + $.manifest = manifest; + return this; + } + + /** + * @param manifest The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + * @return builder + * + */ + public Builder manifest(String manifest) { + return manifest(Output.of(manifest)); + } + + /** + * @param manifestHash Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + * @return builder + * + */ + public Builder manifestHash(@Nullable Output manifestHash) { + $.manifestHash = manifestHash; + return this; + } + + /** + * @param manifestHash Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + * @return builder + * + */ + public Builder manifestHash(String manifestHash) { + return manifestHash(Output.of(manifestHash)); + } + + /** + * @param sourceImageId The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + * @return builder + * + */ + public Builder sourceImageId(@Nullable Output sourceImageId) { + $.sourceImageId = sourceImageId; + return this; + } + + /** + * @param sourceImageId The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + * @return builder + * + */ + public Builder sourceImageId(String sourceImageId) { + return sourceImageId(Output.of(sourceImageId)); + } + + /** + * @param status The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + * @return builder + * + */ + public Builder status(@Nullable Output status) { + $.status = status; + return this; + } + + /** + * @param status The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + * @return builder + * + */ + public Builder status(String status) { + return status(Output.of(status)); + } + + /** + * @param tags A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public CustomDbEngineVersionArgs build() { + $.engine = Objects.requireNonNull($.engine, "expected parameter 'engine' to be non-null"); + $.engineVersion = Objects.requireNonNull($.engineVersion, "expected parameter 'engineVersion' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/inputs/CustomDbEngineVersionState.java b/sdk/java/src/main/java/com/pulumi/aws/rds/inputs/CustomDbEngineVersionState.java new file mode 100644 index 00000000000..2df9fbd2885 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/inputs/CustomDbEngineVersionState.java @@ -0,0 +1,766 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.rds.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class CustomDbEngineVersionState extends com.pulumi.resources.ResourceArgs { + + public static final CustomDbEngineVersionState Empty = new CustomDbEngineVersionState(); + + /** + * The Amazon Resource Name (ARN) for the custom engine version. + * + */ + @Import(name="arn") + private @Nullable Output arn; + + /** + * @return The Amazon Resource Name (ARN) for the custom engine version. + * + */ + public Optional> arn() { + return Optional.ofNullable(this.arn); + } + + /** + * The date and time that the CEV was created. + * + */ + @Import(name="createTime") + private @Nullable Output createTime; + + /** + * @return The date and time that the CEV was created. + * + */ + public Optional> createTime() { + return Optional.ofNullable(this.createTime); + } + + /** + * The name of the Amazon S3 bucket that contains the database installation files. + * + */ + @Import(name="databaseInstallationFilesS3BucketName") + private @Nullable Output databaseInstallationFilesS3BucketName; + + /** + * @return The name of the Amazon S3 bucket that contains the database installation files. + * + */ + public Optional> databaseInstallationFilesS3BucketName() { + return Optional.ofNullable(this.databaseInstallationFilesS3BucketName); + } + + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + @Import(name="databaseInstallationFilesS3Prefix") + private @Nullable Output databaseInstallationFilesS3Prefix; + + /** + * @return The prefix for the Amazon S3 bucket that contains the database installation files. + * + */ + public Optional> databaseInstallationFilesS3Prefix() { + return Optional.ofNullable(this.databaseInstallationFilesS3Prefix); + } + + /** + * The name of the DB parameter group family for the CEV. + * + */ + @Import(name="dbParameterGroupFamily") + private @Nullable Output dbParameterGroupFamily; + + /** + * @return The name of the DB parameter group family for the CEV. + * + */ + public Optional> dbParameterGroupFamily() { + return Optional.ofNullable(this.dbParameterGroupFamily); + } + + /** + * The description of the CEV. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return The description of the CEV. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + @Import(name="engine") + private @Nullable Output engine; + + /** + * @return The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + */ + public Optional> engine() { + return Optional.ofNullable(this.engine); + } + + /** + * The version of the database engine. + * + */ + @Import(name="engineVersion") + private @Nullable Output engineVersion; + + /** + * @return The version of the database engine. + * + */ + public Optional> engineVersion() { + return Optional.ofNullable(this.engineVersion); + } + + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + @Import(name="filename") + private @Nullable Output filename; + + /** + * @return The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + */ + public Optional> filename() { + return Optional.ofNullable(this.filename); + } + + /** + * The ID of the AMI that was created with the CEV. + * + */ + @Import(name="imageId") + private @Nullable Output imageId; + + /** + * @return The ID of the AMI that was created with the CEV. + * + */ + public Optional> imageId() { + return Optional.ofNullable(this.imageId); + } + + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + @Import(name="kmsKeyId") + private @Nullable Output kmsKeyId; + + /** + * @return The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + */ + public Optional> kmsKeyId() { + return Optional.ofNullable(this.kmsKeyId); + } + + /** + * The major version of the database engine. + * + */ + @Import(name="majorEngineVersion") + private @Nullable Output majorEngineVersion; + + /** + * @return The major version of the database engine. + * + */ + public Optional> majorEngineVersion() { + return Optional.ofNullable(this.majorEngineVersion); + } + + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + @Import(name="manifest") + private @Nullable Output manifest; + + /** + * @return The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + */ + public Optional> manifest() { + return Optional.ofNullable(this.manifest); + } + + /** + * The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + */ + @Import(name="manifestComputed") + private @Nullable Output manifestComputed; + + /** + * @return The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + */ + public Optional> manifestComputed() { + return Optional.ofNullable(this.manifestComputed); + } + + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + @Import(name="manifestHash") + private @Nullable Output manifestHash; + + /** + * @return Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + */ + public Optional> manifestHash() { + return Optional.ofNullable(this.manifestHash); + } + + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + @Import(name="sourceImageId") + private @Nullable Output sourceImageId; + + /** + * @return The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + */ + public Optional> sourceImageId() { + return Optional.ofNullable(this.sourceImageId); + } + + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + @Import(name="status") + private @Nullable Output status; + + /** + * @return The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + */ + public Optional> status() { + return Optional.ofNullable(this.status); + } + + /** + * A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + @Import(name="tagsAll") + private @Nullable Output> tagsAll; + + /** + * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Optional>> tagsAll() { + return Optional.ofNullable(this.tagsAll); + } + + private CustomDbEngineVersionState() {} + + private CustomDbEngineVersionState(CustomDbEngineVersionState $) { + this.arn = $.arn; + this.createTime = $.createTime; + this.databaseInstallationFilesS3BucketName = $.databaseInstallationFilesS3BucketName; + this.databaseInstallationFilesS3Prefix = $.databaseInstallationFilesS3Prefix; + this.dbParameterGroupFamily = $.dbParameterGroupFamily; + this.description = $.description; + this.engine = $.engine; + this.engineVersion = $.engineVersion; + this.filename = $.filename; + this.imageId = $.imageId; + this.kmsKeyId = $.kmsKeyId; + this.majorEngineVersion = $.majorEngineVersion; + this.manifest = $.manifest; + this.manifestComputed = $.manifestComputed; + this.manifestHash = $.manifestHash; + this.sourceImageId = $.sourceImageId; + this.status = $.status; + this.tags = $.tags; + this.tagsAll = $.tagsAll; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(CustomDbEngineVersionState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private CustomDbEngineVersionState $; + + public Builder() { + $ = new CustomDbEngineVersionState(); + } + + public Builder(CustomDbEngineVersionState defaults) { + $ = new CustomDbEngineVersionState(Objects.requireNonNull(defaults)); + } + + /** + * @param arn The Amazon Resource Name (ARN) for the custom engine version. + * + * @return builder + * + */ + public Builder arn(@Nullable Output arn) { + $.arn = arn; + return this; + } + + /** + * @param arn The Amazon Resource Name (ARN) for the custom engine version. + * + * @return builder + * + */ + public Builder arn(String arn) { + return arn(Output.of(arn)); + } + + /** + * @param createTime The date and time that the CEV was created. + * + * @return builder + * + */ + public Builder createTime(@Nullable Output createTime) { + $.createTime = createTime; + return this; + } + + /** + * @param createTime The date and time that the CEV was created. + * + * @return builder + * + */ + public Builder createTime(String createTime) { + return createTime(Output.of(createTime)); + } + + /** + * @param databaseInstallationFilesS3BucketName The name of the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3BucketName(@Nullable Output databaseInstallationFilesS3BucketName) { + $.databaseInstallationFilesS3BucketName = databaseInstallationFilesS3BucketName; + return this; + } + + /** + * @param databaseInstallationFilesS3BucketName The name of the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3BucketName(String databaseInstallationFilesS3BucketName) { + return databaseInstallationFilesS3BucketName(Output.of(databaseInstallationFilesS3BucketName)); + } + + /** + * @param databaseInstallationFilesS3Prefix The prefix for the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3Prefix(@Nullable Output databaseInstallationFilesS3Prefix) { + $.databaseInstallationFilesS3Prefix = databaseInstallationFilesS3Prefix; + return this; + } + + /** + * @param databaseInstallationFilesS3Prefix The prefix for the Amazon S3 bucket that contains the database installation files. + * + * @return builder + * + */ + public Builder databaseInstallationFilesS3Prefix(String databaseInstallationFilesS3Prefix) { + return databaseInstallationFilesS3Prefix(Output.of(databaseInstallationFilesS3Prefix)); + } + + /** + * @param dbParameterGroupFamily The name of the DB parameter group family for the CEV. + * + * @return builder + * + */ + public Builder dbParameterGroupFamily(@Nullable Output dbParameterGroupFamily) { + $.dbParameterGroupFamily = dbParameterGroupFamily; + return this; + } + + /** + * @param dbParameterGroupFamily The name of the DB parameter group family for the CEV. + * + * @return builder + * + */ + public Builder dbParameterGroupFamily(String dbParameterGroupFamily) { + return dbParameterGroupFamily(Output.of(dbParameterGroupFamily)); + } + + /** + * @param description The description of the CEV. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description The description of the CEV. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param engine The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + * @return builder + * + */ + public Builder engine(@Nullable Output engine) { + $.engine = engine; + return this; + } + + /** + * @param engine The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + * + * @return builder + * + */ + public Builder engine(String engine) { + return engine(Output.of(engine)); + } + + /** + * @param engineVersion The version of the database engine. + * + * @return builder + * + */ + public Builder engineVersion(@Nullable Output engineVersion) { + $.engineVersion = engineVersion; + return this; + } + + /** + * @param engineVersion The version of the database engine. + * + * @return builder + * + */ + public Builder engineVersion(String engineVersion) { + return engineVersion(Output.of(engineVersion)); + } + + /** + * @param filename The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + * @return builder + * + */ + public Builder filename(@Nullable Output filename) { + $.filename = filename; + return this; + } + + /** + * @param filename The name of the manifest file within the local filesystem. Conflicts with `manifest`. + * + * @return builder + * + */ + public Builder filename(String filename) { + return filename(Output.of(filename)); + } + + /** + * @param imageId The ID of the AMI that was created with the CEV. + * + * @return builder + * + */ + public Builder imageId(@Nullable Output imageId) { + $.imageId = imageId; + return this; + } + + /** + * @param imageId The ID of the AMI that was created with the CEV. + * + * @return builder + * + */ + public Builder imageId(String imageId) { + return imageId(Output.of(imageId)); + } + + /** + * @param kmsKeyId The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + * @return builder + * + */ + public Builder kmsKeyId(@Nullable Output kmsKeyId) { + $.kmsKeyId = kmsKeyId; + return this; + } + + /** + * @param kmsKeyId The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + * + * @return builder + * + */ + public Builder kmsKeyId(String kmsKeyId) { + return kmsKeyId(Output.of(kmsKeyId)); + } + + /** + * @param majorEngineVersion The major version of the database engine. + * + * @return builder + * + */ + public Builder majorEngineVersion(@Nullable Output majorEngineVersion) { + $.majorEngineVersion = majorEngineVersion; + return this; + } + + /** + * @param majorEngineVersion The major version of the database engine. + * + * @return builder + * + */ + public Builder majorEngineVersion(String majorEngineVersion) { + return majorEngineVersion(Output.of(majorEngineVersion)); + } + + /** + * @param manifest The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + * @return builder + * + */ + public Builder manifest(@Nullable Output manifest) { + $.manifest = manifest; + return this; + } + + /** + * @param manifest The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + * + * @return builder + * + */ + public Builder manifest(String manifest) { + return manifest(Output.of(manifest)); + } + + /** + * @param manifestComputed The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + * @return builder + * + */ + public Builder manifestComputed(@Nullable Output manifestComputed) { + $.manifestComputed = manifestComputed; + return this; + } + + /** + * @param manifestComputed The returned manifest file, in JSON format, service generated and often different from input `manifest`. + * + * @return builder + * + */ + public Builder manifestComputed(String manifestComputed) { + return manifestComputed(Output.of(manifestComputed)); + } + + /** + * @param manifestHash Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + * @return builder + * + */ + public Builder manifestHash(@Nullable Output manifestHash) { + $.manifestHash = manifestHash; + return this; + } + + /** + * @param manifestHash Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + * + * @return builder + * + */ + public Builder manifestHash(String manifestHash) { + return manifestHash(Output.of(manifestHash)); + } + + /** + * @param sourceImageId The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + * @return builder + * + */ + public Builder sourceImageId(@Nullable Output sourceImageId) { + $.sourceImageId = sourceImageId; + return this; + } + + /** + * @param sourceImageId The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + * + * @return builder + * + */ + public Builder sourceImageId(String sourceImageId) { + return sourceImageId(Output.of(sourceImageId)); + } + + /** + * @param status The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + * @return builder + * + */ + public Builder status(@Nullable Output status) { + $.status = status; + return this; + } + + /** + * @param status The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + * + * @return builder + * + */ + public Builder status(String status) { + return status(Output.of(status)); + } + + /** + * @param tags A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(@Nullable Output> tagsAll) { + $.tagsAll = tagsAll; + return this; + } + + /** + * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + * + * @return builder + * + * @deprecated + * Please use `tags` instead. + * + */ + @Deprecated /* Please use `tags` instead. */ + public Builder tagsAll(Map tagsAll) { + return tagsAll(Output.of(tagsAll)); + } + + public CustomDbEngineVersionState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/HostedZoneDnsSec.java b/sdk/java/src/main/java/com/pulumi/aws/route53/HostedZoneDnsSec.java index b2003ea8a64..5f2c5dae3ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/HostedZoneDnsSec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/HostedZoneDnsSec.java @@ -19,6 +19,8 @@ * * !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. * + * > **Note:** Route53 hosted zones are global resources, and as such any `aws.kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `aws.kms.Key` resource as described in the provider alias documentation. + * * ## Example Usage * ```java * package generated_program; diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java index dd5ffbb3aeb..525ef2173d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java @@ -88,7 +88,7 @@ public final class GetBucketObjectResult { */ private String lastModified; /** - * @return Map of metadata stored with the object in S3 + * @return Map of metadata stored with the object in S3. Keys are always returned in lowercase. * */ private Map metadata; @@ -244,7 +244,7 @@ public String lastModified() { return this.lastModified; } /** - * @return Map of metadata stored with the object in S3 + * @return Map of metadata stored with the object in S3. Keys are always returned in lowercase. * */ public Map metadata() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java index e85d8e5a68f..e91f86f3a37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java @@ -103,7 +103,7 @@ public final class GetObjectResult { */ private String lastModified; /** - * @return Map of metadata stored with the object in S3 + * @return Map of metadata stored with the object in S3. Keys are always returned in lowercase. * */ private Map metadata; @@ -284,7 +284,7 @@ public String lastModified() { return this.lastModified; } /** - * @return Map of metadata stored with the object in S3 + * @return Map of metadata stored with the object in S3. Keys are always returned in lowercase. * */ public Map metadata() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/inputs/AliasRoutingConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/inputs/AliasRoutingConfigurationArgs.java index 58c845364d9..339ac8d1298 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/inputs/AliasRoutingConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/inputs/AliasRoutingConfigurationArgs.java @@ -15,14 +15,14 @@ public final class AliasRoutingConfigurationArgs extends com.pulumi.resources.Re public static final AliasRoutingConfigurationArgs Empty = new AliasRoutingConfigurationArgs(); /** - * A version of the state machine. + * The Amazon Resource Name (ARN) of the state machine version. * */ @Import(name="stateMachineVersionArn", required=true) private Output stateMachineVersionArn; /** - * @return A version of the state machine. + * @return The Amazon Resource Name (ARN) of the state machine version. * */ public Output stateMachineVersionArn() { @@ -32,8 +32,6 @@ public Output stateMachineVersionArn() { /** * Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * */ @Import(name="weight", required=true) private Output weight; @@ -41,8 +39,6 @@ public Output stateMachineVersionArn() { /** * @return Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * */ public Output weight() { return this.weight; @@ -74,7 +70,7 @@ public Builder(AliasRoutingConfigurationArgs defaults) { } /** - * @param stateMachineVersionArn A version of the state machine. + * @param stateMachineVersionArn The Amazon Resource Name (ARN) of the state machine version. * * @return builder * @@ -85,7 +81,7 @@ public Builder stateMachineVersionArn(Output stateMachineVersionArn) { } /** - * @param stateMachineVersionArn A version of the state machine. + * @param stateMachineVersionArn The Amazon Resource Name (ARN) of the state machine version. * * @return builder * @@ -97,8 +93,6 @@ public Builder stateMachineVersionArn(String stateMachineVersionArn) { /** * @param weight Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * * @return builder * */ @@ -110,8 +104,6 @@ public Builder weight(Output weight) { /** * @param weight Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/AliasRoutingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/AliasRoutingConfiguration.java index 6b7b8a6016b..f2c7d693f4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/AliasRoutingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/AliasRoutingConfiguration.java @@ -11,21 +11,19 @@ @CustomType public final class AliasRoutingConfiguration { /** - * @return A version of the state machine. + * @return The Amazon Resource Name (ARN) of the state machine version. * */ private String stateMachineVersionArn; /** * @return Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * */ private Integer weight; private AliasRoutingConfiguration() {} /** - * @return A version of the state machine. + * @return The Amazon Resource Name (ARN) of the state machine version. * */ public String stateMachineVersionArn() { @@ -34,8 +32,6 @@ public String stateMachineVersionArn() { /** * @return Percentage of traffic routed to the state machine version. * - * The following arguments are optional: - * */ public Integer weight() { return this.weight; diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRule.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRule.java index dedef4c72fe..b59a9bb2f9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRule.java @@ -154,28 +154,28 @@ @ResourceType(type="aws:vpclattice/listenerRule:ListenerRule") public class ListenerRule extends com.pulumi.resources.CustomResource { /** - * The action for the default rule. + * The action for the listener rule. * */ @Export(name="action", refs={ListenerRuleAction.class}, tree="[0]") private Output action; /** - * @return The action for the default rule. + * @return The action for the listener rule. * */ public Output action() { return this.action; } /** - * ARN of the target group. + * The ARN for the listener rule. * */ @Export(name="arn", refs={String.class}, tree="[0]") private Output arn; /** - * @return ARN of the target group. + * @return The ARN for the listener rule. * */ public Output arn() { @@ -242,14 +242,14 @@ public Output priority() { return this.priority; } /** - * Unique identifier for the target group. + * Unique identifier for the listener rule. * */ @Export(name="ruleId", refs={String.class}, tree="[0]") private Output ruleId; /** - * @return Unique identifier for the target group. + * @return Unique identifier for the listener rule. * */ public Output ruleId() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRuleArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRuleArgs.java index 44081188db2..3be660e00e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/ListenerRuleArgs.java @@ -20,14 +20,14 @@ public final class ListenerRuleArgs extends com.pulumi.resources.ResourceArgs { public static final ListenerRuleArgs Empty = new ListenerRuleArgs(); /** - * The action for the default rule. + * The action for the listener rule. * */ @Import(name="action", required=true) private Output action; /** - * @return The action for the default rule. + * @return The action for the listener rule. * */ public Output action() { @@ -159,7 +159,7 @@ public Builder(ListenerRuleArgs defaults) { } /** - * @param action The action for the default rule. + * @param action The action for the listener rule. * * @return builder * @@ -170,7 +170,7 @@ public Builder action(Output action) { } /** - * @param action The action for the default rule. + * @param action The action for the listener rule. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/TargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/TargetGroup.java index ed4ef502699..cbe2586b8da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/TargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/TargetGroup.java @@ -47,9 +47,9 @@ * var example = new TargetGroup("example", TargetGroupArgs.builder() * .type("INSTANCE") * .config(TargetGroupConfigArgs.builder() + * .vpcIdentifier(aws_vpc.example().id()) * .port(443) * .protocol("HTTPS") - * .vpcIdentifier(aws_vpc.example().id()) * .build()) * .build()); * @@ -82,11 +82,12 @@ * * public static void stack(Context ctx) { * var example = new TargetGroup("example", TargetGroupArgs.builder() - * .type("ALB") + * .type("IP") * .config(TargetGroupConfigArgs.builder() + * .vpcIdentifier(aws_vpc.example().id()) + * .ipAddressType("IPV4") * .port(443) * .protocol("HTTPS") - * .vpcIdentifier(aws_vpc.example().id()) * .protocolVersion("HTTP1") * .healthCheck(TargetGroupConfigHealthCheckArgs.builder() * .enabled(true) @@ -108,6 +109,44 @@ * } * } * ``` + * ### ALB + * + * If the type is ALB, `health_check` block is not supported. + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.aws.vpclattice.TargetGroup; + * import com.pulumi.aws.vpclattice.TargetGroupArgs; + * import com.pulumi.aws.vpclattice.inputs.TargetGroupConfigArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var example = new TargetGroup("example", TargetGroupArgs.builder() + * .type("ALB") + * .config(TargetGroupConfigArgs.builder() + * .vpcIdentifier(aws_vpc.example().id()) + * .port(443) + * .protocol("HTTPS") + * .protocolVersion("HTTP1") + * .build()) + * .build()); + * + * } + * } + * ``` * ### Lambda * * If the type is Lambda, `config` block is not supported. diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/VpclatticeFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/VpclatticeFunctions.java index 8d448ee3854..59b1ecb0430 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/VpclatticeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/VpclatticeFunctions.java @@ -729,7 +729,7 @@ public static CompletableFuture getServicePlain(GetServicePlai * * public static void stack(Context ctx) { * final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder() - * .serviceNetworkIdentifier("") + * .serviceNetworkIdentifier("snsa-01112223334445556") * .build()); * * } @@ -767,7 +767,7 @@ public static Output getServiceNetwork(GetServiceNetwor * * public static void stack(Context ctx) { * final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder() - * .serviceNetworkIdentifier("") + * .serviceNetworkIdentifier("snsa-01112223334445556") * .build()); * * } @@ -805,7 +805,7 @@ public static CompletableFuture getServiceNetworkPlain( * * public static void stack(Context ctx) { * final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder() - * .serviceNetworkIdentifier("") + * .serviceNetworkIdentifier("snsa-01112223334445556") * .build()); * * } @@ -843,7 +843,7 @@ public static Output getServiceNetwork(GetServiceNetwor * * public static void stack(Context ctx) { * final var example = VpclatticeFunctions.getServiceNetwork(GetServiceNetworkArgs.builder() - * .serviceNetworkIdentifier("") + * .serviceNetworkIdentifier("snsa-01112223334445556") * .build()); * * } diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceArgs.java index 81d2197953e..a79a0165eb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceArgs.java @@ -32,14 +32,14 @@ public Optional> name() { } /** - * ID or Amazon Resource Name (ARN) of the service network. + * ID or Amazon Resource Name (ARN) of the service. * */ @Import(name="serviceIdentifier") private @Nullable Output serviceIdentifier; /** - * @return ID or Amazon Resource Name (ARN) of the service network. + * @return ID or Amazon Resource Name (ARN) of the service. * */ public Optional> serviceIdentifier() { @@ -109,7 +109,7 @@ public Builder name(String name) { } /** - * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service network. + * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service. * * @return builder * @@ -120,7 +120,7 @@ public Builder serviceIdentifier(@Nullable Output serviceIdentifier) { } /** - * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service network. + * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkArgs.java index e9bb59be645..f4ac15165b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkArgs.java @@ -17,14 +17,14 @@ public final class GetServiceNetworkArgs extends com.pulumi.resources.InvokeArgs public static final GetServiceNetworkArgs Empty = new GetServiceNetworkArgs(); /** - * Identifier of the network service. + * Identifier of the service network. * */ @Import(name="serviceNetworkIdentifier", required=true) private Output serviceNetworkIdentifier; /** - * @return Identifier of the network service. + * @return Identifier of the service network. * */ public Output serviceNetworkIdentifier() { @@ -64,7 +64,7 @@ public Builder(GetServiceNetworkArgs defaults) { } /** - * @param serviceNetworkIdentifier Identifier of the network service. + * @param serviceNetworkIdentifier Identifier of the service network. * * @return builder * @@ -75,7 +75,7 @@ public Builder serviceNetworkIdentifier(Output serviceNetworkIdentifier) } /** - * @param serviceNetworkIdentifier Identifier of the network service. + * @param serviceNetworkIdentifier Identifier of the service network. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkPlainArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkPlainArgs.java index f067afcbf9c..2119642db8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServiceNetworkPlainArgs.java @@ -16,14 +16,14 @@ public final class GetServiceNetworkPlainArgs extends com.pulumi.resources.Invok public static final GetServiceNetworkPlainArgs Empty = new GetServiceNetworkPlainArgs(); /** - * Identifier of the network service. + * Identifier of the service network. * */ @Import(name="serviceNetworkIdentifier", required=true) private String serviceNetworkIdentifier; /** - * @return Identifier of the network service. + * @return Identifier of the service network. * */ public String serviceNetworkIdentifier() { @@ -63,7 +63,7 @@ public Builder(GetServiceNetworkPlainArgs defaults) { } /** - * @param serviceNetworkIdentifier Identifier of the network service. + * @param serviceNetworkIdentifier Identifier of the service network. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServicePlainArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServicePlainArgs.java index 64e1a9eeadd..eef0ce1efd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServicePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/GetServicePlainArgs.java @@ -31,14 +31,14 @@ public Optional name() { } /** - * ID or Amazon Resource Name (ARN) of the service network. + * ID or Amazon Resource Name (ARN) of the service. * */ @Import(name="serviceIdentifier") private @Nullable String serviceIdentifier; /** - * @return ID or Amazon Resource Name (ARN) of the service network. + * @return ID or Amazon Resource Name (ARN) of the service. * */ public Optional serviceIdentifier() { @@ -98,7 +98,7 @@ public Builder name(@Nullable String name) { } /** - * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service network. + * @param serviceIdentifier ID or Amazon Resource Name (ARN) of the service. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/ListenerRuleState.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/ListenerRuleState.java index d8efaffa880..5cd234d5fb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/ListenerRuleState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/ListenerRuleState.java @@ -20,14 +20,14 @@ public final class ListenerRuleState extends com.pulumi.resources.ResourceArgs { public static final ListenerRuleState Empty = new ListenerRuleState(); /** - * The action for the default rule. + * The action for the listener rule. * */ @Import(name="action") private @Nullable Output action; /** - * @return The action for the default rule. + * @return The action for the listener rule. * */ public Optional> action() { @@ -35,14 +35,14 @@ public Optional> action() { } /** - * ARN of the target group. + * The ARN for the listener rule. * */ @Import(name="arn") private @Nullable Output arn; /** - * @return ARN of the target group. + * @return The ARN for the listener rule. * */ public Optional> arn() { @@ -114,14 +114,14 @@ public Optional> priority() { } /** - * Unique identifier for the target group. + * Unique identifier for the listener rule. * */ @Import(name="ruleId") private @Nullable Output ruleId; /** - * @return Unique identifier for the target group. + * @return Unique identifier for the listener rule. * */ public Optional> ruleId() { @@ -215,7 +215,7 @@ public Builder(ListenerRuleState defaults) { } /** - * @param action The action for the default rule. + * @param action The action for the listener rule. * * @return builder * @@ -226,7 +226,7 @@ public Builder action(@Nullable Output action) { } /** - * @param action The action for the default rule. + * @param action The action for the listener rule. * * @return builder * @@ -236,7 +236,7 @@ public Builder action(ListenerRuleActionArgs action) { } /** - * @param arn ARN of the target group. + * @param arn The ARN for the listener rule. * * @return builder * @@ -247,7 +247,7 @@ public Builder arn(@Nullable Output arn) { } /** - * @param arn ARN of the target group. + * @param arn The ARN for the listener rule. * * @return builder * @@ -345,7 +345,7 @@ public Builder priority(Integer priority) { } /** - * @param ruleId Unique identifier for the target group. + * @param ruleId Unique identifier for the listener rule. * * @return builder * @@ -356,7 +356,7 @@ public Builder ruleId(@Nullable Output ruleId) { } /** - * @param ruleId Unique identifier for the target group. + * @param ruleId Unique identifier for the listener rule. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/TargetGroupAttachmentTargetArgs.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/TargetGroupAttachmentTargetArgs.java index 81ce92fe5d1..af39f4ac5a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/TargetGroupAttachmentTargetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/inputs/TargetGroupAttachmentTargetArgs.java @@ -32,14 +32,14 @@ public Output id() { } /** - * The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * */ @Import(name="port") private @Nullable Output port; /** - * @return The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * @return This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * */ public Optional> port() { @@ -93,7 +93,7 @@ public Builder id(String id) { } /** - * @param port The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * @param port This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * * @return builder * @@ -104,7 +104,7 @@ public Builder port(@Nullable Output port) { } /** - * @param port The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * @param port This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/outputs/TargetGroupAttachmentTarget.java b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/outputs/TargetGroupAttachmentTarget.java index 7c4325a251b..ed8bc566f1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/vpclattice/outputs/TargetGroupAttachmentTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/vpclattice/outputs/TargetGroupAttachmentTarget.java @@ -18,7 +18,7 @@ public final class TargetGroupAttachmentTarget { */ private String id; /** - * @return The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * @return This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * */ private @Nullable Integer port; @@ -32,7 +32,7 @@ public String id() { return this.id; } /** - * @return The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * @return This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. * */ public Optional port() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementArgs.java index 4a2cf58b8fc..092c113093f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementArgs.java @@ -3,12 +3,14 @@ package com.pulumi.aws.wafv2.inputs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyArgs; import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs; import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -19,20 +21,35 @@ public final class RuleGroupRuleStatementRateBasedStatementArgs extends com.pulu public static final RuleGroupRuleStatementRateBasedStatementArgs Empty = new RuleGroupRuleStatementRateBasedStatementArgs(); /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * */ @Import(name="aggregateKeyType") private @Nullable Output aggregateKeyType; /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * */ public Optional> aggregateKeyType() { return Optional.ofNullable(this.aggregateKeyType); } + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + @Import(name="customKeys") + private @Nullable Output> customKeys; + + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + public Optional>> customKeys() { + return Optional.ofNullable(this.customKeys); + } + /** * The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. * @@ -82,6 +99,7 @@ private RuleGroupRuleStatementRateBasedStatementArgs() {} private RuleGroupRuleStatementRateBasedStatementArgs(RuleGroupRuleStatementRateBasedStatementArgs $) { this.aggregateKeyType = $.aggregateKeyType; + this.customKeys = $.customKeys; this.forwardedIpConfig = $.forwardedIpConfig; this.limit = $.limit; this.scopeDownStatement = $.scopeDownStatement; @@ -106,7 +124,7 @@ public Builder(RuleGroupRuleStatementRateBasedStatementArgs defaults) { } /** - * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * * @return builder * @@ -117,7 +135,7 @@ public Builder aggregateKeyType(@Nullable Output aggregateKeyType) { } /** - * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * * @return builder * @@ -126,6 +144,37 @@ public Builder aggregateKeyType(String aggregateKeyType) { return aggregateKeyType(Output.of(aggregateKeyType)); } + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(@Nullable Output> customKeys) { + $.customKeys = customKeys; + return this; + } + + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(List customKeys) { + return customKeys(Output.of(customKeys)); + } + + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(RuleGroupRuleStatementRateBasedStatementCustomKeyArgs... customKeys) { + return customKeys(List.of(customKeys)); + } + /** * @param forwardedIpConfig The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.java new file mode 100644 index 00000000000..b6dd0fd1886 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyArgs.java @@ -0,0 +1,387 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs; +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyArgs(); + + /** + * (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + @Import(name="cookie") + private @Nullable Output cookie; + + /** + * @return (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + public Optional> cookie() { + return Optional.ofNullable(this.cookie); + } + + /** + * (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + @Import(name="forwardedIp") + private @Nullable Output forwardedIp; + + /** + * @return (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + public Optional> forwardedIp() { + return Optional.ofNullable(this.forwardedIp); + } + + /** + * (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + @Import(name="header") + private @Nullable Output header; + + /** + * @return (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + public Optional> header() { + return Optional.ofNullable(this.header); + } + + /** + * (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + @Import(name="httpMethod") + private @Nullable Output httpMethod; + + /** + * @return (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + public Optional> httpMethod() { + return Optional.ofNullable(this.httpMethod); + } + + /** + * (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + @Import(name="ip") + private @Nullable Output ip; + + /** + * @return (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + public Optional> ip() { + return Optional.ofNullable(this.ip); + } + + /** + * (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + @Import(name="labelNamespace") + private @Nullable Output labelNamespace; + + /** + * @return (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + public Optional> labelNamespace() { + return Optional.ofNullable(this.labelNamespace); + } + + /** + * (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + @Import(name="queryArgument") + private @Nullable Output queryArgument; + + /** + * @return (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + public Optional> queryArgument() { + return Optional.ofNullable(this.queryArgument); + } + + /** + * Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + */ + @Import(name="queryString") + private @Nullable Output queryString; + + /** + * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + */ + public Optional> queryString() { + return Optional.ofNullable(this.queryString); + } + + /** + * Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + */ + @Import(name="uriPath") + private @Nullable Output uriPath; + + /** + * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + */ + public Optional> uriPath() { + return Optional.ofNullable(this.uriPath); + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyArgs $) { + this.cookie = $.cookie; + this.forwardedIp = $.forwardedIp; + this.header = $.header; + this.httpMethod = $.httpMethod; + this.ip = $.ip; + this.labelNamespace = $.labelNamespace; + this.queryArgument = $.queryArgument; + this.queryString = $.queryString; + this.uriPath = $.uriPath; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param cookie (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + * @return builder + * + */ + public Builder cookie(@Nullable Output cookie) { + $.cookie = cookie; + return this; + } + + /** + * @param cookie (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + * @return builder + * + */ + public Builder cookie(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs cookie) { + return cookie(Output.of(cookie)); + } + + /** + * @param forwardedIp (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + * @return builder + * + */ + public Builder forwardedIp(@Nullable Output forwardedIp) { + $.forwardedIp = forwardedIp; + return this; + } + + /** + * @param forwardedIp (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + * @return builder + * + */ + public Builder forwardedIp(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs forwardedIp) { + return forwardedIp(Output.of(forwardedIp)); + } + + /** + * @param header (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + * @return builder + * + */ + public Builder header(@Nullable Output header) { + $.header = header; + return this; + } + + /** + * @param header (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + * @return builder + * + */ + public Builder header(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs header) { + return header(Output.of(header)); + } + + /** + * @param httpMethod (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + * @return builder + * + */ + public Builder httpMethod(@Nullable Output httpMethod) { + $.httpMethod = httpMethod; + return this; + } + + /** + * @param httpMethod (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + * @return builder + * + */ + public Builder httpMethod(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs httpMethod) { + return httpMethod(Output.of(httpMethod)); + } + + /** + * @param ip (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + * @return builder + * + */ + public Builder ip(@Nullable Output ip) { + $.ip = ip; + return this; + } + + /** + * @param ip (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + * @return builder + * + */ + public Builder ip(RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs ip) { + return ip(Output.of(ip)); + } + + /** + * @param labelNamespace (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + * @return builder + * + */ + public Builder labelNamespace(@Nullable Output labelNamespace) { + $.labelNamespace = labelNamespace; + return this; + } + + /** + * @param labelNamespace (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + * @return builder + * + */ + public Builder labelNamespace(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs labelNamespace) { + return labelNamespace(Output.of(labelNamespace)); + } + + /** + * @param queryArgument (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + * @return builder + * + */ + public Builder queryArgument(@Nullable Output queryArgument) { + $.queryArgument = queryArgument; + return this; + } + + /** + * @param queryArgument (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + * @return builder + * + */ + public Builder queryArgument(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs queryArgument) { + return queryArgument(Output.of(queryArgument)); + } + + /** + * @param queryString Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + * @return builder + * + */ + public Builder queryString(@Nullable Output queryString) { + $.queryString = queryString; + return this; + } + + /** + * @param queryString Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + * @return builder + * + */ + public Builder queryString(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs queryString) { + return queryString(Output.of(queryString)); + } + + /** + * @param uriPath Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + * @return builder + * + */ + public Builder uriPath(@Nullable Output uriPath) { + $.uriPath = uriPath; + return this; + } + + /** + * @param uriPath Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + * @return builder + * + */ + public Builder uriPath(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs uriPath) { + return uriPath(Output.of(uriPath)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.java new file mode 100644 index 00000000000..086ee7db940 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs.java @@ -0,0 +1,192 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs(); + + /** + * A friendly name of the rule group. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return A friendly name of the rule group. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java new file mode 100644 index 00000000000..e250691969f --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java new file mode 100644 index 00000000000..0dd4ae753c5 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.java new file mode 100644 index 00000000000..42539667898 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs.java @@ -0,0 +1,192 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + + /** + * A friendly name of the rule group. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return A friendly name of the rule group. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java new file mode 100644 index 00000000000..ecd382101e9 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java new file mode 100644 index 00000000000..4450aef6aaa --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.java new file mode 100644 index 00000000000..b81ad9f90ec --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs(); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java new file mode 100644 index 00000000000..977b075d32c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + + /** + * The namespace to use for aggregation + * + */ + @Import(name="namespace", required=true) + private Output namespace; + + /** + * @return The namespace to use for aggregation + * + */ + public Output namespace() { + return this.namespace; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs $) { + this.namespace = $.namespace; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param namespace The namespace to use for aggregation + * + * @return builder + * + */ + public Builder namespace(Output namespace) { + $.namespace = namespace; + return this; + } + + /** + * @param namespace The namespace to use for aggregation + * + * @return builder + * + */ + public Builder namespace(String namespace) { + return namespace(Output.of(namespace)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs build() { + $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java new file mode 100644 index 00000000000..457f6c044a0 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java @@ -0,0 +1,192 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + + /** + * A friendly name of the rule group. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return A friendly name of the rule group. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name A friendly name of the rule group. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java new file mode 100644 index 00000000000..b3bedfa1e1e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java new file mode 100644 index 00000000000..88a194ec18a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java @@ -0,0 +1,153 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.List; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs $) { + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs build() { + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java new file mode 100644 index 00000000000..c811d967517 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.java new file mode 100644 index 00000000000..87030a2232a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs.java @@ -0,0 +1,153 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.List; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs $) { + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + * @return builder + * + */ + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs build() { + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java new file mode 100644 index 00000000000..01bccd21343 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs Empty = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs() {} + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs $; + + public Builder() { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + } + + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs defaults) { + $ = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.java index e51f1e12266..d291e4a77b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs.java @@ -30,14 +30,14 @@ public Output> failureValues() { } /** - * The name of the header to match against. The name must be an exact match, including case. + * The name of the header to use. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the header to match against. The name must be an exact match, including case. + * @return The name of the header to use. * */ public Output name() { @@ -117,7 +117,7 @@ public Builder failureValues(String... failureValues) { } /** - * @param name The name of the header to match against. The name must be an exact match, including case. + * @param name The name of the header to use. * * @return builder * @@ -128,7 +128,7 @@ public Builder name(Output name) { } /** - * @param name The name of the header to match against. The name must be an exact match, including case. + * @param name The name of the header to use. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementArgs.java index 05a73becde0..9a1aa36e6ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementArgs.java @@ -3,12 +3,14 @@ package com.pulumi.aws.wafv2.inputs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyArgs; import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs; import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementScopeDownStatementArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -19,20 +21,35 @@ public final class WebAclRuleStatementRateBasedStatementArgs extends com.pulumi. public static final WebAclRuleStatementRateBasedStatementArgs Empty = new WebAclRuleStatementRateBasedStatementArgs(); /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * */ @Import(name="aggregateKeyType") private @Nullable Output aggregateKeyType; /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * */ public Optional> aggregateKeyType() { return Optional.ofNullable(this.aggregateKeyType); } + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + @Import(name="customKeys") + private @Nullable Output> customKeys; + + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + public Optional>> customKeys() { + return Optional.ofNullable(this.customKeys); + } + /** * Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. * @@ -82,6 +99,7 @@ private WebAclRuleStatementRateBasedStatementArgs() {} private WebAclRuleStatementRateBasedStatementArgs(WebAclRuleStatementRateBasedStatementArgs $) { this.aggregateKeyType = $.aggregateKeyType; + this.customKeys = $.customKeys; this.forwardedIpConfig = $.forwardedIpConfig; this.limit = $.limit; this.scopeDownStatement = $.scopeDownStatement; @@ -106,7 +124,7 @@ public Builder(WebAclRuleStatementRateBasedStatementArgs defaults) { } /** - * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * * @return builder * @@ -117,7 +135,7 @@ public Builder aggregateKeyType(@Nullable Output aggregateKeyType) { } /** - * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @param aggregateKeyType Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * * @return builder * @@ -126,6 +144,37 @@ public Builder aggregateKeyType(String aggregateKeyType) { return aggregateKeyType(Output.of(aggregateKeyType)); } + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(@Nullable Output> customKeys) { + $.customKeys = customKeys; + return this; + } + + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(List customKeys) { + return customKeys(Output.of(customKeys)); + } + + /** + * @param customKeys Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + * @return builder + * + */ + public Builder customKeys(WebAclRuleStatementRateBasedStatementCustomKeyArgs... customKeys) { + return customKeys(List.of(customKeys)); + } + /** * @param forwardedIpConfig Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. * diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.java new file mode 100644 index 00000000000..f3859967c63 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyArgs.java @@ -0,0 +1,387 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyIpArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs; +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyArgs(); + + /** + * Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + @Import(name="cookie") + private @Nullable Output cookie; + + /** + * @return Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + public Optional> cookie() { + return Optional.ofNullable(this.cookie); + } + + /** + * Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + @Import(name="forwardedIp") + private @Nullable Output forwardedIp; + + /** + * @return Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + public Optional> forwardedIp() { + return Optional.ofNullable(this.forwardedIp); + } + + /** + * Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + @Import(name="header") + private @Nullable Output header; + + /** + * @return Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + public Optional> header() { + return Optional.ofNullable(this.header); + } + + /** + * Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + @Import(name="httpMethod") + private @Nullable Output httpMethod; + + /** + * @return Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + public Optional> httpMethod() { + return Optional.ofNullable(this.httpMethod); + } + + /** + * Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + @Import(name="ip") + private @Nullable Output ip; + + /** + * @return Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + public Optional> ip() { + return Optional.ofNullable(this.ip); + } + + /** + * Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + @Import(name="labelNamespace") + private @Nullable Output labelNamespace; + + /** + * @return Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + public Optional> labelNamespace() { + return Optional.ofNullable(this.labelNamespace); + } + + /** + * Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + @Import(name="queryArgument") + private @Nullable Output queryArgument; + + /** + * @return Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + public Optional> queryArgument() { + return Optional.ofNullable(this.queryArgument); + } + + /** + * Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + */ + @Import(name="queryString") + private @Nullable Output queryString; + + /** + * @return Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + */ + public Optional> queryString() { + return Optional.ofNullable(this.queryString); + } + + /** + * Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + */ + @Import(name="uriPath") + private @Nullable Output uriPath; + + /** + * @return Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + */ + public Optional> uriPath() { + return Optional.ofNullable(this.uriPath); + } + + private WebAclRuleStatementRateBasedStatementCustomKeyArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyArgs(WebAclRuleStatementRateBasedStatementCustomKeyArgs $) { + this.cookie = $.cookie; + this.forwardedIp = $.forwardedIp; + this.header = $.header; + this.httpMethod = $.httpMethod; + this.ip = $.ip; + this.labelNamespace = $.labelNamespace; + this.queryArgument = $.queryArgument; + this.queryString = $.queryString; + this.uriPath = $.uriPath; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param cookie Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + * @return builder + * + */ + public Builder cookie(@Nullable Output cookie) { + $.cookie = cookie; + return this; + } + + /** + * @param cookie Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + * @return builder + * + */ + public Builder cookie(WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs cookie) { + return cookie(Output.of(cookie)); + } + + /** + * @param forwardedIp Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + * @return builder + * + */ + public Builder forwardedIp(@Nullable Output forwardedIp) { + $.forwardedIp = forwardedIp; + return this; + } + + /** + * @param forwardedIp Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + * @return builder + * + */ + public Builder forwardedIp(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs forwardedIp) { + return forwardedIp(Output.of(forwardedIp)); + } + + /** + * @param header Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + * @return builder + * + */ + public Builder header(@Nullable Output header) { + $.header = header; + return this; + } + + /** + * @param header Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + * @return builder + * + */ + public Builder header(WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs header) { + return header(Output.of(header)); + } + + /** + * @param httpMethod Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + * @return builder + * + */ + public Builder httpMethod(@Nullable Output httpMethod) { + $.httpMethod = httpMethod; + return this; + } + + /** + * @param httpMethod Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + * @return builder + * + */ + public Builder httpMethod(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs httpMethod) { + return httpMethod(Output.of(httpMethod)); + } + + /** + * @param ip Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + * @return builder + * + */ + public Builder ip(@Nullable Output ip) { + $.ip = ip; + return this; + } + + /** + * @param ip Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + * @return builder + * + */ + public Builder ip(WebAclRuleStatementRateBasedStatementCustomKeyIpArgs ip) { + return ip(Output.of(ip)); + } + + /** + * @param labelNamespace Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + * @return builder + * + */ + public Builder labelNamespace(@Nullable Output labelNamespace) { + $.labelNamespace = labelNamespace; + return this; + } + + /** + * @param labelNamespace Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + * @return builder + * + */ + public Builder labelNamespace(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs labelNamespace) { + return labelNamespace(Output.of(labelNamespace)); + } + + /** + * @param queryArgument Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + * @return builder + * + */ + public Builder queryArgument(@Nullable Output queryArgument) { + $.queryArgument = queryArgument; + return this; + } + + /** + * @param queryArgument Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + * @return builder + * + */ + public Builder queryArgument(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs queryArgument) { + return queryArgument(Output.of(queryArgument)); + } + + /** + * @param queryString Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + * @return builder + * + */ + public Builder queryString(@Nullable Output queryString) { + $.queryString = queryString; + return this; + } + + /** + * @param queryString Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + * @return builder + * + */ + public Builder queryString(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs queryString) { + return queryString(Output.of(queryString)); + } + + /** + * @param uriPath Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + * @return builder + * + */ + public Builder uriPath(@Nullable Output uriPath) { + $.uriPath = uriPath; + return this; + } + + /** + * @param uriPath Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + * @return builder + * + */ + public Builder uriPath(WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs uriPath) { + return uriPath(Output.of(uriPath)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.java new file mode 100644 index 00000000000..531ee3bd38d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs.java @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs(); + + /** + * The name of the cookie to use. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the cookie to use. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs(WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name The name of the cookie to use. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the cookie to use. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java new file mode 100644 index 00000000000..35c12564d56 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java new file mode 100644 index 00000000000..fd10024640c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs(); + } + public WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.java new file mode 100644 index 00000000000..93bac07fc03 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs.java @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + + /** + * The name of the header to use. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the header to use. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs(WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name The name of the header to use. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the header to use. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java new file mode 100644 index 00000000000..632786d5442 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java new file mode 100644 index 00000000000..e91aec9a41e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs(); + } + public WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.java new file mode 100644 index 00000000000..bebedd50fdd --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyIpArgs.java @@ -0,0 +1,28 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + + + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyIpArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyIpArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyIpArgs(); + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyIpArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyIpArgs(); + } + public WebAclRuleStatementRateBasedStatementCustomKeyIpArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java new file mode 100644 index 00000000000..da8276b35a9 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + + /** + * The namespace to use for aggregation + * + */ + @Import(name="namespace", required=true) + private Output namespace; + + /** + * @return The namespace to use for aggregation + * + */ + public Output namespace() { + return this.namespace; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs $) { + this.namespace = $.namespace; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param namespace The namespace to use for aggregation + * + * @return builder + * + */ + public Builder namespace(Output namespace) { + $.namespace = namespace; + return this; + } + + /** + * @param namespace The namespace to use for aggregation + * + * @return builder + * + */ + public Builder namespace(String namespace) { + return namespace(Output.of(namespace)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs build() { + $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java new file mode 100644 index 00000000000..7db127aea6c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs.java @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + + /** + * The name of the query argument to use. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the query argument to use. + * + */ + public Output name() { + return this.name; + } + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs $) { + this.name = $.name; + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param name The name of the query argument to use. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the query argument to use. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java new file mode 100644 index 00000000000..3681d589da2 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java new file mode 100644 index 00000000000..583b783eda2 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs.java @@ -0,0 +1,93 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.List; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs $) { + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs build() { + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java new file mode 100644 index 00000000000..7497c628361 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.java new file mode 100644 index 00000000000..055a0b9430a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs.java @@ -0,0 +1,93 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.util.List; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + @Import(name="textTransformations", required=true) + private Output> textTransformations; + + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public Output> textTransformations() { + return this.textTransformations; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs(WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs $) { + this.textTransformations = $.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(Output> textTransformations) { + $.textTransformations = textTransformations; + return this; + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(List textTransformations) { + return textTransformations(Output.of(textTransformations)); + } + + /** + * @param textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + * @return builder + * + */ + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs build() { + $.textTransformations = Objects.requireNonNull($.textTransformations, "expected parameter 'textTransformations' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java new file mode 100644 index 00000000000..e34467f6da6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/inputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs extends com.pulumi.resources.ResourceArgs { + + public static final WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs Empty = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + @Import(name="priority", required=true) + private Output priority; + + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Output priority() { + return this.priority; + } + + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + @Import(name="type", required=true) + private Output type; + + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public Output type() { + return this.type; + } + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs() {} + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs $) { + this.priority = $.priority; + this.type = $.type; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs $; + + public Builder() { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(); + } + + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs defaults) { + $ = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Output priority) { + $.priority = priority; + return this; + } + + /** + * @param priority Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + * @return builder + * + */ + public Builder priority(Integer priority) { + return priority(Output.of(priority)); + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(Output type) { + $.type = type; + return this; + } + + /** + * @param type Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + * @return builder + * + */ + public Builder type(String type) { + return type(Output.of(type)); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs build() { + $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); + $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatement.java index d6173e01807..cd282e00f5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatement.java @@ -3,11 +3,13 @@ package com.pulumi.aws.wafv2.outputs; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKey; import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfig; import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatement; import com.pulumi.core.annotations.CustomType; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -15,10 +17,15 @@ @CustomType public final class RuleGroupRuleStatementRateBasedStatement { /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * */ private @Nullable String aggregateKeyType; + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + private @Nullable List customKeys; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. * @@ -37,12 +44,19 @@ public final class RuleGroupRuleStatementRateBasedStatement { private RuleGroupRuleStatementRateBasedStatement() {} /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. * */ public Optional aggregateKeyType() { return Optional.ofNullable(this.aggregateKeyType); } + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + public List customKeys() { + return this.customKeys == null ? List.of() : this.customKeys; + } /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. * @@ -75,6 +89,7 @@ public static Builder builder(RuleGroupRuleStatementRateBasedStatement defaults) @CustomType.Builder public static final class Builder { private @Nullable String aggregateKeyType; + private @Nullable List customKeys; private @Nullable RuleGroupRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig; private Integer limit; private @Nullable RuleGroupRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement; @@ -82,6 +97,7 @@ public Builder() {} public Builder(RuleGroupRuleStatementRateBasedStatement defaults) { Objects.requireNonNull(defaults); this.aggregateKeyType = defaults.aggregateKeyType; + this.customKeys = defaults.customKeys; this.forwardedIpConfig = defaults.forwardedIpConfig; this.limit = defaults.limit; this.scopeDownStatement = defaults.scopeDownStatement; @@ -93,6 +109,14 @@ public Builder aggregateKeyType(@Nullable String aggregateKeyType) { return this; } @CustomType.Setter + public Builder customKeys(@Nullable List customKeys) { + this.customKeys = customKeys; + return this; + } + public Builder customKeys(RuleGroupRuleStatementRateBasedStatementCustomKey... customKeys) { + return customKeys(List.of(customKeys)); + } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; @@ -110,6 +134,7 @@ public Builder scopeDownStatement(@Nullable RuleGroupRuleStatementRateBasedState public RuleGroupRuleStatementRateBasedStatement build() { final var o = new RuleGroupRuleStatementRateBasedStatement(); o.aggregateKeyType = aggregateKeyType; + o.customKeys = customKeys; o.forwardedIpConfig = forwardedIpConfig; o.limit = limit; o.scopeDownStatement = scopeDownStatement; diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.java new file mode 100644 index 00000000000..a64410acc34 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKey.java @@ -0,0 +1,224 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIp; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString; +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath; +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKey { + /** + * @return (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyCookie cookie; + /** + * @return (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp; + /** + * @return (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHeader header; + /** + * @return (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod; + /** + * @return (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyIp ip; + /** + * @return (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace; + /** + * @return (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument; + /** + * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString queryString; + /** + * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + */ + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath uriPath; + + private RuleGroupRuleStatementRateBasedStatementCustomKey() {} + /** + * @return (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + public Optional cookie() { + return Optional.ofNullable(this.cookie); + } + /** + * @return (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + public Optional forwardedIp() { + return Optional.ofNullable(this.forwardedIp); + } + /** + * @return (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + public Optional header() { + return Optional.ofNullable(this.header); + } + /** + * @return (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + public Optional httpMethod() { + return Optional.ofNullable(this.httpMethod); + } + /** + * @return (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + public Optional ip() { + return Optional.ofNullable(this.ip); + } + /** + * @return (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + public Optional labelNamespace() { + return Optional.ofNullable(this.labelNamespace); + } + /** + * @return (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + public Optional queryArgument() { + return Optional.ofNullable(this.queryArgument); + } + /** + * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + * + */ + public Optional queryString() { + return Optional.ofNullable(this.queryString); + } + /** + * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + * + */ + public Optional uriPath() { + return Optional.ofNullable(this.uriPath); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKey defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyCookie cookie; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHeader header; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyIp ip; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString queryString; + private @Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath uriPath; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKey defaults) { + Objects.requireNonNull(defaults); + this.cookie = defaults.cookie; + this.forwardedIp = defaults.forwardedIp; + this.header = defaults.header; + this.httpMethod = defaults.httpMethod; + this.ip = defaults.ip; + this.labelNamespace = defaults.labelNamespace; + this.queryArgument = defaults.queryArgument; + this.queryString = defaults.queryString; + this.uriPath = defaults.uriPath; + } + + @CustomType.Setter + public Builder cookie(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyCookie cookie) { + this.cookie = cookie; + return this; + } + @CustomType.Setter + public Builder forwardedIp(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp) { + this.forwardedIp = forwardedIp; + return this; + } + @CustomType.Setter + public Builder header(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHeader header) { + this.header = header; + return this; + } + @CustomType.Setter + public Builder httpMethod(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod) { + this.httpMethod = httpMethod; + return this; + } + @CustomType.Setter + public Builder ip(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyIp ip) { + this.ip = ip; + return this; + } + @CustomType.Setter + public Builder labelNamespace(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace) { + this.labelNamespace = labelNamespace; + return this; + } + @CustomType.Setter + public Builder queryArgument(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument) { + this.queryArgument = queryArgument; + return this; + } + @CustomType.Setter + public Builder queryString(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString queryString) { + this.queryString = queryString; + return this; + } + @CustomType.Setter + public Builder uriPath(@Nullable RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath uriPath) { + this.uriPath = uriPath; + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKey build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKey(); + o.cookie = cookie; + o.forwardedIp = forwardedIp; + o.header = header; + o.httpMethod = httpMethod; + o.ip = ip; + o.labelNamespace = labelNamespace; + o.queryArgument = queryArgument; + o.queryString = queryString; + o.uriPath = uriPath; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.java new file mode 100644 index 00000000000..518a815b0b6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.java @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { + /** + * @return A friendly name of the rule group. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + private List textTransformations; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookie() {} + /** + * @return A friendly name of the rule group. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookie defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookie defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookie build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookie(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java new file mode 100644 index 00000000000..4ec0c6e3a96 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation() {} + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.java new file mode 100644 index 00000000000..e905e0f8486 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + private RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp defaults) { + Objects.requireNonNull(defaults); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.java new file mode 100644 index 00000000000..a18cf16ecf6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.java @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { + /** + * @return A friendly name of the rule group. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + private List textTransformations; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeader() {} + /** + * @return A friendly name of the rule group. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeader defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeader defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeader build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeader(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java new file mode 100644 index 00000000000..5c9908309e0 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation() {} + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.java new file mode 100644 index 00000000000..b6ea025de36 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { + private RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod defaults) { + Objects.requireNonNull(defaults); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.java new file mode 100644 index 00000000000..a9859f960df --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyIp.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyIp { + private RuleGroupRuleStatementRateBasedStatementCustomKeyIp() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyIp defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyIp defaults) { + Objects.requireNonNull(defaults); + } + + public RuleGroupRuleStatementRateBasedStatementCustomKeyIp build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyIp(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.java new file mode 100644 index 00000000000..1a8e996866e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace.java @@ -0,0 +1,54 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * @return The namespace to use for aggregation + * + */ + private String namespace; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace() {} + /** + * @return The namespace to use for aggregation + * + */ + public String namespace() { + return this.namespace; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String namespace; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace defaults) { + Objects.requireNonNull(defaults); + this.namespace = defaults.namespace; + } + + @CustomType.Setter + public Builder namespace(String namespace) { + this.namespace = Objects.requireNonNull(namespace); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace(); + o.namespace = namespace; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.java new file mode 100644 index 00000000000..6e3f5cb595f --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.java @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * @return A friendly name of the rule group. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + private List textTransformations; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument() {} + /** + * @return A friendly name of the rule group. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java new file mode 100644 index 00000000000..7b653fbbf3b --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation() {} + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.java new file mode 100644 index 00000000000..5de1770e4eb --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + private List textTransformations; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString() {} + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private List textTransformations; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString defaults) { + Objects.requireNonNull(defaults); + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString(); + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java new file mode 100644 index 00000000000..5d628237a0b --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation() {} + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.java new file mode 100644 index 00000000000..89e90a79aef --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + private List textTransformations; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath() {} + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private List textTransformations; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath defaults) { + Objects.requireNonNull(defaults); + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath(); + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java new file mode 100644 index 00000000000..d85633accff --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation() {} + /** + * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation build() { + final var o = new RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.java index 50b17f2ee0e..67f1ae9f8ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.java @@ -16,7 +16,7 @@ public final class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupC */ private List failureValues; /** - * @return The name of the header to match against. The name must be an exact match, including case. + * @return The name of the header to use. * */ private String name; @@ -35,7 +35,7 @@ public List failureValues() { return this.failureValues; } /** - * @return The name of the header to match against. The name must be an exact match, including case. + * @return The name of the header to use. * */ public String name() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java index 8d429661c35..eab82986176 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java @@ -3,11 +3,13 @@ package com.pulumi.aws.wafv2.outputs; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKey; import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig; import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement; import com.pulumi.core.annotations.CustomType; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -15,10 +17,15 @@ @CustomType public final class WebAclRuleStatementRateBasedStatement { /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * */ private @Nullable String aggregateKeyType; + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + private @Nullable List customKeys; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. * @@ -37,12 +44,19 @@ public final class WebAclRuleStatementRateBasedStatement { private WebAclRuleStatementRateBasedStatement() {} /** - * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * @return Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. * */ public Optional aggregateKeyType() { return Optional.ofNullable(this.aggregateKeyType); } + /** + * @return Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + * + */ + public List customKeys() { + return this.customKeys == null ? List.of() : this.customKeys; + } /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. * @@ -75,6 +89,7 @@ public static Builder builder(WebAclRuleStatementRateBasedStatement defaults) { @CustomType.Builder public static final class Builder { private @Nullable String aggregateKeyType; + private @Nullable List customKeys; private @Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig; private Integer limit; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement; @@ -82,6 +97,7 @@ public Builder() {} public Builder(WebAclRuleStatementRateBasedStatement defaults) { Objects.requireNonNull(defaults); this.aggregateKeyType = defaults.aggregateKeyType; + this.customKeys = defaults.customKeys; this.forwardedIpConfig = defaults.forwardedIpConfig; this.limit = defaults.limit; this.scopeDownStatement = defaults.scopeDownStatement; @@ -93,6 +109,14 @@ public Builder aggregateKeyType(@Nullable String aggregateKeyType) { return this; } @CustomType.Setter + public Builder customKeys(@Nullable List customKeys) { + this.customKeys = customKeys; + return this; + } + public Builder customKeys(WebAclRuleStatementRateBasedStatementCustomKey... customKeys) { + return customKeys(List.of(customKeys)); + } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; @@ -110,6 +134,7 @@ public Builder scopeDownStatement(@Nullable WebAclRuleStatementRateBasedStatemen public WebAclRuleStatementRateBasedStatement build() { final var o = new WebAclRuleStatementRateBasedStatement(); o.aggregateKeyType = aggregateKeyType; + o.customKeys = customKeys; o.forwardedIpConfig = forwardedIpConfig; o.limit = limit; o.scopeDownStatement = scopeDownStatement; diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKey.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKey.java new file mode 100644 index 00000000000..96648f1e3e1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKey.java @@ -0,0 +1,224 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeader; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyIp; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryString; +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPath; +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKey { + /** + * @return Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyCookie cookie; + /** + * @return Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp; + /** + * @return Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyHeader header; + /** + * @return Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod; + /** + * @return Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyIp ip; + /** + * @return Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace; + /** + * @return Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument; + /** + * @return Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryString queryString; + /** + * @return Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + */ + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyUriPath uriPath; + + private WebAclRuleStatementRateBasedStatementCustomKey() {} + /** + * @return Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + * + */ + public Optional cookie() { + return Optional.ofNullable(this.cookie); + } + /** + * @return Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + * + */ + public Optional forwardedIp() { + return Optional.ofNullable(this.forwardedIp); + } + /** + * @return Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + * + */ + public Optional header() { + return Optional.ofNullable(this.header); + } + /** + * @return Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + * + */ + public Optional httpMethod() { + return Optional.ofNullable(this.httpMethod); + } + /** + * @return Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + * + */ + public Optional ip() { + return Optional.ofNullable(this.ip); + } + /** + * @return Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + * + */ + public Optional labelNamespace() { + return Optional.ofNullable(this.labelNamespace); + } + /** + * @return Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + * + */ + public Optional queryArgument() { + return Optional.ofNullable(this.queryArgument); + } + /** + * @return Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + * + */ + public Optional queryString() { + return Optional.ofNullable(this.queryString); + } + /** + * @return Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + * + */ + public Optional uriPath() { + return Optional.ofNullable(this.uriPath); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKey defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyCookie cookie; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyHeader header; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyIp ip; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementCustomKeyUriPath uriPath; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKey defaults) { + Objects.requireNonNull(defaults); + this.cookie = defaults.cookie; + this.forwardedIp = defaults.forwardedIp; + this.header = defaults.header; + this.httpMethod = defaults.httpMethod; + this.ip = defaults.ip; + this.labelNamespace = defaults.labelNamespace; + this.queryArgument = defaults.queryArgument; + this.queryString = defaults.queryString; + this.uriPath = defaults.uriPath; + } + + @CustomType.Setter + public Builder cookie(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyCookie cookie) { + this.cookie = cookie; + return this; + } + @CustomType.Setter + public Builder forwardedIp(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp forwardedIp) { + this.forwardedIp = forwardedIp; + return this; + } + @CustomType.Setter + public Builder header(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyHeader header) { + this.header = header; + return this; + } + @CustomType.Setter + public Builder httpMethod(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod httpMethod) { + this.httpMethod = httpMethod; + return this; + } + @CustomType.Setter + public Builder ip(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyIp ip) { + this.ip = ip; + return this; + } + @CustomType.Setter + public Builder labelNamespace(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace labelNamespace) { + this.labelNamespace = labelNamespace; + return this; + } + @CustomType.Setter + public Builder queryArgument(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument queryArgument) { + this.queryArgument = queryArgument; + return this; + } + @CustomType.Setter + public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyQueryString queryString) { + this.queryString = queryString; + return this; + } + @CustomType.Setter + public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementCustomKeyUriPath uriPath) { + this.uriPath = uriPath; + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKey build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKey(); + o.cookie = cookie; + o.forwardedIp = forwardedIp; + o.header = header; + o.httpMethod = httpMethod; + o.ip = ip; + o.labelNamespace = labelNamespace; + o.queryArgument = queryArgument; + o.queryString = queryString; + o.uriPath = uriPath; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.java new file mode 100644 index 00000000000..f3b3115a419 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookie.java @@ -0,0 +1,79 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyCookie { + /** + * @return The name of the cookie to use. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + private List textTransformations; + + private WebAclRuleStatementRateBasedStatementCustomKeyCookie() {} + /** + * @return The name of the cookie to use. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyCookie defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyCookie defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public WebAclRuleStatementRateBasedStatementCustomKeyCookie build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyCookie(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java new file mode 100644 index 00000000000..fb7d599f2ca --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation() {} + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.java new file mode 100644 index 00000000000..d5dbffdbfa8 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + private WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp defaults) { + Objects.requireNonNull(defaults); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.java new file mode 100644 index 00000000000..42642ff1021 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeader.java @@ -0,0 +1,79 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyHeader { + /** + * @return The name of the header to use. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + private List textTransformations; + + private WebAclRuleStatementRateBasedStatementCustomKeyHeader() {} + /** + * @return The name of the header to use. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyHeader defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyHeader defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public WebAclRuleStatementRateBasedStatementCustomKeyHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyHeader(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java new file mode 100644 index 00000000000..9586ac4e382 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation() {} + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.java new file mode 100644 index 00000000000..f1384866b89 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + private WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod defaults) { + Objects.requireNonNull(defaults); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.java new file mode 100644 index 00000000000..9ded14ea9ad --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyIp.java @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyIp { + private WebAclRuleStatementRateBasedStatementCustomKeyIp() {} + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyIp defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyIp defaults) { + Objects.requireNonNull(defaults); + } + + public WebAclRuleStatementRateBasedStatementCustomKeyIp build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyIp(); + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.java new file mode 100644 index 00000000000..9de7d88a5e1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.java @@ -0,0 +1,54 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * @return The namespace to use for aggregation + * + */ + private String namespace; + + private WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace() {} + /** + * @return The namespace to use for aggregation + * + */ + public String namespace() { + return this.namespace; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String namespace; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace defaults) { + Objects.requireNonNull(defaults); + this.namespace = defaults.namespace; + } + + @CustomType.Setter + public Builder namespace(String namespace) { + this.namespace = Objects.requireNonNull(namespace); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace(); + o.namespace = namespace; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.java new file mode 100644 index 00000000000..28e35140b31 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.java @@ -0,0 +1,79 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * @return The name of the query argument to use. + * + */ + private String name; + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + private List textTransformations; + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument() {} + /** + * @return The name of the query argument to use. + * + */ + public String name() { + return this.name; + } + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String name; + private List textTransformations; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument defaults) { + Objects.requireNonNull(defaults); + this.name = defaults.name; + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder name(String name) { + this.name = Objects.requireNonNull(name); + return this; + } + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument(); + o.name = name; + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java new file mode 100644 index 00000000000..6fe8b9e3768 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation() {} + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.java new file mode 100644 index 00000000000..f5663d91940 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryString.java @@ -0,0 +1,58 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + private List textTransformations; + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryString() {} + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryString defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private List textTransformations; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryString defaults) { + Objects.requireNonNull(defaults); + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public WebAclRuleStatementRateBasedStatementCustomKeyQueryString build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyQueryString(); + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java new file mode 100644 index 00000000000..30b1f9e3212 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation() {} + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.java new file mode 100644 index 00000000000..df2d9a872c4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPath.java @@ -0,0 +1,58 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation; +import com.pulumi.core.annotations.CustomType; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + private List textTransformations; + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPath() {} + /** + * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + * + */ + public List textTransformations() { + return this.textTransformations; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPath defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private List textTransformations; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPath defaults) { + Objects.requireNonNull(defaults); + this.textTransformations = defaults.textTransformations; + } + + @CustomType.Setter + public Builder textTransformations(List textTransformations) { + this.textTransformations = Objects.requireNonNull(textTransformations); + return this; + } + public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation... textTransformations) { + return textTransformations(List.of(textTransformations)); + } + public WebAclRuleStatementRateBasedStatementCustomKeyUriPath build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyUriPath(); + o.textTransformations = textTransformations; + return o; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java new file mode 100644 index 00000000000..b1fd96a34de --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation.java @@ -0,0 +1,75 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.aws.wafv2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + private Integer priority; + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + private String type; + + private WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation() {} + /** + * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + * + */ + public Integer priority() { + return this.priority; + } + /** + * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + * + */ + public String type() { + return this.type; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer priority; + private String type; + public Builder() {} + public Builder(WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation defaults) { + Objects.requireNonNull(defaults); + this.priority = defaults.priority; + this.type = defaults.type; + } + + @CustomType.Setter + public Builder priority(Integer priority) { + this.priority = Objects.requireNonNull(priority); + return this; + } + @CustomType.Setter + public Builder type(String type) { + this.type = Objects.requireNonNull(type); + return this; + } + public WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation(); + o.priority = priority; + o.type = type; + return o; + } + } +} diff --git a/sdk/nodejs/batch/jobQueue.ts b/sdk/nodejs/batch/jobQueue.ts index 244ecb3fa61..c19f0518060 100644 --- a/sdk/nodejs/batch/jobQueue.ts +++ b/sdk/nodejs/batch/jobQueue.ts @@ -92,9 +92,8 @@ export class JobQueue extends pulumi.CustomResource { */ public /*out*/ readonly arn!: pulumi.Output; /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. */ public readonly computeEnvironments!: pulumi.Output; /** @@ -185,9 +184,8 @@ export interface JobQueueState { */ arn?: pulumi.Input; /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. */ computeEnvironments?: pulumi.Input[]>; /** @@ -225,9 +223,8 @@ export interface JobQueueState { */ export interface JobQueueArgs { /** - * Specifies the set of compute environments - * mapped to a job queue and their order. The position of the compute environments - * in the list will dictate the order. + * List of compute environment ARNs mapped to a job queue. + * The position of the compute environments in the list will dictate the order. */ computeEnvironments: pulumi.Input[]>; /** diff --git a/sdk/nodejs/cleanrooms/configuredTable.ts b/sdk/nodejs/cleanrooms/configuredTable.ts new file mode 100644 index 00000000000..cd0a01b740b --- /dev/null +++ b/sdk/nodejs/cleanrooms/configuredTable.ts @@ -0,0 +1,247 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. + * + * ## Example Usage + * ### Configured table with tags + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const testConfiguredTable = new aws.cleanrooms.ConfiguredTable("testConfiguredTable", { + * allowedColumns: [ + * "column1", + * "column2", + * "column3", + * ], + * analysisMethod: "DIRECT_QUERY", + * description: "I made this table with TODO!", + * tableReference: { + * databaseName: "example_database", + * tableName: "example_table", + * }, + * tags: { + * Project: "TODO", + * }, + * }); + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { + * + * to = aws_cleanrooms_configured_table.table + * + * id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab + */ +export class ConfiguredTable extends pulumi.CustomResource { + /** + * Get an existing ConfiguredTable resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ConfiguredTableState, opts?: pulumi.CustomResourceOptions): ConfiguredTable { + return new ConfiguredTable(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'aws:cleanrooms/configuredTable:ConfiguredTable'; + + /** + * Returns true if the given object is an instance of ConfiguredTable. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ConfiguredTable { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ConfiguredTable.__pulumiType; + } + + /** + * The columns of the references table which will be included in the configured table. + */ + public readonly allowedColumns!: pulumi.Output; + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + */ + public readonly analysisMethod!: pulumi.Output; + /** + * The ARN of the configured table. + */ + public /*out*/ readonly arn!: pulumi.Output; + /** + * The date and time the configured table was created. + */ + public /*out*/ readonly createTime!: pulumi.Output; + /** + * A description for the configured table. + */ + public readonly description!: pulumi.Output; + /** + * The name of the configured table. + */ + public readonly name!: pulumi.Output; + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + */ + public readonly tableReference!: pulumi.Output; + /** + * Key value pairs which tag the configured table. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * @deprecated Please use `tags` instead. + */ + public /*out*/ readonly tagsAll!: pulumi.Output<{[key: string]: string}>; + /** + * The date and time the configured table was last updated. + */ + public /*out*/ readonly updateTime!: pulumi.Output; + + /** + * Create a ConfiguredTable resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ConfiguredTableArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ConfiguredTableArgs | ConfiguredTableState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ConfiguredTableState | undefined; + resourceInputs["allowedColumns"] = state ? state.allowedColumns : undefined; + resourceInputs["analysisMethod"] = state ? state.analysisMethod : undefined; + resourceInputs["arn"] = state ? state.arn : undefined; + resourceInputs["createTime"] = state ? state.createTime : undefined; + resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["tableReference"] = state ? state.tableReference : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; + resourceInputs["updateTime"] = state ? state.updateTime : undefined; + } else { + const args = argsOrState as ConfiguredTableArgs | undefined; + if ((!args || args.allowedColumns === undefined) && !opts.urn) { + throw new Error("Missing required property 'allowedColumns'"); + } + if ((!args || args.analysisMethod === undefined) && !opts.urn) { + throw new Error("Missing required property 'analysisMethod'"); + } + if ((!args || args.tableReference === undefined) && !opts.urn) { + throw new Error("Missing required property 'tableReference'"); + } + resourceInputs["allowedColumns"] = args ? args.allowedColumns : undefined; + resourceInputs["analysisMethod"] = args ? args.analysisMethod : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["tableReference"] = args ? args.tableReference : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["arn"] = undefined /*out*/; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["tagsAll"] = undefined /*out*/; + resourceInputs["updateTime"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["tagsAll"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(ConfiguredTable.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ConfiguredTable resources. + */ +export interface ConfiguredTableState { + /** + * The columns of the references table which will be included in the configured table. + */ + allowedColumns?: pulumi.Input[]>; + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + */ + analysisMethod?: pulumi.Input; + /** + * The ARN of the configured table. + */ + arn?: pulumi.Input; + /** + * The date and time the configured table was created. + */ + createTime?: pulumi.Input; + /** + * A description for the configured table. + */ + description?: pulumi.Input; + /** + * The name of the configured table. + */ + name?: pulumi.Input; + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + */ + tableReference?: pulumi.Input; + /** + * Key value pairs which tag the configured table. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * @deprecated Please use `tags` instead. + */ + tagsAll?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * The date and time the configured table was last updated. + */ + updateTime?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ConfiguredTable resource. + */ +export interface ConfiguredTableArgs { + /** + * The columns of the references table which will be included in the configured table. + */ + allowedColumns: pulumi.Input[]>; + /** + * The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + */ + analysisMethod: pulumi.Input; + /** + * A description for the configured table. + */ + description?: pulumi.Input; + /** + * The name of the configured table. + */ + name?: pulumi.Input; + /** + * A reference to the AWS Glue table which will be used to create the configured table. + * * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + */ + tableReference: pulumi.Input; + /** + * Key value pairs which tag the configured table. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/cleanrooms/index.ts b/sdk/nodejs/cleanrooms/index.ts index 86d771bb282..ada3e6a928a 100644 --- a/sdk/nodejs/cleanrooms/index.ts +++ b/sdk/nodejs/cleanrooms/index.ts @@ -10,6 +10,11 @@ export type Collaboration = import("./collaboration").Collaboration; export const Collaboration: typeof import("./collaboration").Collaboration = null as any; utilities.lazyLoad(exports, ["Collaboration"], () => require("./collaboration")); +export { ConfiguredTableArgs, ConfiguredTableState } from "./configuredTable"; +export type ConfiguredTable = import("./configuredTable").ConfiguredTable; +export const ConfiguredTable: typeof import("./configuredTable").ConfiguredTable = null as any; +utilities.lazyLoad(exports, ["ConfiguredTable"], () => require("./configuredTable")); + const _module = { version: utilities.getVersion(), @@ -17,9 +22,12 @@ const _module = { switch (type) { case "aws:cleanrooms/collaboration:Collaboration": return new Collaboration(name, undefined, { urn }) + case "aws:cleanrooms/configuredTable:ConfiguredTable": + return new ConfiguredTable(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } }, }; pulumi.runtime.registerResourceModule("aws", "cleanrooms/collaboration", _module) +pulumi.runtime.registerResourceModule("aws", "cleanrooms/configuredTable", _module) diff --git a/sdk/nodejs/cloud9/environmentEC2.ts b/sdk/nodejs/cloud9/environmentEC2.ts index 56e4dccec4b..d42d79612bf 100644 --- a/sdk/nodejs/cloud9/environmentEC2.ts +++ b/sdk/nodejs/cloud9/environmentEC2.ts @@ -103,9 +103,11 @@ export class EnvironmentEC2 extends pulumi.CustomResource { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` */ public readonly imageId!: pulumi.Output; /** @@ -214,9 +216,11 @@ export interface EnvironmentEC2State { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` */ imageId?: pulumi.Input; /** @@ -272,9 +276,11 @@ export interface EnvironmentEC2Args { * * `amazonlinux-1-x86_64` * * `amazonlinux-2-x86_64` * * `ubuntu-18.04-x86_64` + * * `ubuntu-22.04-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` */ imageId?: pulumi.Input; /** diff --git a/sdk/nodejs/cloudfront/distribution.ts b/sdk/nodejs/cloudfront/distribution.ts index 0f7f5891a28..428dfbfab34 100644 --- a/sdk/nodejs/cloudfront/distribution.ts +++ b/sdk/nodejs/cloudfront/distribution.ts @@ -301,7 +301,7 @@ export class Distribution extends pulumi.CustomResource { /** * Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `aws.cloudfront.ContinuousDeploymentPolicy` resource for additional details. */ - public readonly continuousDeploymentPolicyId!: pulumi.Output; + public readonly continuousDeploymentPolicyId!: pulumi.Output; /** * One or more custom error response elements (multiples allowed). */ diff --git a/sdk/nodejs/connect/getInstanceStorageConfig.ts b/sdk/nodejs/connect/getInstanceStorageConfig.ts index c470d0f76f5..9aab6908de3 100644 --- a/sdk/nodejs/connect/getInstanceStorageConfig.ts +++ b/sdk/nodejs/connect/getInstanceStorageConfig.ts @@ -46,7 +46,7 @@ export interface GetInstanceStorageConfigArgs { */ instanceId: string; /** - * A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. */ resourceType: string; } @@ -100,7 +100,7 @@ export interface GetInstanceStorageConfigOutputArgs { */ instanceId: pulumi.Input; /** - * A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. */ resourceType: pulumi.Input; } diff --git a/sdk/nodejs/connect/instanceStorageConfig.ts b/sdk/nodejs/connect/instanceStorageConfig.ts index 83776d8b768..e06c6480254 100644 --- a/sdk/nodejs/connect/instanceStorageConfig.ts +++ b/sdk/nodejs/connect/instanceStorageConfig.ts @@ -154,7 +154,7 @@ export class InstanceStorageConfig extends pulumi.CustomResource { */ public readonly instanceId!: pulumi.Output; /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. */ public readonly resourceType!: pulumi.Output; /** @@ -213,7 +213,7 @@ export interface InstanceStorageConfigState { */ instanceId?: pulumi.Input; /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. */ resourceType?: pulumi.Input; /** @@ -231,7 +231,7 @@ export interface InstanceStorageConfigArgs { */ instanceId: pulumi.Input; /** - * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + * A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. */ resourceType: pulumi.Input; /** diff --git a/sdk/nodejs/dms/index.ts b/sdk/nodejs/dms/index.ts index 05ce4c7ea52..ee761adf8f8 100644 --- a/sdk/nodejs/dms/index.ts +++ b/sdk/nodejs/dms/index.ts @@ -45,6 +45,11 @@ export const getReplicationTask: typeof import("./getReplicationTask").getReplic export const getReplicationTaskOutput: typeof import("./getReplicationTask").getReplicationTaskOutput = null as any; utilities.lazyLoad(exports, ["getReplicationTask","getReplicationTaskOutput"], () => require("./getReplicationTask")); +export { ReplicationConfigArgs, ReplicationConfigState } from "./replicationConfig"; +export type ReplicationConfig = import("./replicationConfig").ReplicationConfig; +export const ReplicationConfig: typeof import("./replicationConfig").ReplicationConfig = null as any; +utilities.lazyLoad(exports, ["ReplicationConfig"], () => require("./replicationConfig")); + export { ReplicationInstanceArgs, ReplicationInstanceState } from "./replicationInstance"; export type ReplicationInstance = import("./replicationInstance").ReplicationInstance; export const ReplicationInstance: typeof import("./replicationInstance").ReplicationInstance = null as any; @@ -76,6 +81,8 @@ const _module = { return new Endpoint(name, undefined, { urn }) case "aws:dms/eventSubscription:EventSubscription": return new EventSubscription(name, undefined, { urn }) + case "aws:dms/replicationConfig:ReplicationConfig": + return new ReplicationConfig(name, undefined, { urn }) case "aws:dms/replicationInstance:ReplicationInstance": return new ReplicationInstance(name, undefined, { urn }) case "aws:dms/replicationSubnetGroup:ReplicationSubnetGroup": @@ -92,6 +99,7 @@ const _module = { pulumi.runtime.registerResourceModule("aws", "dms/certificate", _module) pulumi.runtime.registerResourceModule("aws", "dms/endpoint", _module) pulumi.runtime.registerResourceModule("aws", "dms/eventSubscription", _module) +pulumi.runtime.registerResourceModule("aws", "dms/replicationConfig", _module) pulumi.runtime.registerResourceModule("aws", "dms/replicationInstance", _module) pulumi.runtime.registerResourceModule("aws", "dms/replicationSubnetGroup", _module) pulumi.runtime.registerResourceModule("aws", "dms/replicationTask", _module) diff --git a/sdk/nodejs/dms/replicationConfig.ts b/sdk/nodejs/dms/replicationConfig.ts new file mode 100644 index 00000000000..e52e484f0a9 --- /dev/null +++ b/sdk/nodejs/dms/replicationConfig.ts @@ -0,0 +1,307 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Provides a DMS Serverless replication config resource. + * + * > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `startReplication` to resume the replication afterwards. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const name = new aws.dms.ReplicationConfig("name", { + * replicationConfigIdentifier: "test-dms-serverless-replication-tf", + * resourceIdentifier: "test-dms-serverless-replication-tf", + * replicationType: "cdc", + * sourceEndpointArn: aws_dms_endpoint.source.endpoint_arn, + * targetEndpointArn: aws_dms_endpoint.target.endpoint_arn, + * tableMappings: ` { + * "rules":[{"rule-type":"selection","rule-id":"1","rule-name":"1","object-locator":{"schema-name":"%%","table-name":"%%", "rule-action":"include"}] + * } + * `, + * startReplication: true, + * computeConfig: { + * replicationSubnetGroupId: aws_dms_replication_subnet_group["default"].replication_subnet_group_id, + * maxCapacityUnits: 64, + * minCapacityUnits: 2, + * preferredMaintenanceWindow: "sun:23:45-mon:00:30", + * }, + * }); + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { + * + * to = aws_dms_replication_config.example + * + * id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI + */ +export class ReplicationConfig extends pulumi.CustomResource { + /** + * Get an existing ReplicationConfig resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ReplicationConfigState, opts?: pulumi.CustomResourceOptions): ReplicationConfig { + return new ReplicationConfig(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'aws:dms/replicationConfig:ReplicationConfig'; + + /** + * Returns true if the given object is an instance of ReplicationConfig. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ReplicationConfig { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ReplicationConfig.__pulumiType; + } + + /** + * The Amazon Resource Name (ARN) for the serverless replication config. + */ + public /*out*/ readonly arn!: pulumi.Output; + /** + * Configuration block for provisioning an DMS Serverless replication. + */ + public readonly computeConfig!: pulumi.Output; + /** + * Unique identifier that you want to use to create the config. + */ + public readonly replicationConfigIdentifier!: pulumi.Output; + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + */ + public readonly replicationSettings!: pulumi.Output; + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + */ + public readonly replicationType!: pulumi.Output; + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + */ + public readonly resourceIdentifier!: pulumi.Output; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + */ + public readonly sourceEndpointArn!: pulumi.Output; + /** + * Whether to run or stop the serverless replication, default is false. + */ + public readonly startReplication!: pulumi.Output; + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + */ + public readonly supplementalSettings!: pulumi.Output; + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + */ + public readonly tableMappings!: pulumi.Output; + /** + * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + * + * @deprecated Please use `tags` instead. + */ + public /*out*/ readonly tagsAll!: pulumi.Output<{[key: string]: string}>; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + */ + public readonly targetEndpointArn!: pulumi.Output; + + /** + * Create a ReplicationConfig resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ReplicationConfigArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ReplicationConfigArgs | ReplicationConfigState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ReplicationConfigState | undefined; + resourceInputs["arn"] = state ? state.arn : undefined; + resourceInputs["computeConfig"] = state ? state.computeConfig : undefined; + resourceInputs["replicationConfigIdentifier"] = state ? state.replicationConfigIdentifier : undefined; + resourceInputs["replicationSettings"] = state ? state.replicationSettings : undefined; + resourceInputs["replicationType"] = state ? state.replicationType : undefined; + resourceInputs["resourceIdentifier"] = state ? state.resourceIdentifier : undefined; + resourceInputs["sourceEndpointArn"] = state ? state.sourceEndpointArn : undefined; + resourceInputs["startReplication"] = state ? state.startReplication : undefined; + resourceInputs["supplementalSettings"] = state ? state.supplementalSettings : undefined; + resourceInputs["tableMappings"] = state ? state.tableMappings : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; + resourceInputs["targetEndpointArn"] = state ? state.targetEndpointArn : undefined; + } else { + const args = argsOrState as ReplicationConfigArgs | undefined; + if ((!args || args.computeConfig === undefined) && !opts.urn) { + throw new Error("Missing required property 'computeConfig'"); + } + if ((!args || args.replicationConfigIdentifier === undefined) && !opts.urn) { + throw new Error("Missing required property 'replicationConfigIdentifier'"); + } + if ((!args || args.replicationType === undefined) && !opts.urn) { + throw new Error("Missing required property 'replicationType'"); + } + if ((!args || args.sourceEndpointArn === undefined) && !opts.urn) { + throw new Error("Missing required property 'sourceEndpointArn'"); + } + if ((!args || args.tableMappings === undefined) && !opts.urn) { + throw new Error("Missing required property 'tableMappings'"); + } + if ((!args || args.targetEndpointArn === undefined) && !opts.urn) { + throw new Error("Missing required property 'targetEndpointArn'"); + } + resourceInputs["computeConfig"] = args ? args.computeConfig : undefined; + resourceInputs["replicationConfigIdentifier"] = args ? args.replicationConfigIdentifier : undefined; + resourceInputs["replicationSettings"] = args ? args.replicationSettings : undefined; + resourceInputs["replicationType"] = args ? args.replicationType : undefined; + resourceInputs["resourceIdentifier"] = args ? args.resourceIdentifier : undefined; + resourceInputs["sourceEndpointArn"] = args ? args.sourceEndpointArn : undefined; + resourceInputs["startReplication"] = args ? args.startReplication : undefined; + resourceInputs["supplementalSettings"] = args ? args.supplementalSettings : undefined; + resourceInputs["tableMappings"] = args ? args.tableMappings : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["targetEndpointArn"] = args ? args.targetEndpointArn : undefined; + resourceInputs["arn"] = undefined /*out*/; + resourceInputs["tagsAll"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["tagsAll"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(ReplicationConfig.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ReplicationConfig resources. + */ +export interface ReplicationConfigState { + /** + * The Amazon Resource Name (ARN) for the serverless replication config. + */ + arn?: pulumi.Input; + /** + * Configuration block for provisioning an DMS Serverless replication. + */ + computeConfig?: pulumi.Input; + /** + * Unique identifier that you want to use to create the config. + */ + replicationConfigIdentifier?: pulumi.Input; + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + */ + replicationSettings?: pulumi.Input; + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + */ + replicationType?: pulumi.Input; + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + */ + resourceIdentifier?: pulumi.Input; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + */ + sourceEndpointArn?: pulumi.Input; + /** + * Whether to run or stop the serverless replication, default is false. + */ + startReplication?: pulumi.Input; + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + */ + supplementalSettings?: pulumi.Input; + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + */ + tableMappings?: pulumi.Input; + /** + * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + * + * @deprecated Please use `tags` instead. + */ + tagsAll?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + */ + targetEndpointArn?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ReplicationConfig resource. + */ +export interface ReplicationConfigArgs { + /** + * Configuration block for provisioning an DMS Serverless replication. + */ + computeConfig: pulumi.Input; + /** + * Unique identifier that you want to use to create the config. + */ + replicationConfigIdentifier: pulumi.Input; + /** + * An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + */ + replicationSettings?: pulumi.Input; + /** + * The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + */ + replicationType: pulumi.Input; + /** + * Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + */ + resourceIdentifier?: pulumi.Input; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + */ + sourceEndpointArn: pulumi.Input; + /** + * Whether to run or stop the serverless replication, default is false. + */ + startReplication?: pulumi.Input; + /** + * JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + */ + supplementalSettings?: pulumi.Input; + /** + * An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + */ + tableMappings: pulumi.Input; + /** + * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + */ + targetEndpointArn: pulumi.Input; +} diff --git a/sdk/nodejs/fsx/ontapFileSystem.ts b/sdk/nodejs/fsx/ontapFileSystem.ts index 41b6246e2ad..c3b04e0f84b 100644 --- a/sdk/nodejs/fsx/ontapFileSystem.ts +++ b/sdk/nodejs/fsx/ontapFileSystem.ts @@ -83,7 +83,7 @@ export class OntapFileSystem extends pulumi.CustomResource { */ public readonly deploymentType!: pulumi.Output; /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. */ public readonly diskIopsConfiguration!: pulumi.Output; /** @@ -263,7 +263,7 @@ export interface OntapFileSystemState { */ deploymentType?: pulumi.Input; /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. */ diskIopsConfiguration?: pulumi.Input; /** @@ -359,7 +359,7 @@ export interface OntapFileSystemArgs { */ deploymentType: pulumi.Input; /** - * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + * The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. */ diskIopsConfiguration?: pulumi.Input; /** diff --git a/sdk/nodejs/fsx/ontapVolume.ts b/sdk/nodejs/fsx/ontapVolume.ts index bfb8cc787a6..9d82b01b259 100644 --- a/sdk/nodejs/fsx/ontapVolume.ts +++ b/sdk/nodejs/fsx/ontapVolume.ts @@ -85,6 +85,14 @@ export class OntapVolume extends pulumi.CustomResource { * Amazon Resource Name of the volune. */ public /*out*/ readonly arn!: pulumi.Output; + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + */ + public readonly bypassSnaplockEnterpriseRetention!: pulumi.Output; + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + */ + public readonly copyTagsToBackups!: pulumi.Output; /** * Describes the file system for the volume, e.g. `fs-12345679` */ @@ -117,6 +125,14 @@ export class OntapVolume extends pulumi.CustomResource { * When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. */ public readonly skipFinalBackup!: pulumi.Output; + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + */ + public readonly snaplockConfiguration!: pulumi.Output; + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + */ + public readonly snapshotPolicy!: pulumi.Output; /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. */ @@ -135,6 +151,9 @@ export class OntapVolume extends pulumi.CustomResource { * @deprecated Please use `tags` instead. */ public /*out*/ readonly tagsAll!: pulumi.Output<{[key: string]: string}>; + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + */ public readonly tieringPolicy!: pulumi.Output; /** * The Volume's UUID (universally unique identifier). @@ -159,6 +178,8 @@ export class OntapVolume extends pulumi.CustomResource { if (opts.id) { const state = argsOrState as OntapVolumeState | undefined; resourceInputs["arn"] = state ? state.arn : undefined; + resourceInputs["bypassSnaplockEnterpriseRetention"] = state ? state.bypassSnaplockEnterpriseRetention : undefined; + resourceInputs["copyTagsToBackups"] = state ? state.copyTagsToBackups : undefined; resourceInputs["fileSystemId"] = state ? state.fileSystemId : undefined; resourceInputs["flexcacheEndpointType"] = state ? state.flexcacheEndpointType : undefined; resourceInputs["junctionPath"] = state ? state.junctionPath : undefined; @@ -167,6 +188,8 @@ export class OntapVolume extends pulumi.CustomResource { resourceInputs["securityStyle"] = state ? state.securityStyle : undefined; resourceInputs["sizeInMegabytes"] = state ? state.sizeInMegabytes : undefined; resourceInputs["skipFinalBackup"] = state ? state.skipFinalBackup : undefined; + resourceInputs["snaplockConfiguration"] = state ? state.snaplockConfiguration : undefined; + resourceInputs["snapshotPolicy"] = state ? state.snapshotPolicy : undefined; resourceInputs["storageEfficiencyEnabled"] = state ? state.storageEfficiencyEnabled : undefined; resourceInputs["storageVirtualMachineId"] = state ? state.storageVirtualMachineId : undefined; resourceInputs["tags"] = state ? state.tags : undefined; @@ -182,12 +205,16 @@ export class OntapVolume extends pulumi.CustomResource { if ((!args || args.storageVirtualMachineId === undefined) && !opts.urn) { throw new Error("Missing required property 'storageVirtualMachineId'"); } + resourceInputs["bypassSnaplockEnterpriseRetention"] = args ? args.bypassSnaplockEnterpriseRetention : undefined; + resourceInputs["copyTagsToBackups"] = args ? args.copyTagsToBackups : undefined; resourceInputs["junctionPath"] = args ? args.junctionPath : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["ontapVolumeType"] = args ? args.ontapVolumeType : undefined; resourceInputs["securityStyle"] = args ? args.securityStyle : undefined; resourceInputs["sizeInMegabytes"] = args ? args.sizeInMegabytes : undefined; resourceInputs["skipFinalBackup"] = args ? args.skipFinalBackup : undefined; + resourceInputs["snaplockConfiguration"] = args ? args.snaplockConfiguration : undefined; + resourceInputs["snapshotPolicy"] = args ? args.snapshotPolicy : undefined; resourceInputs["storageEfficiencyEnabled"] = args ? args.storageEfficiencyEnabled : undefined; resourceInputs["storageVirtualMachineId"] = args ? args.storageVirtualMachineId : undefined; resourceInputs["tags"] = args ? args.tags : undefined; @@ -214,6 +241,14 @@ export interface OntapVolumeState { * Amazon Resource Name of the volune. */ arn?: pulumi.Input; + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + */ + bypassSnaplockEnterpriseRetention?: pulumi.Input; + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + */ + copyTagsToBackups?: pulumi.Input; /** * Describes the file system for the volume, e.g. `fs-12345679` */ @@ -246,6 +281,14 @@ export interface OntapVolumeState { * When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. */ skipFinalBackup?: pulumi.Input; + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + */ + snaplockConfiguration?: pulumi.Input; + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + */ + snapshotPolicy?: pulumi.Input; /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. */ @@ -264,6 +307,9 @@ export interface OntapVolumeState { * @deprecated Please use `tags` instead. */ tagsAll?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + */ tieringPolicy?: pulumi.Input; /** * The Volume's UUID (universally unique identifier). @@ -279,6 +325,14 @@ export interface OntapVolumeState { * The set of arguments for constructing a OntapVolume resource. */ export interface OntapVolumeArgs { + /** + * Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + */ + bypassSnaplockEnterpriseRetention?: pulumi.Input; + /** + * A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + */ + copyTagsToBackups?: pulumi.Input; /** * Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junctionPath must have a leading forward slash, such as `/vol3` */ @@ -303,6 +357,14 @@ export interface OntapVolumeArgs { * When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. */ skipFinalBackup?: pulumi.Input; + /** + * The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + */ + snaplockConfiguration?: pulumi.Input; + /** + * Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + */ + snapshotPolicy?: pulumi.Input; /** * Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. */ @@ -315,6 +377,9 @@ export interface OntapVolumeArgs { * A map of tags to assign to the volume. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + */ tieringPolicy?: pulumi.Input; /** * The type of volume, currently the only valid value is `ONTAP`. diff --git a/sdk/nodejs/fsx/openZfsVolume.ts b/sdk/nodejs/fsx/openZfsVolume.ts index cdfd7fe0ac5..31d03e564ff 100644 --- a/sdk/nodejs/fsx/openZfsVolume.ts +++ b/sdk/nodejs/fsx/openZfsVolume.ts @@ -68,6 +68,10 @@ export class OpenZfsVolume extends pulumi.CustomResource { * Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. */ public readonly dataCompressionType!: pulumi.Output; + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + */ + public readonly deleteVolumeOptions!: pulumi.Output; /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. */ @@ -132,6 +136,7 @@ export class OpenZfsVolume extends pulumi.CustomResource { resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["copyTagsToSnapshots"] = state ? state.copyTagsToSnapshots : undefined; resourceInputs["dataCompressionType"] = state ? state.dataCompressionType : undefined; + resourceInputs["deleteVolumeOptions"] = state ? state.deleteVolumeOptions : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nfsExports"] = state ? state.nfsExports : undefined; resourceInputs["originSnapshot"] = state ? state.originSnapshot : undefined; @@ -151,6 +156,7 @@ export class OpenZfsVolume extends pulumi.CustomResource { } resourceInputs["copyTagsToSnapshots"] = args ? args.copyTagsToSnapshots : undefined; resourceInputs["dataCompressionType"] = args ? args.dataCompressionType : undefined; + resourceInputs["deleteVolumeOptions"] = args ? args.deleteVolumeOptions : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nfsExports"] = args ? args.nfsExports : undefined; resourceInputs["originSnapshot"] = args ? args.originSnapshot : undefined; @@ -188,6 +194,10 @@ export interface OpenZfsVolumeState { * Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. */ dataCompressionType?: pulumi.Input; + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + */ + deleteVolumeOptions?: pulumi.Input; /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. */ @@ -249,6 +259,10 @@ export interface OpenZfsVolumeArgs { * Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. */ dataCompressionType?: pulumi.Input; + /** + * Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + */ + deleteVolumeOptions?: pulumi.Input; /** * The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. */ diff --git a/sdk/nodejs/lex/index.ts b/sdk/nodejs/lex/index.ts index b67d15f12ae..71b9c5ba935 100644 --- a/sdk/nodejs/lex/index.ts +++ b/sdk/nodejs/lex/index.ts @@ -45,6 +45,11 @@ export type SlotType = import("./slotType").SlotType; export const SlotType: typeof import("./slotType").SlotType = null as any; utilities.lazyLoad(exports, ["SlotType"], () => require("./slotType")); +export { V2modelsBotArgs, V2modelsBotState } from "./v2modelsBot"; +export type V2modelsBot = import("./v2modelsBot").V2modelsBot; +export const V2modelsBot: typeof import("./v2modelsBot").V2modelsBot = null as any; +utilities.lazyLoad(exports, ["V2modelsBot"], () => require("./v2modelsBot")); + const _module = { version: utilities.getVersion(), @@ -58,6 +63,8 @@ const _module = { return new Intent(name, undefined, { urn }) case "aws:lex/slotType:SlotType": return new SlotType(name, undefined, { urn }) + case "aws:lex/v2modelsBot:V2modelsBot": + return new V2modelsBot(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } @@ -67,3 +74,4 @@ pulumi.runtime.registerResourceModule("aws", "lex/bot", _module) pulumi.runtime.registerResourceModule("aws", "lex/botAlias", _module) pulumi.runtime.registerResourceModule("aws", "lex/intent", _module) pulumi.runtime.registerResourceModule("aws", "lex/slotType", _module) +pulumi.runtime.registerResourceModule("aws", "lex/v2modelsBot", _module) diff --git a/sdk/nodejs/lex/v2modelsBot.ts b/sdk/nodejs/lex/v2modelsBot.ts new file mode 100644 index 00000000000..e6ff87d494a --- /dev/null +++ b/sdk/nodejs/lex/v2modelsBot.ts @@ -0,0 +1,238 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Resource for managing an AWS Lex V2 Models Bot. + * + * ## Example Usage + * ### Basic Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const example = new aws.lex.V2modelsBot("example", { + * dataPrivacies: [{ + * childDirected: "boolean", + * }], + * idleSessionTtlInSeconds: 10, + * roleArn: "bot_example_arn", + * }); + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { + * + * to = aws_lexv2models_bot.example + * + * id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 + */ +export class V2modelsBot extends pulumi.CustomResource { + /** + * Get an existing V2modelsBot resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: V2modelsBotState, opts?: pulumi.CustomResourceOptions): V2modelsBot { + return new V2modelsBot(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'aws:lex/v2modelsBot:V2modelsBot'; + + /** + * Returns true if the given object is an instance of V2modelsBot. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is V2modelsBot { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === V2modelsBot.__pulumiType; + } + + public /*out*/ readonly arn!: pulumi.Output; + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + */ + public readonly dataPrivacies!: pulumi.Output; + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + */ + public readonly description!: pulumi.Output; + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + */ + public readonly idleSessionTtlInSeconds!: pulumi.Output; + /** + * List of bot members in a network to be created. See `botMembers`. + */ + public readonly members!: pulumi.Output; + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + */ + public readonly name!: pulumi.Output; + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + */ + public readonly roleArn!: pulumi.Output; + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * @deprecated Please use `tags` instead. + */ + public /*out*/ readonly tagsAll!: pulumi.Output<{[key: string]: string}>; + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + */ + public readonly testBotAliasTags!: pulumi.Output<{[key: string]: string} | undefined>; + public readonly timeouts!: pulumi.Output; + public readonly type!: pulumi.Output; + + /** + * Create a V2modelsBot resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: V2modelsBotArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: V2modelsBotArgs | V2modelsBotState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as V2modelsBotState | undefined; + resourceInputs["arn"] = state ? state.arn : undefined; + resourceInputs["dataPrivacies"] = state ? state.dataPrivacies : undefined; + resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["idleSessionTtlInSeconds"] = state ? state.idleSessionTtlInSeconds : undefined; + resourceInputs["members"] = state ? state.members : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["roleArn"] = state ? state.roleArn : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; + resourceInputs["testBotAliasTags"] = state ? state.testBotAliasTags : undefined; + resourceInputs["timeouts"] = state ? state.timeouts : undefined; + resourceInputs["type"] = state ? state.type : undefined; + } else { + const args = argsOrState as V2modelsBotArgs | undefined; + if ((!args || args.idleSessionTtlInSeconds === undefined) && !opts.urn) { + throw new Error("Missing required property 'idleSessionTtlInSeconds'"); + } + if ((!args || args.roleArn === undefined) && !opts.urn) { + throw new Error("Missing required property 'roleArn'"); + } + resourceInputs["dataPrivacies"] = args ? args.dataPrivacies : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["idleSessionTtlInSeconds"] = args ? args.idleSessionTtlInSeconds : undefined; + resourceInputs["members"] = args ? args.members : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["roleArn"] = args ? args.roleArn : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["testBotAliasTags"] = args ? args.testBotAliasTags : undefined; + resourceInputs["timeouts"] = args ? args.timeouts : undefined; + resourceInputs["type"] = args ? args.type : undefined; + resourceInputs["arn"] = undefined /*out*/; + resourceInputs["tagsAll"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["tagsAll"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(V2modelsBot.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering V2modelsBot resources. + */ +export interface V2modelsBotState { + arn?: pulumi.Input; + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + */ + dataPrivacies?: pulumi.Input[]>; + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + */ + description?: pulumi.Input; + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + */ + idleSessionTtlInSeconds?: pulumi.Input; + /** + * List of bot members in a network to be created. See `botMembers`. + */ + members?: pulumi.Input[]>; + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + */ + name?: pulumi.Input; + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + */ + roleArn?: pulumi.Input; + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * @deprecated Please use `tags` instead. + */ + tagsAll?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + */ + testBotAliasTags?: pulumi.Input<{[key: string]: pulumi.Input}>; + timeouts?: pulumi.Input; + type?: pulumi.Input; +} + +/** + * The set of arguments for constructing a V2modelsBot resource. + */ +export interface V2modelsBotArgs { + /** + * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `dataPrivacy` + */ + dataPrivacies?: pulumi.Input[]>; + /** + * Description of the bot. It appears in lists to help you identify a particular bot. + */ + description?: pulumi.Input; + /** + * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + */ + idleSessionTtlInSeconds: pulumi.Input; + /** + * List of bot members in a network to be created. See `botMembers`. + */ + members?: pulumi.Input[]>; + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + */ + name?: pulumi.Input; + /** + * ARN of an IAM role that has permission to access the bot. + * + * The following arguments are optional: + */ + roleArn: pulumi.Input; + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + */ + testBotAliasTags?: pulumi.Input<{[key: string]: pulumi.Input}>; + timeouts?: pulumi.Input; + type?: pulumi.Input; +} diff --git a/sdk/nodejs/lightsail/bucket.ts b/sdk/nodejs/lightsail/bucket.ts index 5837b2cf7c3..cec579e64d9 100644 --- a/sdk/nodejs/lightsail/bucket.ts +++ b/sdk/nodejs/lightsail/bucket.ts @@ -68,6 +68,10 @@ export class Bucket extends pulumi.CustomResource { * The timestamp when the bucket was created. */ public /*out*/ readonly createdAt!: pulumi.Output; + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + */ + public readonly forceDelete!: pulumi.Output; /** * The name for the bucket. */ @@ -109,6 +113,7 @@ export class Bucket extends pulumi.CustomResource { resourceInputs["availabilityZone"] = state ? state.availabilityZone : undefined; resourceInputs["bundleId"] = state ? state.bundleId : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; + resourceInputs["forceDelete"] = state ? state.forceDelete : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["supportCode"] = state ? state.supportCode : undefined; @@ -121,6 +126,7 @@ export class Bucket extends pulumi.CustomResource { throw new Error("Missing required property 'bundleId'"); } resourceInputs["bundleId"] = args ? args.bundleId : undefined; + resourceInputs["forceDelete"] = args ? args.forceDelete : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["arn"] = undefined /*out*/; @@ -158,6 +164,10 @@ export interface BucketState { * The timestamp when the bucket was created. */ createdAt?: pulumi.Input; + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + */ + forceDelete?: pulumi.Input; /** * The name for the bucket. */ @@ -191,6 +201,10 @@ export interface BucketArgs { * The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. */ bundleId: pulumi.Input; + /** + * Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `forceDelete` is set to `true` the bucket will be deleted even when not empty. + */ + forceDelete?: pulumi.Input; /** * The name for the bucket. */ diff --git a/sdk/nodejs/opensearch/outboundConnection.ts b/sdk/nodejs/opensearch/outboundConnection.ts index b2f21aafc73..e84894deb19 100644 --- a/sdk/nodejs/opensearch/outboundConnection.ts +++ b/sdk/nodejs/opensearch/outboundConnection.ts @@ -21,6 +21,7 @@ import * as utilities from "../utilities"; * const currentRegion = aws.getRegion({}); * const foo = new aws.opensearch.OutboundConnection("foo", { * connectionAlias: "outbound_connection", + * connectionMode: "DIRECT", * localDomainInfo: { * ownerId: currentCallerIdentity.then(currentCallerIdentity => currentCallerIdentity.accountId), * region: currentRegion.then(currentRegion => currentRegion.name), @@ -70,10 +71,22 @@ export class OutboundConnection extends pulumi.CustomResource { return obj['__pulumiType'] === OutboundConnection.__pulumiType; } + /** + * Accepts the connection. + */ + public readonly acceptConnection!: pulumi.Output; /** * Specifies the connection alias that will be used by the customer for this connection. */ public readonly connectionAlias!: pulumi.Output; + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + */ + public readonly connectionMode!: pulumi.Output; + /** + * Configuration block for the outbound connection. + */ + public readonly connectionProperties!: pulumi.Output; /** * Status of the connection request. */ @@ -100,7 +113,10 @@ export class OutboundConnection extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as OutboundConnectionState | undefined; + resourceInputs["acceptConnection"] = state ? state.acceptConnection : undefined; resourceInputs["connectionAlias"] = state ? state.connectionAlias : undefined; + resourceInputs["connectionMode"] = state ? state.connectionMode : undefined; + resourceInputs["connectionProperties"] = state ? state.connectionProperties : undefined; resourceInputs["connectionStatus"] = state ? state.connectionStatus : undefined; resourceInputs["localDomainInfo"] = state ? state.localDomainInfo : undefined; resourceInputs["remoteDomainInfo"] = state ? state.remoteDomainInfo : undefined; @@ -115,7 +131,10 @@ export class OutboundConnection extends pulumi.CustomResource { if ((!args || args.remoteDomainInfo === undefined) && !opts.urn) { throw new Error("Missing required property 'remoteDomainInfo'"); } + resourceInputs["acceptConnection"] = args ? args.acceptConnection : undefined; resourceInputs["connectionAlias"] = args ? args.connectionAlias : undefined; + resourceInputs["connectionMode"] = args ? args.connectionMode : undefined; + resourceInputs["connectionProperties"] = args ? args.connectionProperties : undefined; resourceInputs["localDomainInfo"] = args ? args.localDomainInfo : undefined; resourceInputs["remoteDomainInfo"] = args ? args.remoteDomainInfo : undefined; resourceInputs["connectionStatus"] = undefined /*out*/; @@ -129,10 +148,22 @@ export class OutboundConnection extends pulumi.CustomResource { * Input properties used for looking up and filtering OutboundConnection resources. */ export interface OutboundConnectionState { + /** + * Accepts the connection. + */ + acceptConnection?: pulumi.Input; /** * Specifies the connection alias that will be used by the customer for this connection. */ connectionAlias?: pulumi.Input; + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + */ + connectionMode?: pulumi.Input; + /** + * Configuration block for the outbound connection. + */ + connectionProperties?: pulumi.Input; /** * Status of the connection request. */ @@ -151,10 +182,22 @@ export interface OutboundConnectionState { * The set of arguments for constructing a OutboundConnection resource. */ export interface OutboundConnectionArgs { + /** + * Accepts the connection. + */ + acceptConnection?: pulumi.Input; /** * Specifies the connection alias that will be used by the customer for this connection. */ connectionAlias: pulumi.Input; + /** + * Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + */ + connectionMode?: pulumi.Input; + /** + * Configuration block for the outbound connection. + */ + connectionProperties?: pulumi.Input; /** * Configuration block for the local Opensearch domain. */ diff --git a/sdk/nodejs/rds/customDbEngineVersion.ts b/sdk/nodejs/rds/customDbEngineVersion.ts new file mode 100644 index 00000000000..de0f6cf5ef7 --- /dev/null +++ b/sdk/nodejs/rds/customDbEngineVersion.ts @@ -0,0 +1,412 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). + * + * ## Example Usage + * ### RDS Custom for Oracle Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const exampleKey = new aws.kms.Key("exampleKey", {description: "KMS symmetric key for RDS Custom for Oracle"}); + * const exampleCustomDbEngineVersion = new aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", { + * databaseInstallationFilesS3BucketName: "DOC-EXAMPLE-BUCKET", + * databaseInstallationFilesS3Prefix: "1915_GI/", + * engine: "custom-oracle-ee-cdb", + * engineVersion: "19.cdb_cev1", + * kmsKeyId: exampleKey.arn, + * manifest: ` { + * "databaseInstallationFileNames":["V982063-01.zip"] + * } + * `, + * tags: { + * Name: "example", + * Key: "value", + * }, + * }); + * ``` + * ### RDS Custom for Oracle External Manifest Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * import * as crypto from "crypto"; + * import * as fs from "fs"; + * + * function computeFilebase64sha256(path string) string { + * const fileData = Buffer.from(fs.readFileSync(path), 'binary') + * return crypto.createHash('sha256').update(fileData).digest('hex') + * } + * + * const exampleKey = new aws.kms.Key("exampleKey", {description: "KMS symmetric key for RDS Custom for Oracle"}); + * const exampleCustomDbEngineVersion = new aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", { + * databaseInstallationFilesS3BucketName: "DOC-EXAMPLE-BUCKET", + * databaseInstallationFilesS3Prefix: "1915_GI/", + * engine: "custom-oracle-ee-cdb", + * engineVersion: "19.cdb_cev1", + * kmsKeyId: exampleKey.arn, + * filename: "manifest_1915_GI.json", + * manifestHash: computeFilebase64sha256(manifest_1915_GI.json), + * tags: { + * Name: "example", + * Key: "value", + * }, + * }); + * ``` + * ### RDS Custom for SQL Server Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * // CEV creation requires an AMI owned by the operator + * const test = new aws.rds.CustomDbEngineVersion("test", { + * engine: "custom-sqlserver-se", + * engineVersion: "15.00.4249.2.cev-1", + * sourceImageId: "ami-0aa12345678a12ab1", + * }); + * ``` + * ### RDS Custom for SQL Server Usage with AMI from another region + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const example = new aws.ec2.AmiCopy("example", { + * description: "A copy of ami-xxxxxxxx", + * sourceAmiId: "ami-xxxxxxxx", + * sourceAmiRegion: "us-east-1", + * }); + * // CEV creation requires an AMI owned by the operator + * const test = new aws.rds.CustomDbEngineVersion("test", { + * engine: "custom-sqlserver-se", + * engineVersion: "15.00.4249.2.cev-1", + * sourceImageId: example.id, + * }); + * ``` + * + * ## Import + * + * In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { + * + * to = aws_rds_custom_db_engine_version.example + * + * id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 + */ +export class CustomDbEngineVersion extends pulumi.CustomResource { + /** + * Get an existing CustomDbEngineVersion resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: CustomDbEngineVersionState, opts?: pulumi.CustomResourceOptions): CustomDbEngineVersion { + return new CustomDbEngineVersion(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'aws:rds/customDbEngineVersion:CustomDbEngineVersion'; + + /** + * Returns true if the given object is an instance of CustomDbEngineVersion. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is CustomDbEngineVersion { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === CustomDbEngineVersion.__pulumiType; + } + + /** + * The Amazon Resource Name (ARN) for the custom engine version. + */ + public /*out*/ readonly arn!: pulumi.Output; + /** + * The date and time that the CEV was created. + */ + public /*out*/ readonly createTime!: pulumi.Output; + /** + * The name of the Amazon S3 bucket that contains the database installation files. + */ + public readonly databaseInstallationFilesS3BucketName!: pulumi.Output; + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + */ + public readonly databaseInstallationFilesS3Prefix!: pulumi.Output; + /** + * The name of the DB parameter group family for the CEV. + */ + public /*out*/ readonly dbParameterGroupFamily!: pulumi.Output; + /** + * The description of the CEV. + */ + public readonly description!: pulumi.Output; + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + */ + public readonly engine!: pulumi.Output; + /** + * The version of the database engine. + */ + public readonly engineVersion!: pulumi.Output; + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + */ + public readonly filename!: pulumi.Output; + /** + * The ID of the AMI that was created with the CEV. + */ + public /*out*/ readonly imageId!: pulumi.Output; + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + */ + public readonly kmsKeyId!: pulumi.Output; + /** + * The major version of the database engine. + */ + public /*out*/ readonly majorEngineVersion!: pulumi.Output; + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + */ + public readonly manifest!: pulumi.Output; + /** + * The returned manifest file, in JSON format, service generated and often different from input `manifest`. + */ + public /*out*/ readonly manifestComputed!: pulumi.Output; + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + */ + public readonly manifestHash!: pulumi.Output; + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + */ + public readonly sourceImageId!: pulumi.Output; + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + */ + public readonly status!: pulumi.Output; + /** + * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + * + * @deprecated Please use `tags` instead. + */ + public /*out*/ readonly tagsAll!: pulumi.Output<{[key: string]: string}>; + + /** + * Create a CustomDbEngineVersion resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: CustomDbEngineVersionArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: CustomDbEngineVersionArgs | CustomDbEngineVersionState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as CustomDbEngineVersionState | undefined; + resourceInputs["arn"] = state ? state.arn : undefined; + resourceInputs["createTime"] = state ? state.createTime : undefined; + resourceInputs["databaseInstallationFilesS3BucketName"] = state ? state.databaseInstallationFilesS3BucketName : undefined; + resourceInputs["databaseInstallationFilesS3Prefix"] = state ? state.databaseInstallationFilesS3Prefix : undefined; + resourceInputs["dbParameterGroupFamily"] = state ? state.dbParameterGroupFamily : undefined; + resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["engine"] = state ? state.engine : undefined; + resourceInputs["engineVersion"] = state ? state.engineVersion : undefined; + resourceInputs["filename"] = state ? state.filename : undefined; + resourceInputs["imageId"] = state ? state.imageId : undefined; + resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined; + resourceInputs["majorEngineVersion"] = state ? state.majorEngineVersion : undefined; + resourceInputs["manifest"] = state ? state.manifest : undefined; + resourceInputs["manifestComputed"] = state ? state.manifestComputed : undefined; + resourceInputs["manifestHash"] = state ? state.manifestHash : undefined; + resourceInputs["sourceImageId"] = state ? state.sourceImageId : undefined; + resourceInputs["status"] = state ? state.status : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; + } else { + const args = argsOrState as CustomDbEngineVersionArgs | undefined; + if ((!args || args.engine === undefined) && !opts.urn) { + throw new Error("Missing required property 'engine'"); + } + if ((!args || args.engineVersion === undefined) && !opts.urn) { + throw new Error("Missing required property 'engineVersion'"); + } + resourceInputs["databaseInstallationFilesS3BucketName"] = args ? args.databaseInstallationFilesS3BucketName : undefined; + resourceInputs["databaseInstallationFilesS3Prefix"] = args ? args.databaseInstallationFilesS3Prefix : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["engine"] = args ? args.engine : undefined; + resourceInputs["engineVersion"] = args ? args.engineVersion : undefined; + resourceInputs["filename"] = args ? args.filename : undefined; + resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; + resourceInputs["manifest"] = args ? args.manifest : undefined; + resourceInputs["manifestHash"] = args ? args.manifestHash : undefined; + resourceInputs["sourceImageId"] = args ? args.sourceImageId : undefined; + resourceInputs["status"] = args ? args.status : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["arn"] = undefined /*out*/; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["dbParameterGroupFamily"] = undefined /*out*/; + resourceInputs["imageId"] = undefined /*out*/; + resourceInputs["majorEngineVersion"] = undefined /*out*/; + resourceInputs["manifestComputed"] = undefined /*out*/; + resourceInputs["tagsAll"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["tagsAll"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(CustomDbEngineVersion.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering CustomDbEngineVersion resources. + */ +export interface CustomDbEngineVersionState { + /** + * The Amazon Resource Name (ARN) for the custom engine version. + */ + arn?: pulumi.Input; + /** + * The date and time that the CEV was created. + */ + createTime?: pulumi.Input; + /** + * The name of the Amazon S3 bucket that contains the database installation files. + */ + databaseInstallationFilesS3BucketName?: pulumi.Input; + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + */ + databaseInstallationFilesS3Prefix?: pulumi.Input; + /** + * The name of the DB parameter group family for the CEV. + */ + dbParameterGroupFamily?: pulumi.Input; + /** + * The description of the CEV. + */ + description?: pulumi.Input; + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + */ + engine?: pulumi.Input; + /** + * The version of the database engine. + */ + engineVersion?: pulumi.Input; + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + */ + filename?: pulumi.Input; + /** + * The ID of the AMI that was created with the CEV. + */ + imageId?: pulumi.Input; + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + */ + kmsKeyId?: pulumi.Input; + /** + * The major version of the database engine. + */ + majorEngineVersion?: pulumi.Input; + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + */ + manifest?: pulumi.Input; + /** + * The returned manifest file, in JSON format, service generated and often different from input `manifest`. + */ + manifestComputed?: pulumi.Input; + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + */ + manifestHash?: pulumi.Input; + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + */ + sourceImageId?: pulumi.Input; + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + */ + status?: pulumi.Input; + /** + * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. + * + * @deprecated Please use `tags` instead. + */ + tagsAll?: pulumi.Input<{[key: string]: pulumi.Input}>; +} + +/** + * The set of arguments for constructing a CustomDbEngineVersion resource. + */ +export interface CustomDbEngineVersionArgs { + /** + * The name of the Amazon S3 bucket that contains the database installation files. + */ + databaseInstallationFilesS3BucketName?: pulumi.Input; + /** + * The prefix for the Amazon S3 bucket that contains the database installation files. + */ + databaseInstallationFilesS3Prefix?: pulumi.Input; + /** + * The description of the CEV. + */ + description?: pulumi.Input; + /** + * The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + */ + engine: pulumi.Input; + /** + * The version of the database engine. + */ + engineVersion: pulumi.Input; + /** + * The name of the manifest file within the local filesystem. Conflicts with `manifest`. + */ + filename?: pulumi.Input; + /** + * The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + */ + kmsKeyId?: pulumi.Input; + /** + * The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + */ + manifest?: pulumi.Input; + /** + * Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + */ + manifestHash?: pulumi.Input; + /** + * The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + */ + sourceImageId?: pulumi.Input; + /** + * The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + */ + status?: pulumi.Input; + /** + * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/rds/index.ts b/sdk/nodejs/rds/index.ts index 0133c1c2329..c9d66dd8c48 100644 --- a/sdk/nodejs/rds/index.ts +++ b/sdk/nodejs/rds/index.ts @@ -40,6 +40,11 @@ export type ClusterSnapshot = import("./clusterSnapshot").ClusterSnapshot; export const ClusterSnapshot: typeof import("./clusterSnapshot").ClusterSnapshot = null as any; utilities.lazyLoad(exports, ["ClusterSnapshot"], () => require("./clusterSnapshot")); +export { CustomDbEngineVersionArgs, CustomDbEngineVersionState } from "./customDbEngineVersion"; +export type CustomDbEngineVersion = import("./customDbEngineVersion").CustomDbEngineVersion; +export const CustomDbEngineVersion: typeof import("./customDbEngineVersion").CustomDbEngineVersion = null as any; +utilities.lazyLoad(exports, ["CustomDbEngineVersion"], () => require("./customDbEngineVersion")); + export * from "./engineMode"; export * from "./engineType"; export { EventSubscriptionArgs, EventSubscriptionState } from "./eventSubscription"; @@ -211,6 +216,8 @@ const _module = { return new ClusterRoleAssociation(name, undefined, { urn }) case "aws:rds/clusterSnapshot:ClusterSnapshot": return new ClusterSnapshot(name, undefined, { urn }) + case "aws:rds/customDbEngineVersion:CustomDbEngineVersion": + return new CustomDbEngineVersion(name, undefined, { urn }) case "aws:rds/eventSubscription:EventSubscription": return new EventSubscription(name, undefined, { urn }) case "aws:rds/exportTask:ExportTask": @@ -255,6 +262,7 @@ pulumi.runtime.registerResourceModule("aws", "rds/clusterInstance", _module) pulumi.runtime.registerResourceModule("aws", "rds/clusterParameterGroup", _module) pulumi.runtime.registerResourceModule("aws", "rds/clusterRoleAssociation", _module) pulumi.runtime.registerResourceModule("aws", "rds/clusterSnapshot", _module) +pulumi.runtime.registerResourceModule("aws", "rds/customDbEngineVersion", _module) pulumi.runtime.registerResourceModule("aws", "rds/eventSubscription", _module) pulumi.runtime.registerResourceModule("aws", "rds/exportTask", _module) pulumi.runtime.registerResourceModule("aws", "rds/globalCluster", _module) diff --git a/sdk/nodejs/route53/hostedZoneDnsSec.ts b/sdk/nodejs/route53/hostedZoneDnsSec.ts index bc98581cb52..d46be935396 100644 --- a/sdk/nodejs/route53/hostedZoneDnsSec.ts +++ b/sdk/nodejs/route53/hostedZoneDnsSec.ts @@ -9,6 +9,8 @@ import * as utilities from "../utilities"; * * !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. * + * > **Note:** Route53 hosted zones are global resources, and as such any `aws.kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `aws.kms.Key` resource as described in the provider alias documentation. + * * ## Example Usage * * ```typescript diff --git a/sdk/nodejs/s3/getBucketObject.ts b/sdk/nodejs/s3/getBucketObject.ts index b4d82579f00..e2b695d69b5 100644 --- a/sdk/nodejs/s3/getBucketObject.ts +++ b/sdk/nodejs/s3/getBucketObject.ts @@ -154,7 +154,7 @@ export interface GetBucketObjectResult { */ readonly lastModified: string; /** - * Map of metadata stored with the object in S3 + * Map of metadata stored with the object in S3. Keys are always returned in lowercase. */ readonly metadata: {[key: string]: string}; /** diff --git a/sdk/nodejs/s3/getObject.ts b/sdk/nodejs/s3/getObject.ts index 8b216701421..dec8fd77f41 100644 --- a/sdk/nodejs/s3/getObject.ts +++ b/sdk/nodejs/s3/getObject.ts @@ -169,7 +169,7 @@ export interface GetObjectResult { */ readonly lastModified: string; /** - * Map of metadata stored with the object in S3 + * Map of metadata stored with the object in S3. Keys are always returned in lowercase. */ readonly metadata: {[key: string]: string}; /** diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 664750549fd..1ebe922e484 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -263,6 +263,7 @@ "chimesdkmediapipelines/index.ts", "chimesdkmediapipelines/mediaInsightsPipelineConfiguration.ts", "cleanrooms/collaboration.ts", + "cleanrooms/configuredTable.ts", "cleanrooms/index.ts", "cloud9/environmentEC2.ts", "cloud9/environmentMembership.ts", @@ -542,6 +543,7 @@ "dms/getReplicationSubnetGroup.ts", "dms/getReplicationTask.ts", "dms/index.ts", + "dms/replicationConfig.ts", "dms/replicationInstance.ts", "dms/replicationSubnetGroup.ts", "dms/replicationTask.ts", @@ -1210,6 +1212,7 @@ "lex/index.ts", "lex/intent.ts", "lex/slotType.ts", + "lex/v2modelsBot.ts", "licensemanager/association.ts", "licensemanager/getLicenseGrants.ts", "licensemanager/getReceivedLicense.ts", @@ -1503,6 +1506,7 @@ "rds/clusterParameterGroup.ts", "rds/clusterRoleAssociation.ts", "rds/clusterSnapshot.ts", + "rds/customDbEngineVersion.ts", "rds/engineMode.ts", "rds/engineType.ts", "rds/eventSubscription.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 5904ffa0251..42dceedced3 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -9474,6 +9474,11 @@ export namespace cleanrooms { memberAbilities: pulumi.Input[]>; status?: pulumi.Input; } + + export interface ConfiguredTableTableReference { + databaseName: pulumi.Input; + tableName: pulumi.Input; + } } export namespace cloudformation { @@ -10053,11 +10058,11 @@ export namespace cloudfront { */ originPath?: pulumi.Input; /** - * The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. */ originShield?: pulumi.Input; /** - * The CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. + * CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. */ s3OriginConfig?: pulumi.Input; } @@ -10129,9 +10134,9 @@ export namespace cloudfront { */ enabled: pulumi.Input; /** - * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. */ - originShieldRegion: pulumi.Input; + originShieldRegion?: pulumi.Input; } export interface DistributionOriginS3OriginConfig { @@ -16282,6 +16287,49 @@ export namespace dms { useTaskStartTimeForFullLoadTimestamp?: pulumi.Input; } + export interface ReplicationConfigComputeConfig { + /** + * The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + */ + availabilityZone?: pulumi.Input; + /** + * A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + */ + dnsNameServers?: pulumi.Input; + /** + * An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + */ + kmsKeyId?: pulumi.Input; + /** + * Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + */ + maxCapacityUnits?: pulumi.Input; + /** + * Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + */ + minCapacityUnits?: pulumi.Input; + /** + * Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. + */ + multiAz?: pulumi.Input; + /** + * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + */ + preferredMaintenanceWindow?: pulumi.Input; + /** + * Specifies a subnet group identifier to associate with the DMS Serverless replication. + */ + replicationSubnetGroupId: pulumi.Input; + /** + * Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + */ + vpcSecurityGroupIds?: pulumi.Input[]>; + } } export namespace docdb { @@ -25828,6 +25876,92 @@ export namespace fsx { ipAddresses?: pulumi.Input[]>; } + export interface OntapVolumeSnaplockConfiguration { + /** + * Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + */ + auditLogVolume?: pulumi.Input; + /** + * The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + */ + autocommitPeriod?: pulumi.Input; + /** + * Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + */ + privilegedDelete?: pulumi.Input; + /** + * The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + */ + retentionPeriod?: pulumi.Input; + /** + * Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + */ + snaplockType: pulumi.Input; + /** + * Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + */ + volumeAppendModeEnabled?: pulumi.Input; + } + + export interface OntapVolumeSnaplockConfigurationAutocommitPeriod { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type?: pulumi.Input; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: pulumi.Input; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriod { + /** + * The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + */ + defaultRetention?: pulumi.Input; + /** + * The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + */ + maximumRetention?: pulumi.Input; + /** + * The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + */ + minimumRetention?: pulumi.Input; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type?: pulumi.Input; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: pulumi.Input; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type?: pulumi.Input; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: pulumi.Input; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type?: pulumi.Input; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: pulumi.Input; + } + export interface OntapVolumeTieringPolicy { /** * Specifies the number of days that user data in a volume must remain inactive before it is considered "cold" and moved to the capacity pool. Used with `AUTO` and `SNAPSHOT_ONLY` tiering policies only. Valid values are whole numbers between 2 and 183. Default values are 31 days for `AUTO` and 2 days for `SNAPSHOT_ONLY`. @@ -34410,6 +34544,42 @@ export namespace lex { */ value: pulumi.Input; } + + export interface V2modelsBotDataPrivacy { + /** + * (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + */ + childDirected: pulumi.Input; + } + + export interface V2modelsBotMember { + /** + * (Required) - Alias ID of a bot that is a member of this network of bots. + */ + aliasId: pulumi.Input; + /** + * (Required) - Alias name of a bot that is a member of this network of bots. + */ + aliasName: pulumi.Input; + /** + * (Required) - Unique ID of a bot that is a member of this network of bots. + */ + id: pulumi.Input; + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + */ + name: pulumi.Input; + /** + * (Required) - Version of a bot that is a member of this network of bots. + */ + version: pulumi.Input; + } + + export interface V2modelsBotTimeouts { + create?: pulumi.Input; + delete?: pulumi.Input; + update?: pulumi.Input; + } } export namespace licensemanager { @@ -40179,6 +40349,24 @@ export namespace opensearch { userAttribute?: pulumi.Input; } + export interface OutboundConnectionConnectionProperties { + /** + * Configuration block for cross cluster search. + */ + crossClusterSearch?: pulumi.Input; + /** + * The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. + */ + endpoint?: pulumi.Input; + } + + export interface OutboundConnectionConnectionPropertiesCrossClusterSearch { + /** + * Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + */ + skipUnavailable?: pulumi.Input; + } + export interface OutboundConnectionLocalDomainInfo { /** * The name of the local domain. @@ -51881,13 +52069,11 @@ export namespace sesv2 { export namespace sfn { export interface AliasRoutingConfiguration { /** - * A version of the state machine. + * The Amazon Resource Name (ARN) of the state machine version. */ stateMachineVersionArn: pulumi.Input; /** * Percentage of traffic routed to the state machine version. - * - * The following arguments are optional: */ weight: pulumi.Input; } @@ -53677,7 +53863,7 @@ export namespace vpclattice { */ id: pulumi.Input; /** - * The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. */ port?: pulumi.Input; } @@ -54977,9 +55163,13 @@ export namespace wafv2 { export interface RuleGroupRuleStatementRateBasedStatement { /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. */ aggregateKeyType?: pulumi.Input; + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + */ + customKeys?: pulumi.Input[]>; /** * The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. */ @@ -54994,6 +55184,223 @@ export namespace wafv2 { scopeDownStatement?: pulumi.Input; } + export interface RuleGroupRuleStatementRateBasedStatementCustomKey { + /** + * (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + */ + cookie?: pulumi.Input; + /** + * (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + */ + forwardedIp?: pulumi.Input; + /** + * (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + */ + header?: pulumi.Input; + /** + * (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + */ + httpMethod?: pulumi.Input; + /** + * (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + */ + ip?: pulumi.Input; + /** + * (Optional) Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + */ + labelNamespace?: pulumi.Input; + /** + * (Optional) Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + */ + queryArgument?: pulumi.Input; + /** + * Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + */ + queryString?: pulumi.Input; + /** + * Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + */ + uriPath?: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { + /** + * A friendly name of the rule group. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { + /** + * A friendly name of the rule group. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyIp { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * The namespace to use for aggregation + */ + namespace: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * A friendly name of the rule group. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + export interface RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { /** * The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. @@ -58193,7 +58600,7 @@ export namespace wafv2 { */ failureValues: pulumi.Input[]>; /** - * The name of the header to match against. The name must be an exact match, including case. + * The name of the header to use. */ name: pulumi.Input; /** @@ -59715,9 +60122,13 @@ export namespace wafv2 { export interface WebAclRuleStatementRateBasedStatement { /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. */ aggregateKeyType?: pulumi.Input; + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + */ + customKeys?: pulumi.Input[]>; /** * Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. */ @@ -59732,6 +60143,163 @@ export namespace wafv2 { scopeDownStatement?: pulumi.Input; } + export interface WebAclRuleStatementRateBasedStatementCustomKey { + /** + * Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + */ + cookie?: pulumi.Input; + /** + * Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + */ + forwardedIp?: pulumi.Input; + /** + * Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + */ + header?: pulumi.Input; + /** + * Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + */ + httpMethod?: pulumi.Input; + /** + * Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + */ + ip?: pulumi.Input; + /** + * Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + */ + labelNamespace?: pulumi.Input; + /** + * Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + */ + queryArgument?: pulumi.Input; + /** + * Use the request's query string as an aggregate key. See RateLimit `queryString` below for details. + */ + queryString?: pulumi.Input; + /** + * Use the request's URI path as an aggregate key. See RateLimit `uriPath` below for details. + */ + uriPath?: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyCookie { + /** + * The name of the cookie to use. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHeader { + /** + * The name of the header to use. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyIp { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * The namespace to use for aggregation + */ + namespace: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * The name of the query argument to use. + */ + name: pulumi.Input; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: pulumi.Input[]>; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: pulumi.Input; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: pulumi.Input; + } + export interface WebAclRuleStatementRateBasedStatementForwardedIpConfig { /** * Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index d39c4185105..84fff84e8e8 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -11025,6 +11025,11 @@ export namespace cleanrooms { status: string; } + export interface ConfiguredTableTableReference { + databaseName: string; + tableName: string; + } + } export namespace cloudformation { @@ -11616,11 +11621,11 @@ export namespace cloudfront { */ originPath?: string; /** - * The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + * CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. */ originShield?: outputs.cloudfront.DistributionOriginOriginShield; /** - * The CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. + * CloudFront S3 origin configuration information. If a custom origin is required, use `customOriginConfig` instead. */ s3OriginConfig?: outputs.cloudfront.DistributionOriginS3OriginConfig; } @@ -11692,9 +11697,9 @@ export namespace cloudfront { */ enabled: boolean; /** - * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + * AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. */ - originShieldRegion: string; + originShieldRegion?: string; } export interface DistributionOriginS3OriginConfig { @@ -19170,6 +19175,50 @@ export namespace dms { useTaskStartTimeForFullLoadTimestamp: boolean; } + export interface ReplicationConfigComputeConfig { + /** + * The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + */ + availabilityZone: string; + /** + * A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + */ + dnsNameServers?: string; + /** + * An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + */ + kmsKeyId: string; + /** + * Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + */ + maxCapacityUnits?: number; + /** + * Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + */ + minCapacityUnits?: number; + /** + * Specifies if the replication instance is a multi-az deployment. You cannot set the `availabilityZone` parameter if the `multiAz` parameter is set to `true`. + */ + multiAz: boolean; + /** + * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + * + * - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + * - Format: `ddd:hh24:mi-ddd:hh24:mi` + * - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + * - Constraints: Minimum 30-minute window. + */ + preferredMaintenanceWindow: string; + /** + * Specifies a subnet group identifier to associate with the DMS Serverless replication. + */ + replicationSubnetGroupId: string; + /** + * Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + */ + vpcSecurityGroupIds: string[]; + } + } export namespace docdb { @@ -30208,6 +30257,92 @@ export namespace fsx { ipAddresses: string[]; } + export interface OntapVolumeSnaplockConfiguration { + /** + * Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + */ + auditLogVolume?: boolean; + /** + * The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + */ + autocommitPeriod: outputs.fsx.OntapVolumeSnaplockConfigurationAutocommitPeriod; + /** + * Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + */ + privilegedDelete?: string; + /** + * The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + */ + retentionPeriod: outputs.fsx.OntapVolumeSnaplockConfigurationRetentionPeriod; + /** + * Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + */ + snaplockType: string; + /** + * Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + */ + volumeAppendModeEnabled?: boolean; + } + + export interface OntapVolumeSnaplockConfigurationAutocommitPeriod { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type: string; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: number; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriod { + /** + * The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + */ + defaultRetention: outputs.fsx.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention; + /** + * The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + */ + maximumRetention: outputs.fsx.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention; + /** + * The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + */ + minimumRetention: outputs.fsx.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type: string; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: number; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type: string; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: number; + } + + export interface OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention { + /** + * The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + */ + type: string; + /** + * The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + */ + value?: number; + } + export interface OntapVolumeTieringPolicy { /** * Specifies the number of days that user data in a volume must remain inactive before it is considered "cold" and moved to the capacity pool. Used with `AUTO` and `SNAPSHOT_ONLY` tiering policies only. Valid values are whole numbers between 2 and 183. Default values are 31 days for `AUTO` and 2 days for `SNAPSHOT_ONLY`. @@ -39739,6 +39874,42 @@ export namespace lex { value: string; } + export interface V2modelsBotDataPrivacy { + /** + * (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + */ + childDirected: boolean; + } + + export interface V2modelsBotMember { + /** + * (Required) - Alias ID of a bot that is a member of this network of bots. + */ + aliasId: string; + /** + * (Required) - Alias name of a bot that is a member of this network of bots. + */ + aliasName: string; + /** + * (Required) - Unique ID of a bot that is a member of this network of bots. + */ + id: string; + /** + * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + */ + name: string; + /** + * (Required) - Version of a bot that is a member of this network of bots. + */ + version: string; + } + + export interface V2modelsBotTimeouts { + create?: string; + delete?: string; + update?: string; + } + } export namespace licensemanager { @@ -46037,6 +46208,24 @@ export namespace opensearch { userAttribute: string; } + export interface OutboundConnectionConnectionProperties { + /** + * Configuration block for cross cluster search. + */ + crossClusterSearch?: outputs.opensearch.OutboundConnectionConnectionPropertiesCrossClusterSearch; + /** + * The endpoint of the remote domain, is only set when `connectionMode` is `VPC_ENDPOINT` and `acceptConnection` is `TRUE`. + */ + endpoint: string; + } + + export interface OutboundConnectionConnectionPropertiesCrossClusterSearch { + /** + * Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + */ + skipUnavailable?: string; + } + export interface OutboundConnectionLocalDomainInfo { /** * The name of the local domain. @@ -58519,13 +58708,11 @@ export namespace sesv2 { export namespace sfn { export interface AliasRoutingConfiguration { /** - * A version of the state machine. + * The Amazon Resource Name (ARN) of the state machine version. */ stateMachineVersionArn: string; /** * Percentage of traffic routed to the state machine version. - * - * The following arguments are optional: */ weight: number; } @@ -60555,7 +60742,7 @@ export namespace vpclattice { */ id: string; /** - * The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + * This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. */ port: number; } @@ -61865,9 +62052,13 @@ export namespace wafv2 { export interface RuleGroupRuleStatementRateBasedStatement { /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. */ aggregateKeyType?: string; + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + */ + customKeys?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKey[]; /** * The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. */ @@ -61882,6 +62073,223 @@ export namespace wafv2 { scopeDownStatement?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementScopeDownStatement; } + export interface RuleGroupRuleStatementRateBasedStatementCustomKey { + /** + * (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + */ + cookie?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie; + /** + * (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + */ + forwardedIp?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp; + /** + * (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + */ + header?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader; + /** + * (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + */ + httpMethod?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod; + /** + * (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + */ + ip?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyIp; + /** + * (Optional) Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + */ + labelNamespace?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace; + /** + * (Optional) Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + */ + queryArgument?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument; + /** + * Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + */ + queryString?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString; + /** + * Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + */ + uriPath?: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyCookie { + /** + * A friendly name of the rule group. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation[]; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHeader { + /** + * A friendly name of the rule group. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation[]; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyIp { + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * The namespace to use for aggregation + */ + namespace: string; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * A friendly name of the rule group. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation[]; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation[]; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + * At least one required. + * See Text Transformation below for details. + */ + textTransformations: outputs.wafv2.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation[]; + } + + export interface RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + export interface RuleGroupRuleStatementRateBasedStatementForwardedIpConfig { /** * The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. @@ -65081,7 +65489,7 @@ export namespace wafv2 { */ failureValues: string[]; /** - * The name of the header to match against. The name must be an exact match, including case. + * The name of the header to use. */ name: string; /** @@ -66603,9 +67011,13 @@ export namespace wafv2 { export interface WebAclRuleStatementRateBasedStatement { /** - * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + * Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. */ aggregateKeyType?: string; + /** + * Aggregate the request counts using one or more web request components as the aggregate keys. See `customKey` below for details. + */ + customKeys?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKey[]; /** * Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregateKeyType` is set to `FORWARDED_IP`, this block is required. See `forwardedIpConfig` below for details. */ @@ -66620,6 +67032,163 @@ export namespace wafv2 { scopeDownStatement?: outputs.wafv2.WebAclRuleStatementRateBasedStatementScopeDownStatement; } + export interface WebAclRuleStatementRateBasedStatementCustomKey { + /** + * Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + */ + cookie?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyCookie; + /** + * Use the first IP address in an HTTP header as an aggregate key. See `forwardedIp` below for details. + */ + forwardedIp?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp; + /** + * Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + */ + header?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyHeader; + /** + * Use the request's HTTP method as an aggregate key. See RateLimit `httpMethod` below for details. + */ + httpMethod?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod; + /** + * Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + */ + ip?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyIp; + /** + * Use the specified label namespace as an aggregate key. See RateLimit `labelNamespace` below for details. + */ + labelNamespace?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace; + /** + * Use the specified query argument as an aggregate key. See RateLimit `queryArgument` below for details. + */ + queryArgument?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument; + /** + * Use the request's query string as an aggregate key. See RateLimit `queryString` below for details. + */ + queryString?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyQueryString; + /** + * Use the request's URI path as an aggregate key. See RateLimit `uriPath` below for details. + */ + uriPath?: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyUriPath; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyCookie { + /** + * The name of the cookie to use. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation[]; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHeader { + /** + * The name of the header to use. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation[]; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyIp { + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace { + /** + * The namespace to use for aggregation + */ + namespace: string; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument { + /** + * The name of the query argument to use. + */ + name: string; + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation[]; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryString { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation[]; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyUriPath { + /** + * Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `textTransformation` above for details. + */ + textTransformations: outputs.wafv2.WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation[]; + } + + export interface WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation { + /** + * Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + */ + priority: number; + /** + * Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + */ + type: string; + } + export interface WebAclRuleStatementRateBasedStatementForwardedIpConfig { /** * Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. diff --git a/sdk/nodejs/vpclattice/getService.ts b/sdk/nodejs/vpclattice/getService.ts index 3e8338d3415..fc015759987 100644 --- a/sdk/nodejs/vpclattice/getService.ts +++ b/sdk/nodejs/vpclattice/getService.ts @@ -42,7 +42,7 @@ export interface GetServiceArgs { */ name?: string; /** - * ID or Amazon Resource Name (ARN) of the service network. + * ID or Amazon Resource Name (ARN) of the service. */ serviceIdentifier?: string; /** @@ -118,7 +118,7 @@ export interface GetServiceOutputArgs { */ name?: pulumi.Input; /** - * ID or Amazon Resource Name (ARN) of the service network. + * ID or Amazon Resource Name (ARN) of the service. */ serviceIdentifier?: pulumi.Input; /** diff --git a/sdk/nodejs/vpclattice/getServiceNetwork.ts b/sdk/nodejs/vpclattice/getServiceNetwork.ts index d1f56f378a6..8f7cca5fb09 100644 --- a/sdk/nodejs/vpclattice/getServiceNetwork.ts +++ b/sdk/nodejs/vpclattice/getServiceNetwork.ts @@ -15,7 +15,7 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = aws.vpclattice.getServiceNetwork({ - * serviceNetworkIdentifier: "", + * serviceNetworkIdentifier: "snsa-01112223334445556", * }); * ``` */ @@ -33,7 +33,7 @@ export function getServiceNetwork(args: GetServiceNetworkArgs, opts?: pulumi.Inv */ export interface GetServiceNetworkArgs { /** - * Identifier of the network service. + * Identifier of the service network. */ serviceNetworkIdentifier: string; tags?: {[key: string]: string}; @@ -89,7 +89,7 @@ export interface GetServiceNetworkResult { * import * as aws from "@pulumi/aws"; * * const example = aws.vpclattice.getServiceNetwork({ - * serviceNetworkIdentifier: "", + * serviceNetworkIdentifier: "snsa-01112223334445556", * }); * ``` */ @@ -102,7 +102,7 @@ export function getServiceNetworkOutput(args: GetServiceNetworkOutputArgs, opts? */ export interface GetServiceNetworkOutputArgs { /** - * Identifier of the network service. + * Identifier of the service network. */ serviceNetworkIdentifier: pulumi.Input; tags?: pulumi.Input<{[key: string]: pulumi.Input}>; diff --git a/sdk/nodejs/vpclattice/listenerRule.ts b/sdk/nodejs/vpclattice/listenerRule.ts index 4a7f840baf9..5b2fdd9d7eb 100644 --- a/sdk/nodejs/vpclattice/listenerRule.ts +++ b/sdk/nodejs/vpclattice/listenerRule.ts @@ -118,11 +118,11 @@ export class ListenerRule extends pulumi.CustomResource { } /** - * The action for the default rule. + * The action for the listener rule. */ public readonly action!: pulumi.Output; /** - * ARN of the target group. + * The ARN for the listener rule. */ public /*out*/ readonly arn!: pulumi.Output; /** @@ -144,7 +144,7 @@ export class ListenerRule extends pulumi.CustomResource { */ public readonly priority!: pulumi.Output; /** - * Unique identifier for the target group. + * Unique identifier for the listener rule. */ public /*out*/ readonly ruleId!: pulumi.Output; /** @@ -225,11 +225,11 @@ export class ListenerRule extends pulumi.CustomResource { */ export interface ListenerRuleState { /** - * The action for the default rule. + * The action for the listener rule. */ action?: pulumi.Input; /** - * ARN of the target group. + * The ARN for the listener rule. */ arn?: pulumi.Input; /** @@ -251,7 +251,7 @@ export interface ListenerRuleState { */ priority?: pulumi.Input; /** - * Unique identifier for the target group. + * Unique identifier for the listener rule. */ ruleId?: pulumi.Input; /** @@ -275,7 +275,7 @@ export interface ListenerRuleState { */ export interface ListenerRuleArgs { /** - * The action for the default rule. + * The action for the listener rule. */ action: pulumi.Input; /** diff --git a/sdk/nodejs/vpclattice/targetGroup.ts b/sdk/nodejs/vpclattice/targetGroup.ts index f80b9cb8800..29adcea99f6 100644 --- a/sdk/nodejs/vpclattice/targetGroup.ts +++ b/sdk/nodejs/vpclattice/targetGroup.ts @@ -20,9 +20,9 @@ import * as utilities from "../utilities"; * const example = new aws.vpclattice.TargetGroup("example", { * type: "INSTANCE", * config: { + * vpcIdentifier: aws_vpc.example.id, * port: 443, * protocol: "HTTPS", - * vpcIdentifier: aws_vpc.example.id, * }, * }); * ``` @@ -33,11 +33,12 @@ import * as utilities from "../utilities"; * import * as aws from "@pulumi/aws"; * * const example = new aws.vpclattice.TargetGroup("example", { - * type: "ALB", + * type: "IP", * config: { + * vpcIdentifier: aws_vpc.example.id, + * ipAddressType: "IPV4", * port: 443, * protocol: "HTTPS", - * vpcIdentifier: aws_vpc.example.id, * protocolVersion: "HTTP1", * healthCheck: { * enabled: true, @@ -56,6 +57,24 @@ import * as utilities from "../utilities"; * }, * }); * ``` + * ### ALB + * + * If the type is ALB, `healthCheck` block is not supported. + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as aws from "@pulumi/aws"; + * + * const example = new aws.vpclattice.TargetGroup("example", { + * type: "ALB", + * config: { + * vpcIdentifier: aws_vpc.example.id, + * port: 443, + * protocol: "HTTPS", + * protocolVersion: "HTTP1", + * }, + * }); + * ``` * ### Lambda * * If the type is Lambda, `config` block is not supported. diff --git a/sdk/python/pulumi_aws/__init__.py b/sdk/python/pulumi_aws/__init__.py index 586a0bf1de2..102d67360df 100644 --- a/sdk/python/pulumi_aws/__init__.py +++ b/sdk/python/pulumi_aws/__init__.py @@ -1953,6 +1953,14 @@ "aws:cleanrooms/collaboration:Collaboration": "Collaboration" } }, + { + "pkg": "aws", + "mod": "cleanrooms/configuredTable", + "fqn": "pulumi_aws.cleanrooms", + "classes": { + "aws:cleanrooms/configuredTable:ConfiguredTable": "ConfiguredTable" + } + }, { "pkg": "aws", "mod": "cloud9/environmentEC2", @@ -3345,6 +3353,14 @@ "aws:dms/eventSubscription:EventSubscription": "EventSubscription" } }, + { + "pkg": "aws", + "mod": "dms/replicationConfig", + "fqn": "pulumi_aws.dms", + "classes": { + "aws:dms/replicationConfig:ReplicationConfig": "ReplicationConfig" + } + }, { "pkg": "aws", "mod": "dms/replicationInstance", @@ -6457,6 +6473,14 @@ "aws:lex/slotType:SlotType": "SlotType" } }, + { + "pkg": "aws", + "mod": "lex/v2modelsBot", + "fqn": "pulumi_aws.lex", + "classes": { + "aws:lex/v2modelsBot:V2modelsBot": "V2modelsBot" + } + }, { "pkg": "aws", "mod": "licensemanager/association", @@ -7937,6 +7961,14 @@ "aws:rds/clusterSnapshot:ClusterSnapshot": "ClusterSnapshot" } }, + { + "pkg": "aws", + "mod": "rds/customDbEngineVersion", + "fqn": "pulumi_aws.rds", + "classes": { + "aws:rds/customDbEngineVersion:CustomDbEngineVersion": "CustomDbEngineVersion" + } + }, { "pkg": "aws", "mod": "rds/eventSubscription", diff --git a/sdk/python/pulumi_aws/batch/job_queue.py b/sdk/python/pulumi_aws/batch/job_queue.py index 9f005a265bd..ed5c5e6a3ca 100644 --- a/sdk/python/pulumi_aws/batch/job_queue.py +++ b/sdk/python/pulumi_aws/batch/job_queue.py @@ -25,9 +25,8 @@ def __init__(__self__, *, timeouts: Optional[pulumi.Input['JobQueueTimeoutsArgs']] = None): """ The set of arguments for constructing a JobQueue resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. :param pulumi.Input[int] priority: The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment. :param pulumi.Input[str] state: The state of the job queue. Must be one of: `ENABLED` or `DISABLED` @@ -51,9 +50,8 @@ def __init__(__self__, *, @pulumi.getter(name="computeEnvironments") def compute_environments(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. """ return pulumi.get(self, "compute_environments") @@ -147,9 +145,8 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering JobQueue resources. :param pulumi.Input[str] arn: The Amazon Resource Name of the job queue. - :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. :param pulumi.Input[str] name: Specifies the name of the job queue. :param pulumi.Input[int] priority: The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment. @@ -196,9 +193,8 @@ def arn(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="computeEnvironments") def compute_environments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. """ return pulumi.get(self, "compute_environments") @@ -357,9 +353,8 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. :param pulumi.Input[str] name: Specifies the name of the job queue. :param pulumi.Input[int] priority: The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment. @@ -498,9 +493,8 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arn: The Amazon Resource Name of the job queue. - :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + :param pulumi.Input[Sequence[pulumi.Input[str]]] compute_environments: List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. :param pulumi.Input[str] name: Specifies the name of the job queue. :param pulumi.Input[int] priority: The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment. @@ -536,9 +530,8 @@ def arn(self) -> pulumi.Output[str]: @pulumi.getter(name="computeEnvironments") def compute_environments(self) -> pulumi.Output[Sequence[str]]: """ - Specifies the set of compute environments - mapped to a job queue and their order. The position of the compute environments - in the list will dictate the order. + List of compute environment ARNs mapped to a job queue. + The position of the compute environments in the list will dictate the order. """ return pulumi.get(self, "compute_environments") diff --git a/sdk/python/pulumi_aws/cleanrooms/__init__.py b/sdk/python/pulumi_aws/cleanrooms/__init__.py index 2a34380b3b3..419b8904eb3 100644 --- a/sdk/python/pulumi_aws/cleanrooms/__init__.py +++ b/sdk/python/pulumi_aws/cleanrooms/__init__.py @@ -6,5 +6,6 @@ import typing # Export this package's modules as members: from .collaboration import * +from .configured_table import * from ._inputs import * from . import outputs diff --git a/sdk/python/pulumi_aws/cleanrooms/_inputs.py b/sdk/python/pulumi_aws/cleanrooms/_inputs.py index 823b19b6b1f..3394fec5c92 100644 --- a/sdk/python/pulumi_aws/cleanrooms/_inputs.py +++ b/sdk/python/pulumi_aws/cleanrooms/_inputs.py @@ -12,6 +12,7 @@ __all__ = [ 'CollaborationDataEncryptionMetadataArgs', 'CollaborationMemberArgs', + 'ConfiguredTableTableReferenceArgs', ] @pulumi.input_type @@ -113,3 +114,30 @@ def status(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "status", value) +@pulumi.input_type +class ConfiguredTableTableReferenceArgs: + def __init__(__self__, *, + database_name: pulumi.Input[str], + table_name: pulumi.Input[str]): + pulumi.set(__self__, "database_name", database_name) + pulumi.set(__self__, "table_name", table_name) + + @property + @pulumi.getter(name="databaseName") + def database_name(self) -> pulumi.Input[str]: + return pulumi.get(self, "database_name") + + @database_name.setter + def database_name(self, value: pulumi.Input[str]): + pulumi.set(self, "database_name", value) + + @property + @pulumi.getter(name="tableName") + def table_name(self) -> pulumi.Input[str]: + return pulumi.get(self, "table_name") + + @table_name.setter + def table_name(self, value: pulumi.Input[str]): + pulumi.set(self, "table_name", value) + + diff --git a/sdk/python/pulumi_aws/cleanrooms/configured_table.py b/sdk/python/pulumi_aws/cleanrooms/configured_table.py new file mode 100644 index 00000000000..21cd9356648 --- /dev/null +++ b/sdk/python/pulumi_aws/cleanrooms/configured_table.py @@ -0,0 +1,578 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['ConfiguredTableArgs', 'ConfiguredTable'] + +@pulumi.input_type +class ConfiguredTableArgs: + def __init__(__self__, *, + allowed_columns: pulumi.Input[Sequence[pulumi.Input[str]]], + analysis_method: pulumi.Input[str], + table_reference: pulumi.Input['ConfiguredTableTableReferenceArgs'], + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + The set of arguments for constructing a ConfiguredTable resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_columns: The columns of the references table which will be included in the configured table. + :param pulumi.Input[str] analysis_method: The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + :param pulumi.Input['ConfiguredTableTableReferenceArgs'] table_reference: A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + :param pulumi.Input[str] description: A description for the configured table. + :param pulumi.Input[str] name: The name of the configured table. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key value pairs which tag the configured table. + """ + pulumi.set(__self__, "allowed_columns", allowed_columns) + pulumi.set(__self__, "analysis_method", analysis_method) + pulumi.set(__self__, "table_reference", table_reference) + if description is not None: + pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="allowedColumns") + def allowed_columns(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + """ + The columns of the references table which will be included in the configured table. + """ + return pulumi.get(self, "allowed_columns") + + @allowed_columns.setter + def allowed_columns(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "allowed_columns", value) + + @property + @pulumi.getter(name="analysisMethod") + def analysis_method(self) -> pulumi.Input[str]: + """ + The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + """ + return pulumi.get(self, "analysis_method") + + @analysis_method.setter + def analysis_method(self, value: pulumi.Input[str]): + pulumi.set(self, "analysis_method", value) + + @property + @pulumi.getter(name="tableReference") + def table_reference(self) -> pulumi.Input['ConfiguredTableTableReferenceArgs']: + """ + A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + """ + return pulumi.get(self, "table_reference") + + @table_reference.setter + def table_reference(self, value: pulumi.Input['ConfiguredTableTableReferenceArgs']): + pulumi.set(self, "table_reference", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + A description for the configured table. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the configured table. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Key value pairs which tag the configured table. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +@pulumi.input_type +class _ConfiguredTableState: + def __init__(__self__, *, + allowed_columns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + analysis_method: Optional[pulumi.Input[str]] = None, + arn: Optional[pulumi.Input[str]] = None, + create_time: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + table_reference: Optional[pulumi.Input['ConfiguredTableTableReferenceArgs']] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + update_time: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering ConfiguredTable resources. + :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_columns: The columns of the references table which will be included in the configured table. + :param pulumi.Input[str] analysis_method: The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + :param pulumi.Input[str] arn: The ARN of the configured table. + :param pulumi.Input[str] create_time: The date and time the configured table was created. + :param pulumi.Input[str] description: A description for the configured table. + :param pulumi.Input[str] name: The name of the configured table. + :param pulumi.Input['ConfiguredTableTableReferenceArgs'] table_reference: A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key value pairs which tag the configured table. + :param pulumi.Input[str] update_time: The date and time the configured table was last updated. + """ + if allowed_columns is not None: + pulumi.set(__self__, "allowed_columns", allowed_columns) + if analysis_method is not None: + pulumi.set(__self__, "analysis_method", analysis_method) + if arn is not None: + pulumi.set(__self__, "arn", arn) + if create_time is not None: + pulumi.set(__self__, "create_time", create_time) + if description is not None: + pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) + if table_reference is not None: + pulumi.set(__self__, "table_reference", table_reference) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tags_all is not None: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + if tags_all is not None: + pulumi.set(__self__, "tags_all", tags_all) + if update_time is not None: + pulumi.set(__self__, "update_time", update_time) + + @property + @pulumi.getter(name="allowedColumns") + def allowed_columns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + The columns of the references table which will be included in the configured table. + """ + return pulumi.get(self, "allowed_columns") + + @allowed_columns.setter + def allowed_columns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "allowed_columns", value) + + @property + @pulumi.getter(name="analysisMethod") + def analysis_method(self) -> Optional[pulumi.Input[str]]: + """ + The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + """ + return pulumi.get(self, "analysis_method") + + @analysis_method.setter + def analysis_method(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "analysis_method", value) + + @property + @pulumi.getter + def arn(self) -> Optional[pulumi.Input[str]]: + """ + The ARN of the configured table. + """ + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "arn", value) + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> Optional[pulumi.Input[str]]: + """ + The date and time the configured table was created. + """ + return pulumi.get(self, "create_time") + + @create_time.setter + def create_time(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "create_time", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + A description for the configured table. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the configured table. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="tableReference") + def table_reference(self) -> Optional[pulumi.Input['ConfiguredTableTableReferenceArgs']]: + """ + A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + """ + return pulumi.get(self, "table_reference") + + @table_reference.setter + def table_reference(self, value: Optional[pulumi.Input['ConfiguredTableTableReferenceArgs']]): + pulumi.set(self, "table_reference", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Key value pairs which tag the configured table. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @tags_all.setter + def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags_all", value) + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> Optional[pulumi.Input[str]]: + """ + The date and time the configured table was last updated. + """ + return pulumi.get(self, "update_time") + + @update_time.setter + def update_time(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "update_time", value) + + +class ConfiguredTable(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + allowed_columns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + analysis_method: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + table_reference: Optional[pulumi.Input[pulumi.InputType['ConfiguredTableTableReferenceArgs']]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + """ + Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. + + ## Example Usage + ### Configured table with tags + + ```python + import pulumi + import pulumi_aws as aws + + test_configured_table = aws.cleanrooms.ConfiguredTable("testConfiguredTable", + allowed_columns=[ + "column1", + "column2", + "column3", + ], + analysis_method="DIRECT_QUERY", + description="I made this table with TODO!", + table_reference=aws.cleanrooms.ConfiguredTableTableReferenceArgs( + database_name="example_database", + table_name="example_table", + ), + tags={ + "Project": "TODO", + }) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { + + to = aws_cleanrooms_configured_table.table + + id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_columns: The columns of the references table which will be included in the configured table. + :param pulumi.Input[str] analysis_method: The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + :param pulumi.Input[str] description: A description for the configured table. + :param pulumi.Input[str] name: The name of the configured table. + :param pulumi.Input[pulumi.InputType['ConfiguredTableTableReferenceArgs']] table_reference: A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key value pairs which tag the configured table. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ConfiguredTableArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Provides a AWS Clean Rooms configured table. Configured tables are used to represent references to existing tables in the AWS Glue Data Catalog. + + ## Example Usage + ### Configured table with tags + + ```python + import pulumi + import pulumi_aws as aws + + test_configured_table = aws.cleanrooms.ConfiguredTable("testConfiguredTable", + allowed_columns=[ + "column1", + "column2", + "column3", + ], + analysis_method="DIRECT_QUERY", + description="I made this table with TODO!", + table_reference=aws.cleanrooms.ConfiguredTableTableReferenceArgs( + database_name="example_database", + table_name="example_table", + ), + tags={ + "Project": "TODO", + }) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For exampleterraform import { + + to = aws_cleanrooms_configured_table.table + + id = "1234abcd-12ab-34cd-56ef-1234567890ab" } Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For exampleconsole % TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab + + :param str resource_name: The name of the resource. + :param ConfiguredTableArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ConfiguredTableArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + allowed_columns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + analysis_method: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + table_reference: Optional[pulumi.Input[pulumi.InputType['ConfiguredTableTableReferenceArgs']]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ConfiguredTableArgs.__new__(ConfiguredTableArgs) + + if allowed_columns is None and not opts.urn: + raise TypeError("Missing required property 'allowed_columns'") + __props__.__dict__["allowed_columns"] = allowed_columns + if analysis_method is None and not opts.urn: + raise TypeError("Missing required property 'analysis_method'") + __props__.__dict__["analysis_method"] = analysis_method + __props__.__dict__["description"] = description + __props__.__dict__["name"] = name + if table_reference is None and not opts.urn: + raise TypeError("Missing required property 'table_reference'") + __props__.__dict__["table_reference"] = table_reference + __props__.__dict__["tags"] = tags + __props__.__dict__["arn"] = None + __props__.__dict__["create_time"] = None + __props__.__dict__["tags_all"] = None + __props__.__dict__["update_time"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["tagsAll"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(ConfiguredTable, __self__).__init__( + 'aws:cleanrooms/configuredTable:ConfiguredTable', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + allowed_columns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + analysis_method: Optional[pulumi.Input[str]] = None, + arn: Optional[pulumi.Input[str]] = None, + create_time: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + table_reference: Optional[pulumi.Input[pulumi.InputType['ConfiguredTableTableReferenceArgs']]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + update_time: Optional[pulumi.Input[str]] = None) -> 'ConfiguredTable': + """ + Get an existing ConfiguredTable resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_columns: The columns of the references table which will be included in the configured table. + :param pulumi.Input[str] analysis_method: The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + :param pulumi.Input[str] arn: The ARN of the configured table. + :param pulumi.Input[str] create_time: The date and time the configured table was created. + :param pulumi.Input[str] description: A description for the configured table. + :param pulumi.Input[str] name: The name of the configured table. + :param pulumi.Input[pulumi.InputType['ConfiguredTableTableReferenceArgs']] table_reference: A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key value pairs which tag the configured table. + :param pulumi.Input[str] update_time: The date and time the configured table was last updated. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ConfiguredTableState.__new__(_ConfiguredTableState) + + __props__.__dict__["allowed_columns"] = allowed_columns + __props__.__dict__["analysis_method"] = analysis_method + __props__.__dict__["arn"] = arn + __props__.__dict__["create_time"] = create_time + __props__.__dict__["description"] = description + __props__.__dict__["name"] = name + __props__.__dict__["table_reference"] = table_reference + __props__.__dict__["tags"] = tags + __props__.__dict__["tags_all"] = tags_all + __props__.__dict__["update_time"] = update_time + return ConfiguredTable(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="allowedColumns") + def allowed_columns(self) -> pulumi.Output[Sequence[str]]: + """ + The columns of the references table which will be included in the configured table. + """ + return pulumi.get(self, "allowed_columns") + + @property + @pulumi.getter(name="analysisMethod") + def analysis_method(self) -> pulumi.Output[str]: + """ + The analysis method for the configured table. The only valid value is currently `DIRECT_QUERY`. + """ + return pulumi.get(self, "analysis_method") + + @property + @pulumi.getter + def arn(self) -> pulumi.Output[str]: + """ + The ARN of the configured table. + """ + return pulumi.get(self, "arn") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> pulumi.Output[str]: + """ + The date and time the configured table was created. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + A description for the configured table. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the configured table. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="tableReference") + def table_reference(self) -> pulumi.Output['outputs.ConfiguredTableTableReference']: + """ + A reference to the AWS Glue table which will be used to create the configured table. + * `table_reference.database_name` - (Required - Forces new resource) - The name of the AWS Glue database which contains the table. + * `table_reference.table_name` - (Required - Forces new resource) - The name of the AWS Glue table which will be used to create the configured table. + """ + return pulumi.get(self, "table_reference") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + Key value pairs which tag the configured table. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> pulumi.Output[Mapping[str, str]]: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> pulumi.Output[str]: + """ + The date and time the configured table was last updated. + """ + return pulumi.get(self, "update_time") + diff --git a/sdk/python/pulumi_aws/cleanrooms/outputs.py b/sdk/python/pulumi_aws/cleanrooms/outputs.py index 25532236d71..f9722b7000c 100644 --- a/sdk/python/pulumi_aws/cleanrooms/outputs.py +++ b/sdk/python/pulumi_aws/cleanrooms/outputs.py @@ -12,6 +12,7 @@ __all__ = [ 'CollaborationDataEncryptionMetadata', 'CollaborationMember', + 'ConfiguredTableTableReference', ] @pulumi.output_type @@ -125,3 +126,41 @@ def status(self) -> Optional[str]: return pulumi.get(self, "status") +@pulumi.output_type +class ConfiguredTableTableReference(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "databaseName": + suggest = "database_name" + elif key == "tableName": + suggest = "table_name" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ConfiguredTableTableReference. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ConfiguredTableTableReference.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ConfiguredTableTableReference.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + database_name: str, + table_name: str): + pulumi.set(__self__, "database_name", database_name) + pulumi.set(__self__, "table_name", table_name) + + @property + @pulumi.getter(name="databaseName") + def database_name(self) -> str: + return pulumi.get(self, "database_name") + + @property + @pulumi.getter(name="tableName") + def table_name(self) -> str: + return pulumi.get(self, "table_name") + + diff --git a/sdk/python/pulumi_aws/cloud9/environment_ec2.py b/sdk/python/pulumi_aws/cloud9/environment_ec2.py index 6174f1505b9..c44b4d45876 100644 --- a/sdk/python/pulumi_aws/cloud9/environment_ec2.py +++ b/sdk/python/pulumi_aws/cloud9/environment_ec2.py @@ -33,9 +33,11 @@ def __init__(__self__, *, * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` :param pulumi.Input[str] name: The name of the environment. :param pulumi.Input[str] owner_arn: The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. :param pulumi.Input[str] subnet_id: The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance. @@ -115,9 +117,11 @@ def image_id(self) -> Optional[pulumi.Input[str]]: * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` """ return pulumi.get(self, "image_id") @@ -199,9 +203,11 @@ def __init__(__self__, *, * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` :param pulumi.Input[str] instance_type: The type of instance to connect to the environment, e.g., `t2.micro`. :param pulumi.Input[str] name: The name of the environment. :param pulumi.Input[str] owner_arn: The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. @@ -294,9 +300,11 @@ def image_id(self) -> Optional[pulumi.Input[str]]: * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` """ return pulumi.get(self, "image_id") @@ -461,9 +469,11 @@ def __init__(__self__, * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` :param pulumi.Input[str] instance_type: The type of instance to connect to the environment, e.g., `t2.micro`. :param pulumi.Input[str] name: The name of the environment. :param pulumi.Input[str] owner_arn: The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. @@ -607,9 +617,11 @@ def get(resource_name: str, * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` :param pulumi.Input[str] instance_type: The type of instance to connect to the environment, e.g., `t2.micro`. :param pulumi.Input[str] name: The name of the environment. :param pulumi.Input[str] owner_arn: The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator. @@ -676,9 +688,11 @@ def image_id(self) -> pulumi.Output[Optional[str]]: * `amazonlinux-1-x86_64` * `amazonlinux-2-x86_64` * `ubuntu-18.04-x86_64` + * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` + * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64` """ return pulumi.get(self, "image_id") diff --git a/sdk/python/pulumi_aws/cloudfront/_inputs.py b/sdk/python/pulumi_aws/cloudfront/_inputs.py index 2c119064247..27446a4e9d9 100644 --- a/sdk/python/pulumi_aws/cloudfront/_inputs.py +++ b/sdk/python/pulumi_aws/cloudfront/_inputs.py @@ -1710,8 +1710,8 @@ def __init__(__self__, *, :param pulumi.Input['DistributionOriginCustomOriginConfigArgs'] custom_origin_config: The CloudFront custom origin configuration information. If an S3 origin is required, use `origin_access_control_id` or `s3_origin_config` instead. :param pulumi.Input[str] origin_access_control_id: Unique identifier of a [CloudFront origin access control][8] for this origin. :param pulumi.Input[str] origin_path: Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. - :param pulumi.Input['DistributionOriginOriginShieldArgs'] origin_shield: The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. - :param pulumi.Input['DistributionOriginS3OriginConfigArgs'] s3_origin_config: The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + :param pulumi.Input['DistributionOriginOriginShieldArgs'] origin_shield: CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + :param pulumi.Input['DistributionOriginS3OriginConfigArgs'] s3_origin_config: CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. """ pulumi.set(__self__, "domain_name", domain_name) pulumi.set(__self__, "origin_id", origin_id) @@ -1832,7 +1832,7 @@ def origin_path(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="originShield") def origin_shield(self) -> Optional[pulumi.Input['DistributionOriginOriginShieldArgs']]: """ - The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. """ return pulumi.get(self, "origin_shield") @@ -1844,7 +1844,7 @@ def origin_shield(self, value: Optional[pulumi.Input['DistributionOriginOriginSh @pulumi.getter(name="s3OriginConfig") def s3_origin_config(self) -> Optional[pulumi.Input['DistributionOriginS3OriginConfigArgs']]: """ - The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. """ return pulumi.get(self, "s3_origin_config") @@ -2079,13 +2079,14 @@ def origin_id(self, value: pulumi.Input[str]): class DistributionOriginOriginShieldArgs: def __init__(__self__, *, enabled: pulumi.Input[bool], - origin_shield_region: pulumi.Input[str]): + origin_shield_region: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[bool] enabled: Whether the distribution is enabled to accept end user requests for content. - :param pulumi.Input[str] origin_shield_region: AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + :param pulumi.Input[str] origin_shield_region: AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. """ pulumi.set(__self__, "enabled", enabled) - pulumi.set(__self__, "origin_shield_region", origin_shield_region) + if origin_shield_region is not None: + pulumi.set(__self__, "origin_shield_region", origin_shield_region) @property @pulumi.getter @@ -2101,14 +2102,14 @@ def enabled(self, value: pulumi.Input[bool]): @property @pulumi.getter(name="originShieldRegion") - def origin_shield_region(self) -> pulumi.Input[str]: + def origin_shield_region(self) -> Optional[pulumi.Input[str]]: """ - AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. """ return pulumi.get(self, "origin_shield_region") @origin_shield_region.setter - def origin_shield_region(self, value: pulumi.Input[str]): + def origin_shield_region(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "origin_shield_region", value) diff --git a/sdk/python/pulumi_aws/cloudfront/distribution.py b/sdk/python/pulumi_aws/cloudfront/distribution.py index 34c0be956ef..cc2eb34d1fa 100644 --- a/sdk/python/pulumi_aws/cloudfront/distribution.py +++ b/sdk/python/pulumi_aws/cloudfront/distribution.py @@ -1664,7 +1664,7 @@ def comment(self) -> pulumi.Output[Optional[str]]: @property @pulumi.getter(name="continuousDeploymentPolicyId") - def continuous_deployment_policy_id(self) -> pulumi.Output[Optional[str]]: + def continuous_deployment_policy_id(self) -> pulumi.Output[str]: """ Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the `cloudfront.ContinuousDeploymentPolicy` resource for additional details. """ diff --git a/sdk/python/pulumi_aws/cloudfront/outputs.py b/sdk/python/pulumi_aws/cloudfront/outputs.py index e72572a3dd1..855d976634e 100644 --- a/sdk/python/pulumi_aws/cloudfront/outputs.py +++ b/sdk/python/pulumi_aws/cloudfront/outputs.py @@ -1835,8 +1835,8 @@ def __init__(__self__, *, :param 'DistributionOriginCustomOriginConfigArgs' custom_origin_config: The CloudFront custom origin configuration information. If an S3 origin is required, use `origin_access_control_id` or `s3_origin_config` instead. :param str origin_access_control_id: Unique identifier of a [CloudFront origin access control][8] for this origin. :param str origin_path: Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. - :param 'DistributionOriginOriginShieldArgs' origin_shield: The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. - :param 'DistributionOriginS3OriginConfigArgs' s3_origin_config: The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + :param 'DistributionOriginOriginShieldArgs' origin_shield: CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + :param 'DistributionOriginS3OriginConfigArgs' s3_origin_config: CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. """ pulumi.set(__self__, "domain_name", domain_name) pulumi.set(__self__, "origin_id", origin_id) @@ -1925,7 +1925,7 @@ def origin_path(self) -> Optional[str]: @pulumi.getter(name="originShield") def origin_shield(self) -> Optional['outputs.DistributionOriginOriginShield']: """ - The CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. + CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. """ return pulumi.get(self, "origin_shield") @@ -1933,7 +1933,7 @@ def origin_shield(self) -> Optional['outputs.DistributionOriginOriginShield']: @pulumi.getter(name="s3OriginConfig") def s3_origin_config(self) -> Optional['outputs.DistributionOriginS3OriginConfig']: """ - The CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. + CloudFront S3 origin configuration information. If a custom origin is required, use `custom_origin_config` instead. """ return pulumi.get(self, "s3_origin_config") @@ -2209,13 +2209,14 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, enabled: bool, - origin_shield_region: str): + origin_shield_region: Optional[str] = None): """ :param bool enabled: Whether the distribution is enabled to accept end user requests for content. - :param str origin_shield_region: AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + :param str origin_shield_region: AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. """ pulumi.set(__self__, "enabled", enabled) - pulumi.set(__self__, "origin_shield_region", origin_shield_region) + if origin_shield_region is not None: + pulumi.set(__self__, "origin_shield_region", origin_shield_region) @property @pulumi.getter @@ -2227,9 +2228,9 @@ def enabled(self) -> bool: @property @pulumi.getter(name="originShieldRegion") - def origin_shield_region(self) -> str: + def origin_shield_region(self) -> Optional[str]: """ - AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. + AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as `us-east-2`. """ return pulumi.get(self, "origin_shield_region") diff --git a/sdk/python/pulumi_aws/connect/get_instance_storage_config.py b/sdk/python/pulumi_aws/connect/get_instance_storage_config.py index 5209d41ccdf..59892015322 100644 --- a/sdk/python/pulumi_aws/connect/get_instance_storage_config.py +++ b/sdk/python/pulumi_aws/connect/get_instance_storage_config.py @@ -105,7 +105,7 @@ def get_instance_storage_config(association_id: Optional[str] = None, :param str association_id: The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID. :param str instance_id: Reference to the hosting Amazon Connect Instance - :param str resource_type: A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + :param str resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. """ __args__ = dict() __args__['associationId'] = association_id @@ -144,6 +144,6 @@ def get_instance_storage_config_output(association_id: Optional[pulumi.Input[str :param str association_id: The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID. :param str instance_id: Reference to the hosting Amazon Connect Instance - :param str resource_type: A valid resource type. Valid Values: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS`. + :param str resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. """ ... diff --git a/sdk/python/pulumi_aws/connect/instance_storage_config.py b/sdk/python/pulumi_aws/connect/instance_storage_config.py index 6add36feaf0..b8cadc26b98 100644 --- a/sdk/python/pulumi_aws/connect/instance_storage_config.py +++ b/sdk/python/pulumi_aws/connect/instance_storage_config.py @@ -22,7 +22,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a InstanceStorageConfig resource. :param pulumi.Input[str] instance_id: Specifies the identifier of the hosting Amazon Connect Instance. - :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. :param pulumi.Input['InstanceStorageConfigStorageConfigArgs'] storage_config: Specifies the storage configuration options for the Connect Instance. Documented below. """ pulumi.set(__self__, "instance_id", instance_id) @@ -45,7 +45,7 @@ def instance_id(self, value: pulumi.Input[str]): @pulumi.getter(name="resourceType") def resource_type(self) -> pulumi.Input[str]: """ - A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. """ return pulumi.get(self, "resource_type") @@ -77,7 +77,7 @@ def __init__(__self__, *, Input properties used for looking up and filtering InstanceStorageConfig resources. :param pulumi.Input[str] association_id: The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID. :param pulumi.Input[str] instance_id: Specifies the identifier of the hosting Amazon Connect Instance. - :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. :param pulumi.Input['InstanceStorageConfigStorageConfigArgs'] storage_config: Specifies the storage configuration options for the Connect Instance. Documented below. """ if association_id is not None: @@ -117,7 +117,7 @@ def instance_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="resourceType") def resource_type(self) -> Optional[pulumi.Input[str]]: """ - A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. """ return pulumi.get(self, "resource_type") @@ -255,7 +255,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] instance_id: Specifies the identifier of the hosting Amazon Connect Instance. - :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. :param pulumi.Input[pulumi.InputType['InstanceStorageConfigStorageConfigArgs']] storage_config: Specifies the storage configuration options for the Connect Instance. Documented below. """ ... @@ -429,7 +429,7 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] association_id: The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID. :param pulumi.Input[str] instance_id: Specifies the identifier of the hosting Amazon Connect Instance. - :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + :param pulumi.Input[str] resource_type: A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. :param pulumi.Input[pulumi.InputType['InstanceStorageConfigStorageConfigArgs']] storage_config: Specifies the storage configuration options for the Connect Instance. Documented below. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -462,7 +462,7 @@ def instance_id(self) -> pulumi.Output[str]: @pulumi.getter(name="resourceType") def resource_type(self) -> pulumi.Output[str]: """ - A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS`. + A valid resource type. Valid Values: `AGENT_EVENTS` | `ATTACHMENTS` | `CALL_RECORDINGS` | `CHAT_TRANSCRIPTS` | `CONTACT_EVALUATIONS` | `CONTACT_TRACE_RECORDS` | `MEDIA_STREAMS` | `REAL_TIME_CONTACT_ANALYSIS_SEGMENTS` | `SCHEDULED_REPORTS` | `SCREEN_RECORDINGS`. """ return pulumi.get(self, "resource_type") diff --git a/sdk/python/pulumi_aws/dms/__init__.py b/sdk/python/pulumi_aws/dms/__init__.py index 4827344c297..77b562069b3 100644 --- a/sdk/python/pulumi_aws/dms/__init__.py +++ b/sdk/python/pulumi_aws/dms/__init__.py @@ -13,6 +13,7 @@ from .get_replication_instance import * from .get_replication_subnet_group import * from .get_replication_task import * +from .replication_config import * from .replication_instance import * from .replication_subnet_group import * from .replication_task import * diff --git a/sdk/python/pulumi_aws/dms/_inputs.py b/sdk/python/pulumi_aws/dms/_inputs.py index 3b643317b2a..e2e9dc9e886 100644 --- a/sdk/python/pulumi_aws/dms/_inputs.py +++ b/sdk/python/pulumi_aws/dms/_inputs.py @@ -17,6 +17,7 @@ 'EndpointRedisSettingsArgs', 'EndpointRedshiftSettingsArgs', 'EndpointS3SettingsArgs', + 'ReplicationConfigComputeConfigArgs', ] @pulumi.input_type @@ -1438,3 +1439,163 @@ def use_task_start_time_for_full_load_timestamp(self, value: Optional[pulumi.Inp pulumi.set(self, "use_task_start_time_for_full_load_timestamp", value) +@pulumi.input_type +class ReplicationConfigComputeConfigArgs: + def __init__(__self__, *, + replication_subnet_group_id: pulumi.Input[str], + availability_zone: Optional[pulumi.Input[str]] = None, + dns_name_servers: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + max_capacity_units: Optional[pulumi.Input[int]] = None, + min_capacity_units: Optional[pulumi.Input[int]] = None, + multi_az: Optional[pulumi.Input[bool]] = None, + preferred_maintenance_window: Optional[pulumi.Input[str]] = None, + vpc_security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input[str] replication_subnet_group_id: Specifies a subnet group identifier to associate with the DMS Serverless replication. + :param pulumi.Input[str] availability_zone: The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + :param pulumi.Input[str] dns_name_servers: A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + :param pulumi.Input[str] kms_key_id: An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + :param pulumi.Input[int] max_capacity_units: Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + :param pulumi.Input[int] min_capacity_units: Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + :param pulumi.Input[bool] multi_az: Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + :param pulumi.Input[str] preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + + - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + - Format: `ddd:hh24:mi-ddd:hh24:mi` + - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + - Constraints: Minimum 30-minute window. + :param pulumi.Input[Sequence[pulumi.Input[str]]] vpc_security_group_ids: Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + """ + pulumi.set(__self__, "replication_subnet_group_id", replication_subnet_group_id) + if availability_zone is not None: + pulumi.set(__self__, "availability_zone", availability_zone) + if dns_name_servers is not None: + pulumi.set(__self__, "dns_name_servers", dns_name_servers) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if max_capacity_units is not None: + pulumi.set(__self__, "max_capacity_units", max_capacity_units) + if min_capacity_units is not None: + pulumi.set(__self__, "min_capacity_units", min_capacity_units) + if multi_az is not None: + pulumi.set(__self__, "multi_az", multi_az) + if preferred_maintenance_window is not None: + pulumi.set(__self__, "preferred_maintenance_window", preferred_maintenance_window) + if vpc_security_group_ids is not None: + pulumi.set(__self__, "vpc_security_group_ids", vpc_security_group_ids) + + @property + @pulumi.getter(name="replicationSubnetGroupId") + def replication_subnet_group_id(self) -> pulumi.Input[str]: + """ + Specifies a subnet group identifier to associate with the DMS Serverless replication. + """ + return pulumi.get(self, "replication_subnet_group_id") + + @replication_subnet_group_id.setter + def replication_subnet_group_id(self, value: pulumi.Input[str]): + pulumi.set(self, "replication_subnet_group_id", value) + + @property + @pulumi.getter(name="availabilityZone") + def availability_zone(self) -> Optional[pulumi.Input[str]]: + """ + The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + """ + return pulumi.get(self, "availability_zone") + + @availability_zone.setter + def availability_zone(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "availability_zone", value) + + @property + @pulumi.getter(name="dnsNameServers") + def dns_name_servers(self) -> Optional[pulumi.Input[str]]: + """ + A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + """ + return pulumi.get(self, "dns_name_servers") + + @dns_name_servers.setter + def dns_name_servers(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dns_name_servers", value) + + @property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> Optional[pulumi.Input[str]]: + """ + An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kms_key_id", value) + + @property + @pulumi.getter(name="maxCapacityUnits") + def max_capacity_units(self) -> Optional[pulumi.Input[int]]: + """ + Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + """ + return pulumi.get(self, "max_capacity_units") + + @max_capacity_units.setter + def max_capacity_units(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "max_capacity_units", value) + + @property + @pulumi.getter(name="minCapacityUnits") + def min_capacity_units(self) -> Optional[pulumi.Input[int]]: + """ + Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + """ + return pulumi.get(self, "min_capacity_units") + + @min_capacity_units.setter + def min_capacity_units(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "min_capacity_units", value) + + @property + @pulumi.getter(name="multiAz") + def multi_az(self) -> Optional[pulumi.Input[bool]]: + """ + Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + """ + return pulumi.get(self, "multi_az") + + @multi_az.setter + def multi_az(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "multi_az", value) + + @property + @pulumi.getter(name="preferredMaintenanceWindow") + def preferred_maintenance_window(self) -> Optional[pulumi.Input[str]]: + """ + The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + + - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + - Format: `ddd:hh24:mi-ddd:hh24:mi` + - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + - Constraints: Minimum 30-minute window. + """ + return pulumi.get(self, "preferred_maintenance_window") + + @preferred_maintenance_window.setter + def preferred_maintenance_window(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "preferred_maintenance_window", value) + + @property + @pulumi.getter(name="vpcSecurityGroupIds") + def vpc_security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + """ + return pulumi.get(self, "vpc_security_group_ids") + + @vpc_security_group_ids.setter + def vpc_security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vpc_security_group_ids", value) + + diff --git a/sdk/python/pulumi_aws/dms/outputs.py b/sdk/python/pulumi_aws/dms/outputs.py index 34f1055bd56..45c82cd57dd 100644 --- a/sdk/python/pulumi_aws/dms/outputs.py +++ b/sdk/python/pulumi_aws/dms/outputs.py @@ -17,6 +17,7 @@ 'EndpointRedisSettings', 'EndpointRedshiftSettings', 'EndpointS3Settings', + 'ReplicationConfigComputeConfig', 'GetEndpointElasticsearchSettingResult', 'GetEndpointKafkaSettingResult', 'GetEndpointKinesisSettingResult', @@ -1370,6 +1371,163 @@ def use_task_start_time_for_full_load_timestamp(self) -> Optional[bool]: return pulumi.get(self, "use_task_start_time_for_full_load_timestamp") +@pulumi.output_type +class ReplicationConfigComputeConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "replicationSubnetGroupId": + suggest = "replication_subnet_group_id" + elif key == "availabilityZone": + suggest = "availability_zone" + elif key == "dnsNameServers": + suggest = "dns_name_servers" + elif key == "kmsKeyId": + suggest = "kms_key_id" + elif key == "maxCapacityUnits": + suggest = "max_capacity_units" + elif key == "minCapacityUnits": + suggest = "min_capacity_units" + elif key == "multiAz": + suggest = "multi_az" + elif key == "preferredMaintenanceWindow": + suggest = "preferred_maintenance_window" + elif key == "vpcSecurityGroupIds": + suggest = "vpc_security_group_ids" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ReplicationConfigComputeConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ReplicationConfigComputeConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ReplicationConfigComputeConfig.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + replication_subnet_group_id: str, + availability_zone: Optional[str] = None, + dns_name_servers: Optional[str] = None, + kms_key_id: Optional[str] = None, + max_capacity_units: Optional[int] = None, + min_capacity_units: Optional[int] = None, + multi_az: Optional[bool] = None, + preferred_maintenance_window: Optional[str] = None, + vpc_security_group_ids: Optional[Sequence[str]] = None): + """ + :param str replication_subnet_group_id: Specifies a subnet group identifier to associate with the DMS Serverless replication. + :param str availability_zone: The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + :param str dns_name_servers: A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + :param str kms_key_id: An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + :param int max_capacity_units: Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + :param int min_capacity_units: Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + :param bool multi_az: Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + :param str preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + + - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + - Format: `ddd:hh24:mi-ddd:hh24:mi` + - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + - Constraints: Minimum 30-minute window. + :param Sequence[str] vpc_security_group_ids: Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + """ + pulumi.set(__self__, "replication_subnet_group_id", replication_subnet_group_id) + if availability_zone is not None: + pulumi.set(__self__, "availability_zone", availability_zone) + if dns_name_servers is not None: + pulumi.set(__self__, "dns_name_servers", dns_name_servers) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if max_capacity_units is not None: + pulumi.set(__self__, "max_capacity_units", max_capacity_units) + if min_capacity_units is not None: + pulumi.set(__self__, "min_capacity_units", min_capacity_units) + if multi_az is not None: + pulumi.set(__self__, "multi_az", multi_az) + if preferred_maintenance_window is not None: + pulumi.set(__self__, "preferred_maintenance_window", preferred_maintenance_window) + if vpc_security_group_ids is not None: + pulumi.set(__self__, "vpc_security_group_ids", vpc_security_group_ids) + + @property + @pulumi.getter(name="replicationSubnetGroupId") + def replication_subnet_group_id(self) -> str: + """ + Specifies a subnet group identifier to associate with the DMS Serverless replication. + """ + return pulumi.get(self, "replication_subnet_group_id") + + @property + @pulumi.getter(name="availabilityZone") + def availability_zone(self) -> Optional[str]: + """ + The Availability Zone where the DMS Serverless replication using this configuration will run. The default value is a random. + """ + return pulumi.get(self, "availability_zone") + + @property + @pulumi.getter(name="dnsNameServers") + def dns_name_servers(self) -> Optional[str]: + """ + A list of custom DNS name servers supported for the DMS Serverless replication to access your source or target database. + """ + return pulumi.get(self, "dns_name_servers") + + @property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> Optional[str]: + """ + An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt the data during DMS Serverless replication. If you don't specify a value for the KmsKeyId parameter, DMS uses your default encryption key. + """ + return pulumi.get(self, "kms_key_id") + + @property + @pulumi.getter(name="maxCapacityUnits") + def max_capacity_units(self) -> Optional[int]: + """ + Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. + """ + return pulumi.get(self, "max_capacity_units") + + @property + @pulumi.getter(name="minCapacityUnits") + def min_capacity_units(self) -> Optional[int]: + """ + Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS Serverless replication can be provisioned. The list of valid DCU values includes 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. If this value isn't set DMS scans the current activity of available source tables to identify an optimum setting for this parameter. + """ + return pulumi.get(self, "min_capacity_units") + + @property + @pulumi.getter(name="multiAz") + def multi_az(self) -> Optional[bool]: + """ + Specifies if the replication instance is a multi-az deployment. You cannot set the `availability_zone` parameter if the `multi_az` parameter is set to `true`. + """ + return pulumi.get(self, "multi_az") + + @property + @pulumi.getter(name="preferredMaintenanceWindow") + def preferred_maintenance_window(self) -> Optional[str]: + """ + The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). + + - Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. + - Format: `ddd:hh24:mi-ddd:hh24:mi` + - Valid Days: `mon, tue, wed, thu, fri, sat, sun` + - Constraints: Minimum 30-minute window. + """ + return pulumi.get(self, "preferred_maintenance_window") + + @property + @pulumi.getter(name="vpcSecurityGroupIds") + def vpc_security_group_ids(self) -> Optional[Sequence[str]]: + """ + Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless replication. The VPC security group must work with the VPC containing the replication. + """ + return pulumi.get(self, "vpc_security_group_ids") + + @pulumi.output_type class GetEndpointElasticsearchSettingResult(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_aws/dms/replication_config.py b/sdk/python/pulumi_aws/dms/replication_config.py new file mode 100644 index 00000000000..038f0aa914e --- /dev/null +++ b/sdk/python/pulumi_aws/dms/replication_config.py @@ -0,0 +1,760 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['ReplicationConfigArgs', 'ReplicationConfig'] + +@pulumi.input_type +class ReplicationConfigArgs: + def __init__(__self__, *, + compute_config: pulumi.Input['ReplicationConfigComputeConfigArgs'], + replication_config_identifier: pulumi.Input[str], + replication_type: pulumi.Input[str], + source_endpoint_arn: pulumi.Input[str], + table_mappings: pulumi.Input[str], + target_endpoint_arn: pulumi.Input[str], + replication_settings: Optional[pulumi.Input[str]] = None, + resource_identifier: Optional[pulumi.Input[str]] = None, + start_replication: Optional[pulumi.Input[bool]] = None, + supplemental_settings: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + The set of arguments for constructing a ReplicationConfig resource. + :param pulumi.Input['ReplicationConfigComputeConfigArgs'] compute_config: Configuration block for provisioning an DMS Serverless replication. + :param pulumi.Input[str] replication_config_identifier: Unique identifier that you want to use to create the config. + :param pulumi.Input[str] replication_type: The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + :param pulumi.Input[str] source_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + :param pulumi.Input[str] table_mappings: An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + :param pulumi.Input[str] target_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + :param pulumi.Input[str] replication_settings: An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + :param pulumi.Input[str] resource_identifier: Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + :param pulumi.Input[bool] start_replication: Whether to run or stop the serverless replication, default is false. + :param pulumi.Input[str] supplemental_settings: JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + pulumi.set(__self__, "compute_config", compute_config) + pulumi.set(__self__, "replication_config_identifier", replication_config_identifier) + pulumi.set(__self__, "replication_type", replication_type) + pulumi.set(__self__, "source_endpoint_arn", source_endpoint_arn) + pulumi.set(__self__, "table_mappings", table_mappings) + pulumi.set(__self__, "target_endpoint_arn", target_endpoint_arn) + if replication_settings is not None: + pulumi.set(__self__, "replication_settings", replication_settings) + if resource_identifier is not None: + pulumi.set(__self__, "resource_identifier", resource_identifier) + if start_replication is not None: + pulumi.set(__self__, "start_replication", start_replication) + if supplemental_settings is not None: + pulumi.set(__self__, "supplemental_settings", supplemental_settings) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="computeConfig") + def compute_config(self) -> pulumi.Input['ReplicationConfigComputeConfigArgs']: + """ + Configuration block for provisioning an DMS Serverless replication. + """ + return pulumi.get(self, "compute_config") + + @compute_config.setter + def compute_config(self, value: pulumi.Input['ReplicationConfigComputeConfigArgs']): + pulumi.set(self, "compute_config", value) + + @property + @pulumi.getter(name="replicationConfigIdentifier") + def replication_config_identifier(self) -> pulumi.Input[str]: + """ + Unique identifier that you want to use to create the config. + """ + return pulumi.get(self, "replication_config_identifier") + + @replication_config_identifier.setter + def replication_config_identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "replication_config_identifier", value) + + @property + @pulumi.getter(name="replicationType") + def replication_type(self) -> pulumi.Input[str]: + """ + The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + """ + return pulumi.get(self, "replication_type") + + @replication_type.setter + def replication_type(self, value: pulumi.Input[str]): + pulumi.set(self, "replication_type", value) + + @property + @pulumi.getter(name="sourceEndpointArn") + def source_endpoint_arn(self) -> pulumi.Input[str]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + """ + return pulumi.get(self, "source_endpoint_arn") + + @source_endpoint_arn.setter + def source_endpoint_arn(self, value: pulumi.Input[str]): + pulumi.set(self, "source_endpoint_arn", value) + + @property + @pulumi.getter(name="tableMappings") + def table_mappings(self) -> pulumi.Input[str]: + """ + An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + """ + return pulumi.get(self, "table_mappings") + + @table_mappings.setter + def table_mappings(self, value: pulumi.Input[str]): + pulumi.set(self, "table_mappings", value) + + @property + @pulumi.getter(name="targetEndpointArn") + def target_endpoint_arn(self) -> pulumi.Input[str]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + return pulumi.get(self, "target_endpoint_arn") + + @target_endpoint_arn.setter + def target_endpoint_arn(self, value: pulumi.Input[str]): + pulumi.set(self, "target_endpoint_arn", value) + + @property + @pulumi.getter(name="replicationSettings") + def replication_settings(self) -> Optional[pulumi.Input[str]]: + """ + An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + """ + return pulumi.get(self, "replication_settings") + + @replication_settings.setter + def replication_settings(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "replication_settings", value) + + @property + @pulumi.getter(name="resourceIdentifier") + def resource_identifier(self) -> Optional[pulumi.Input[str]]: + """ + Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + """ + return pulumi.get(self, "resource_identifier") + + @resource_identifier.setter + def resource_identifier(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "resource_identifier", value) + + @property + @pulumi.getter(name="startReplication") + def start_replication(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to run or stop the serverless replication, default is false. + """ + return pulumi.get(self, "start_replication") + + @start_replication.setter + def start_replication(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "start_replication", value) + + @property + @pulumi.getter(name="supplementalSettings") + def supplemental_settings(self) -> Optional[pulumi.Input[str]]: + """ + JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + """ + return pulumi.get(self, "supplemental_settings") + + @supplemental_settings.setter + def supplemental_settings(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "supplemental_settings", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +@pulumi.input_type +class _ReplicationConfigState: + def __init__(__self__, *, + arn: Optional[pulumi.Input[str]] = None, + compute_config: Optional[pulumi.Input['ReplicationConfigComputeConfigArgs']] = None, + replication_config_identifier: Optional[pulumi.Input[str]] = None, + replication_settings: Optional[pulumi.Input[str]] = None, + replication_type: Optional[pulumi.Input[str]] = None, + resource_identifier: Optional[pulumi.Input[str]] = None, + source_endpoint_arn: Optional[pulumi.Input[str]] = None, + start_replication: Optional[pulumi.Input[bool]] = None, + supplemental_settings: Optional[pulumi.Input[str]] = None, + table_mappings: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + target_endpoint_arn: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering ReplicationConfig resources. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) for the serverless replication config. + :param pulumi.Input['ReplicationConfigComputeConfigArgs'] compute_config: Configuration block for provisioning an DMS Serverless replication. + :param pulumi.Input[str] replication_config_identifier: Unique identifier that you want to use to create the config. + :param pulumi.Input[str] replication_settings: An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + :param pulumi.Input[str] replication_type: The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + :param pulumi.Input[str] resource_identifier: Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + :param pulumi.Input[str] source_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + :param pulumi.Input[bool] start_replication: Whether to run or stop the serverless replication, default is false. + :param pulumi.Input[str] supplemental_settings: JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + :param pulumi.Input[str] table_mappings: An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + :param pulumi.Input[str] target_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + if arn is not None: + pulumi.set(__self__, "arn", arn) + if compute_config is not None: + pulumi.set(__self__, "compute_config", compute_config) + if replication_config_identifier is not None: + pulumi.set(__self__, "replication_config_identifier", replication_config_identifier) + if replication_settings is not None: + pulumi.set(__self__, "replication_settings", replication_settings) + if replication_type is not None: + pulumi.set(__self__, "replication_type", replication_type) + if resource_identifier is not None: + pulumi.set(__self__, "resource_identifier", resource_identifier) + if source_endpoint_arn is not None: + pulumi.set(__self__, "source_endpoint_arn", source_endpoint_arn) + if start_replication is not None: + pulumi.set(__self__, "start_replication", start_replication) + if supplemental_settings is not None: + pulumi.set(__self__, "supplemental_settings", supplemental_settings) + if table_mappings is not None: + pulumi.set(__self__, "table_mappings", table_mappings) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tags_all is not None: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + if tags_all is not None: + pulumi.set(__self__, "tags_all", tags_all) + if target_endpoint_arn is not None: + pulumi.set(__self__, "target_endpoint_arn", target_endpoint_arn) + + @property + @pulumi.getter + def arn(self) -> Optional[pulumi.Input[str]]: + """ + The Amazon Resource Name (ARN) for the serverless replication config. + """ + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "arn", value) + + @property + @pulumi.getter(name="computeConfig") + def compute_config(self) -> Optional[pulumi.Input['ReplicationConfigComputeConfigArgs']]: + """ + Configuration block for provisioning an DMS Serverless replication. + """ + return pulumi.get(self, "compute_config") + + @compute_config.setter + def compute_config(self, value: Optional[pulumi.Input['ReplicationConfigComputeConfigArgs']]): + pulumi.set(self, "compute_config", value) + + @property + @pulumi.getter(name="replicationConfigIdentifier") + def replication_config_identifier(self) -> Optional[pulumi.Input[str]]: + """ + Unique identifier that you want to use to create the config. + """ + return pulumi.get(self, "replication_config_identifier") + + @replication_config_identifier.setter + def replication_config_identifier(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "replication_config_identifier", value) + + @property + @pulumi.getter(name="replicationSettings") + def replication_settings(self) -> Optional[pulumi.Input[str]]: + """ + An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + """ + return pulumi.get(self, "replication_settings") + + @replication_settings.setter + def replication_settings(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "replication_settings", value) + + @property + @pulumi.getter(name="replicationType") + def replication_type(self) -> Optional[pulumi.Input[str]]: + """ + The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + """ + return pulumi.get(self, "replication_type") + + @replication_type.setter + def replication_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "replication_type", value) + + @property + @pulumi.getter(name="resourceIdentifier") + def resource_identifier(self) -> Optional[pulumi.Input[str]]: + """ + Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + """ + return pulumi.get(self, "resource_identifier") + + @resource_identifier.setter + def resource_identifier(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "resource_identifier", value) + + @property + @pulumi.getter(name="sourceEndpointArn") + def source_endpoint_arn(self) -> Optional[pulumi.Input[str]]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + """ + return pulumi.get(self, "source_endpoint_arn") + + @source_endpoint_arn.setter + def source_endpoint_arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "source_endpoint_arn", value) + + @property + @pulumi.getter(name="startReplication") + def start_replication(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to run or stop the serverless replication, default is false. + """ + return pulumi.get(self, "start_replication") + + @start_replication.setter + def start_replication(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "start_replication", value) + + @property + @pulumi.getter(name="supplementalSettings") + def supplemental_settings(self) -> Optional[pulumi.Input[str]]: + """ + JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + """ + return pulumi.get(self, "supplemental_settings") + + @supplemental_settings.setter + def supplemental_settings(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "supplemental_settings", value) + + @property + @pulumi.getter(name="tableMappings") + def table_mappings(self) -> Optional[pulumi.Input[str]]: + """ + An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + """ + return pulumi.get(self, "table_mappings") + + @table_mappings.setter + def table_mappings(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "table_mappings", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @tags_all.setter + def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags_all", value) + + @property + @pulumi.getter(name="targetEndpointArn") + def target_endpoint_arn(self) -> Optional[pulumi.Input[str]]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + return pulumi.get(self, "target_endpoint_arn") + + @target_endpoint_arn.setter + def target_endpoint_arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "target_endpoint_arn", value) + + +class ReplicationConfig(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + compute_config: Optional[pulumi.Input[pulumi.InputType['ReplicationConfigComputeConfigArgs']]] = None, + replication_config_identifier: Optional[pulumi.Input[str]] = None, + replication_settings: Optional[pulumi.Input[str]] = None, + replication_type: Optional[pulumi.Input[str]] = None, + resource_identifier: Optional[pulumi.Input[str]] = None, + source_endpoint_arn: Optional[pulumi.Input[str]] = None, + start_replication: Optional[pulumi.Input[bool]] = None, + supplemental_settings: Optional[pulumi.Input[str]] = None, + table_mappings: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + target_endpoint_arn: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Provides a DMS Serverless replication config resource. + + > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `start_replication` to resume the replication afterwards. + + ## Example Usage + + ```python + import pulumi + import pulumi_aws as aws + + name = aws.dms.ReplicationConfig("name", + replication_config_identifier="test-dms-serverless-replication-tf", + resource_identifier="test-dms-serverless-replication-tf", + replication_type="cdc", + source_endpoint_arn=aws_dms_endpoint["source"]["endpoint_arn"], + target_endpoint_arn=aws_dms_endpoint["target"]["endpoint_arn"], + table_mappings=\"\"\" { + "rules":[{"rule-type":"selection","rule-id":"1","rule-name":"1","object-locator":{"schema-name":"%%","table-name":"%%", "rule-action":"include"}] + } + \"\"\", + start_replication=True, + compute_config=aws.dms.ReplicationConfigComputeConfigArgs( + replication_subnet_group_id=aws_dms_replication_subnet_group["default"]["replication_subnet_group_id"], + max_capacity_units=64, + min_capacity_units=2, + preferred_maintenance_window="sun:23:45-mon:00:30", + )) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { + + to = aws_dms_replication_config.example + + id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[pulumi.InputType['ReplicationConfigComputeConfigArgs']] compute_config: Configuration block for provisioning an DMS Serverless replication. + :param pulumi.Input[str] replication_config_identifier: Unique identifier that you want to use to create the config. + :param pulumi.Input[str] replication_settings: An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + :param pulumi.Input[str] replication_type: The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + :param pulumi.Input[str] resource_identifier: Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + :param pulumi.Input[str] source_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + :param pulumi.Input[bool] start_replication: Whether to run or stop the serverless replication, default is false. + :param pulumi.Input[str] supplemental_settings: JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + :param pulumi.Input[str] table_mappings: An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[str] target_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ReplicationConfigArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Provides a DMS Serverless replication config resource. + + > **NOTE:** Changing most arguments will stop the replication if it is running. You can set `start_replication` to resume the replication afterwards. + + ## Example Usage + + ```python + import pulumi + import pulumi_aws as aws + + name = aws.dms.ReplicationConfig("name", + replication_config_identifier="test-dms-serverless-replication-tf", + resource_identifier="test-dms-serverless-replication-tf", + replication_type="cdc", + source_endpoint_arn=aws_dms_endpoint["source"]["endpoint_arn"], + target_endpoint_arn=aws_dms_endpoint["target"]["endpoint_arn"], + table_mappings=\"\"\" { + "rules":[{"rule-type":"selection","rule-id":"1","rule-name":"1","object-locator":{"schema-name":"%%","table-name":"%%", "rule-action":"include"}] + } + \"\"\", + start_replication=True, + compute_config=aws.dms.ReplicationConfigComputeConfigArgs( + replication_subnet_group_id=aws_dms_replication_subnet_group["default"]["replication_subnet_group_id"], + max_capacity_units=64, + min_capacity_units=2, + preferred_maintenance_window="sun:23:45-mon:00:30", + )) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For exampleterraform import { + + to = aws_dms_replication_config.example + + id = "arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" } Using `TODO import`, import a replication config using the `arn`. For exampleconsole % TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI + + :param str resource_name: The name of the resource. + :param ReplicationConfigArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ReplicationConfigArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + compute_config: Optional[pulumi.Input[pulumi.InputType['ReplicationConfigComputeConfigArgs']]] = None, + replication_config_identifier: Optional[pulumi.Input[str]] = None, + replication_settings: Optional[pulumi.Input[str]] = None, + replication_type: Optional[pulumi.Input[str]] = None, + resource_identifier: Optional[pulumi.Input[str]] = None, + source_endpoint_arn: Optional[pulumi.Input[str]] = None, + start_replication: Optional[pulumi.Input[bool]] = None, + supplemental_settings: Optional[pulumi.Input[str]] = None, + table_mappings: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + target_endpoint_arn: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ReplicationConfigArgs.__new__(ReplicationConfigArgs) + + if compute_config is None and not opts.urn: + raise TypeError("Missing required property 'compute_config'") + __props__.__dict__["compute_config"] = compute_config + if replication_config_identifier is None and not opts.urn: + raise TypeError("Missing required property 'replication_config_identifier'") + __props__.__dict__["replication_config_identifier"] = replication_config_identifier + __props__.__dict__["replication_settings"] = replication_settings + if replication_type is None and not opts.urn: + raise TypeError("Missing required property 'replication_type'") + __props__.__dict__["replication_type"] = replication_type + __props__.__dict__["resource_identifier"] = resource_identifier + if source_endpoint_arn is None and not opts.urn: + raise TypeError("Missing required property 'source_endpoint_arn'") + __props__.__dict__["source_endpoint_arn"] = source_endpoint_arn + __props__.__dict__["start_replication"] = start_replication + __props__.__dict__["supplemental_settings"] = supplemental_settings + if table_mappings is None and not opts.urn: + raise TypeError("Missing required property 'table_mappings'") + __props__.__dict__["table_mappings"] = table_mappings + __props__.__dict__["tags"] = tags + if target_endpoint_arn is None and not opts.urn: + raise TypeError("Missing required property 'target_endpoint_arn'") + __props__.__dict__["target_endpoint_arn"] = target_endpoint_arn + __props__.__dict__["arn"] = None + __props__.__dict__["tags_all"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["tagsAll"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(ReplicationConfig, __self__).__init__( + 'aws:dms/replicationConfig:ReplicationConfig', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + arn: Optional[pulumi.Input[str]] = None, + compute_config: Optional[pulumi.Input[pulumi.InputType['ReplicationConfigComputeConfigArgs']]] = None, + replication_config_identifier: Optional[pulumi.Input[str]] = None, + replication_settings: Optional[pulumi.Input[str]] = None, + replication_type: Optional[pulumi.Input[str]] = None, + resource_identifier: Optional[pulumi.Input[str]] = None, + source_endpoint_arn: Optional[pulumi.Input[str]] = None, + start_replication: Optional[pulumi.Input[bool]] = None, + supplemental_settings: Optional[pulumi.Input[str]] = None, + table_mappings: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + target_endpoint_arn: Optional[pulumi.Input[str]] = None) -> 'ReplicationConfig': + """ + Get an existing ReplicationConfig resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) for the serverless replication config. + :param pulumi.Input[pulumi.InputType['ReplicationConfigComputeConfigArgs']] compute_config: Configuration block for provisioning an DMS Serverless replication. + :param pulumi.Input[str] replication_config_identifier: Unique identifier that you want to use to create the config. + :param pulumi.Input[str] replication_settings: An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + :param pulumi.Input[str] replication_type: The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + :param pulumi.Input[str] resource_identifier: Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + :param pulumi.Input[str] source_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + :param pulumi.Input[bool] start_replication: Whether to run or stop the serverless replication, default is false. + :param pulumi.Input[str] supplemental_settings: JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + :param pulumi.Input[str] table_mappings: An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + :param pulumi.Input[str] target_endpoint_arn: The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ReplicationConfigState.__new__(_ReplicationConfigState) + + __props__.__dict__["arn"] = arn + __props__.__dict__["compute_config"] = compute_config + __props__.__dict__["replication_config_identifier"] = replication_config_identifier + __props__.__dict__["replication_settings"] = replication_settings + __props__.__dict__["replication_type"] = replication_type + __props__.__dict__["resource_identifier"] = resource_identifier + __props__.__dict__["source_endpoint_arn"] = source_endpoint_arn + __props__.__dict__["start_replication"] = start_replication + __props__.__dict__["supplemental_settings"] = supplemental_settings + __props__.__dict__["table_mappings"] = table_mappings + __props__.__dict__["tags"] = tags + __props__.__dict__["tags_all"] = tags_all + __props__.__dict__["target_endpoint_arn"] = target_endpoint_arn + return ReplicationConfig(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def arn(self) -> pulumi.Output[str]: + """ + The Amazon Resource Name (ARN) for the serverless replication config. + """ + return pulumi.get(self, "arn") + + @property + @pulumi.getter(name="computeConfig") + def compute_config(self) -> pulumi.Output['outputs.ReplicationConfigComputeConfig']: + """ + Configuration block for provisioning an DMS Serverless replication. + """ + return pulumi.get(self, "compute_config") + + @property + @pulumi.getter(name="replicationConfigIdentifier") + def replication_config_identifier(self) -> pulumi.Output[str]: + """ + Unique identifier that you want to use to create the config. + """ + return pulumi.get(self, "replication_config_identifier") + + @property + @pulumi.getter(name="replicationSettings") + def replication_settings(self) -> pulumi.Output[str]: + """ + An escaped JSON string that are used to provision this replication configuration. For example, [Change processing tuning settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.ChangeProcessingTuning.html) + """ + return pulumi.get(self, "replication_settings") + + @property + @pulumi.getter(name="replicationType") + def replication_type(self) -> pulumi.Output[str]: + """ + The migration type. Can be one of `full-load | cdc | full-load-and-cdc`. + """ + return pulumi.get(self, "replication_type") + + @property + @pulumi.getter(name="resourceIdentifier") + def resource_identifier(self) -> pulumi.Output[str]: + """ + Unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see [Fine-grained access control using resource names and tags](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.FineGrainedAccess) + """ + return pulumi.get(self, "resource_identifier") + + @property + @pulumi.getter(name="sourceEndpointArn") + def source_endpoint_arn(self) -> pulumi.Output[str]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the source endpoint. + """ + return pulumi.get(self, "source_endpoint_arn") + + @property + @pulumi.getter(name="startReplication") + def start_replication(self) -> pulumi.Output[Optional[bool]]: + """ + Whether to run or stop the serverless replication, default is false. + """ + return pulumi.get(self, "start_replication") + + @property + @pulumi.getter(name="supplementalSettings") + def supplemental_settings(self) -> pulumi.Output[Optional[str]]: + """ + JSON settings for specifying supplemental data. For more information see [Specifying supplemental data for task settings](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + """ + return pulumi.get(self, "supplemental_settings") + + @property + @pulumi.getter(name="tableMappings") + def table_mappings(self) -> pulumi.Output[str]: + """ + An escaped JSON string that contains the table mappings. For information on table mapping see [Using Table Mapping with an AWS Database Migration Service Task to Select and Filter Data](http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) + """ + return pulumi.get(self, "table_mappings") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> pulumi.Output[Mapping[str, str]]: + """ + A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @property + @pulumi.getter(name="targetEndpointArn") + def target_endpoint_arn(self) -> pulumi.Output[str]: + """ + The Amazon Resource Name (ARN) string that uniquely identifies the target endpoint. + """ + return pulumi.get(self, "target_endpoint_arn") + diff --git a/sdk/python/pulumi_aws/fsx/_inputs.py b/sdk/python/pulumi_aws/fsx/_inputs.py index 06d464a8af2..1f482fc5fb2 100644 --- a/sdk/python/pulumi_aws/fsx/_inputs.py +++ b/sdk/python/pulumi_aws/fsx/_inputs.py @@ -31,6 +31,12 @@ 'OntapStorageVirtualMachineEndpointManagementArgs', 'OntapStorageVirtualMachineEndpointNfArgs', 'OntapStorageVirtualMachineEndpointSmbArgs', + 'OntapVolumeSnaplockConfigurationArgs', + 'OntapVolumeSnaplockConfigurationAutocommitPeriodArgs', + 'OntapVolumeSnaplockConfigurationRetentionPeriodArgs', + 'OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs', + 'OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs', + 'OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs', 'OntapVolumeTieringPolicyArgs', 'OpenZfsFileSystemDiskIopsConfigurationArgs', 'OpenZfsFileSystemRootVolumeConfigurationArgs', @@ -1071,6 +1077,319 @@ def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]] pulumi.set(self, "ip_addresses", value) +@pulumi.input_type +class OntapVolumeSnaplockConfigurationArgs: + def __init__(__self__, *, + snaplock_type: pulumi.Input[str], + audit_log_volume: Optional[pulumi.Input[bool]] = None, + autocommit_period: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationAutocommitPeriodArgs']] = None, + privileged_delete: Optional[pulumi.Input[str]] = None, + retention_period: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodArgs']] = None, + volume_append_mode_enabled: Optional[pulumi.Input[bool]] = None): + """ + :param pulumi.Input[str] snaplock_type: Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + :param pulumi.Input[bool] audit_log_volume: Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + :param pulumi.Input['OntapVolumeSnaplockConfigurationAutocommitPeriodArgs'] autocommit_period: The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + :param pulumi.Input[str] privileged_delete: Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + :param pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodArgs'] retention_period: The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + :param pulumi.Input[bool] volume_append_mode_enabled: Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + pulumi.set(__self__, "snaplock_type", snaplock_type) + if audit_log_volume is not None: + pulumi.set(__self__, "audit_log_volume", audit_log_volume) + if autocommit_period is not None: + pulumi.set(__self__, "autocommit_period", autocommit_period) + if privileged_delete is not None: + pulumi.set(__self__, "privileged_delete", privileged_delete) + if retention_period is not None: + pulumi.set(__self__, "retention_period", retention_period) + if volume_append_mode_enabled is not None: + pulumi.set(__self__, "volume_append_mode_enabled", volume_append_mode_enabled) + + @property + @pulumi.getter(name="snaplockType") + def snaplock_type(self) -> pulumi.Input[str]: + """ + Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + """ + return pulumi.get(self, "snaplock_type") + + @snaplock_type.setter + def snaplock_type(self, value: pulumi.Input[str]): + pulumi.set(self, "snaplock_type", value) + + @property + @pulumi.getter(name="auditLogVolume") + def audit_log_volume(self) -> Optional[pulumi.Input[bool]]: + """ + Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + return pulumi.get(self, "audit_log_volume") + + @audit_log_volume.setter + def audit_log_volume(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "audit_log_volume", value) + + @property + @pulumi.getter(name="autocommitPeriod") + def autocommit_period(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationAutocommitPeriodArgs']]: + """ + The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + """ + return pulumi.get(self, "autocommit_period") + + @autocommit_period.setter + def autocommit_period(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationAutocommitPeriodArgs']]): + pulumi.set(self, "autocommit_period", value) + + @property + @pulumi.getter(name="privilegedDelete") + def privileged_delete(self) -> Optional[pulumi.Input[str]]: + """ + Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + """ + return pulumi.get(self, "privileged_delete") + + @privileged_delete.setter + def privileged_delete(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "privileged_delete", value) + + @property + @pulumi.getter(name="retentionPeriod") + def retention_period(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodArgs']]: + """ + The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + """ + return pulumi.get(self, "retention_period") + + @retention_period.setter + def retention_period(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodArgs']]): + pulumi.set(self, "retention_period", value) + + @property + @pulumi.getter(name="volumeAppendModeEnabled") + def volume_append_mode_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + return pulumi.get(self, "volume_append_mode_enabled") + + @volume_append_mode_enabled.setter + def volume_append_mode_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "volume_append_mode_enabled", value) + + +@pulumi.input_type +class OntapVolumeSnaplockConfigurationAutocommitPeriodArgs: + def __init__(__self__, *, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None): + """ + :param pulumi.Input[str] type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param pulumi.Input[int] value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "value", value) + + +@pulumi.input_type +class OntapVolumeSnaplockConfigurationRetentionPeriodArgs: + def __init__(__self__, *, + default_retention: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs']] = None, + maximum_retention: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs']] = None, + minimum_retention: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs']] = None): + """ + :param pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs'] default_retention: The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + :param pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs'] maximum_retention: The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + :param pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs'] minimum_retention: The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + if default_retention is not None: + pulumi.set(__self__, "default_retention", default_retention) + if maximum_retention is not None: + pulumi.set(__self__, "maximum_retention", maximum_retention) + if minimum_retention is not None: + pulumi.set(__self__, "minimum_retention", minimum_retention) + + @property + @pulumi.getter(name="defaultRetention") + def default_retention(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs']]: + """ + The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + """ + return pulumi.get(self, "default_retention") + + @default_retention.setter + def default_retention(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs']]): + pulumi.set(self, "default_retention", value) + + @property + @pulumi.getter(name="maximumRetention") + def maximum_retention(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs']]: + """ + The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + return pulumi.get(self, "maximum_retention") + + @maximum_retention.setter + def maximum_retention(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs']]): + pulumi.set(self, "maximum_retention", value) + + @property + @pulumi.getter(name="minimumRetention") + def minimum_retention(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs']]: + """ + The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + return pulumi.get(self, "minimum_retention") + + @minimum_retention.setter + def minimum_retention(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs']]): + pulumi.set(self, "minimum_retention", value) + + +@pulumi.input_type +class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs: + def __init__(__self__, *, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None): + """ + :param pulumi.Input[str] type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param pulumi.Input[int] value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "value", value) + + +@pulumi.input_type +class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs: + def __init__(__self__, *, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None): + """ + :param pulumi.Input[str] type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param pulumi.Input[int] value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "value", value) + + +@pulumi.input_type +class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs: + def __init__(__self__, *, + type: Optional[pulumi.Input[str]] = None, + value: Optional[pulumi.Input[int]] = None): + """ + :param pulumi.Input[str] type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param pulumi.Input[int] value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + @property + @pulumi.getter + def value(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "value", value) + + @pulumi.input_type class OntapVolumeTieringPolicyArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_aws/fsx/ontap_file_system.py b/sdk/python/pulumi_aws/fsx/ontap_file_system.py index ab79602877e..9b6a80ff5f2 100644 --- a/sdk/python/pulumi_aws/fsx/ontap_file_system.py +++ b/sdk/python/pulumi_aws/fsx/ontap_file_system.py @@ -40,7 +40,7 @@ def __init__(__self__, *, :param pulumi.Input[int] throughput_capacity: Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are `128`, `256`, `512`, `1024`, `2048`, and `4096`. :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. :param pulumi.Input[str] daily_automatic_backup_start_time: A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automatic_backup_retention_days` to be set. - :param pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs'] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + :param pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs'] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. :param pulumi.Input[str] endpoint_ip_address_range: Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. :param pulumi.Input[str] fsx_admin_password: The ONTAP administrative password for the fsxadmin user that you can use to administer your file system using the ONTAP CLI and REST API. :param pulumi.Input[str] kms_key_id: ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key. @@ -156,7 +156,7 @@ def daily_automatic_backup_start_time(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="diskIopsConfiguration") def disk_iops_configuration(self) -> Optional[pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs']]: """ - The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. """ return pulumi.get(self, "disk_iops_configuration") @@ -305,7 +305,7 @@ def __init__(__self__, *, :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. :param pulumi.Input[str] daily_automatic_backup_start_time: A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automatic_backup_retention_days` to be set. :param pulumi.Input[str] deployment_type: The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. - :param pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs'] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + :param pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs'] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. :param pulumi.Input[str] dns_name: The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. :param pulumi.Input[str] endpoint_ip_address_range: Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. :param pulumi.Input[Sequence[pulumi.Input['OntapFileSystemEndpointArgs']]] endpoints: The endpoints that are used to access data or to manage the file system using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror. See Endpoints below. @@ -427,7 +427,7 @@ def deployment_type(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="diskIopsConfiguration") def disk_iops_configuration(self) -> Optional[pulumi.Input['OntapFileSystemDiskIopsConfigurationArgs']]: """ - The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. """ return pulumi.get(self, "disk_iops_configuration") @@ -712,7 +712,7 @@ def __init__(__self__, :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. :param pulumi.Input[str] daily_automatic_backup_start_time: A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automatic_backup_retention_days` to be set. :param pulumi.Input[str] deployment_type: The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. - :param pulumi.Input[pulumi.InputType['OntapFileSystemDiskIopsConfigurationArgs']] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + :param pulumi.Input[pulumi.InputType['OntapFileSystemDiskIopsConfigurationArgs']] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. :param pulumi.Input[str] endpoint_ip_address_range: Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. :param pulumi.Input[str] fsx_admin_password: The ONTAP administrative password for the fsxadmin user that you can use to administer your file system using the ONTAP CLI and REST API. :param pulumi.Input[str] kms_key_id: ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key. @@ -879,7 +879,7 @@ def get(resource_name: str, :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. :param pulumi.Input[str] daily_automatic_backup_start_time: A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automatic_backup_retention_days` to be set. :param pulumi.Input[str] deployment_type: The filesystem deployment type. Supports `MULTI_AZ_1` and `SINGLE_AZ_1`. - :param pulumi.Input[pulumi.InputType['OntapFileSystemDiskIopsConfigurationArgs']] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + :param pulumi.Input[pulumi.InputType['OntapFileSystemDiskIopsConfigurationArgs']] disk_iops_configuration: The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. :param pulumi.Input[str] dns_name: The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. :param pulumi.Input[str] endpoint_ip_address_range: Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OntapFileSystemEndpointArgs']]]] endpoints: The endpoints that are used to access data or to manage the file system using the NetApp ONTAP CLI, REST API, or NetApp SnapMirror. See Endpoints below. @@ -964,7 +964,7 @@ def deployment_type(self) -> pulumi.Output[str]: @pulumi.getter(name="diskIopsConfiguration") def disk_iops_configuration(self) -> pulumi.Output['outputs.OntapFileSystemDiskIopsConfiguration']: """ - The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration Below. + The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. See Disk Iops Configuration below. """ return pulumi.get(self, "disk_iops_configuration") diff --git a/sdk/python/pulumi_aws/fsx/ontap_volume.py b/sdk/python/pulumi_aws/fsx/ontap_volume.py index 8cf28ee8623..00a875f5d16 100644 --- a/sdk/python/pulumi_aws/fsx/ontap_volume.py +++ b/sdk/python/pulumi_aws/fsx/ontap_volume.py @@ -18,11 +18,15 @@ class OntapVolumeArgs: def __init__(__self__, *, size_in_megabytes: pulumi.Input[int], storage_virtual_machine_id: pulumi.Input[str], + bypass_snaplock_enterprise_retention: Optional[pulumi.Input[bool]] = None, + copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, junction_path: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, ontap_volume_type: Optional[pulumi.Input[str]] = None, security_style: Optional[pulumi.Input[str]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, + snaplock_configuration: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']] = None, + snapshot_policy: Optional[pulumi.Input[str]] = None, storage_efficiency_enabled: Optional[pulumi.Input[bool]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tiering_policy: Optional[pulumi.Input['OntapVolumeTieringPolicyArgs']] = None, @@ -31,17 +35,26 @@ def __init__(__self__, *, The set of arguments for constructing a OntapVolume resource. :param pulumi.Input[int] size_in_megabytes: Specifies the size of the volume, in megabytes (MB), that you are creating. :param pulumi.Input[str] storage_virtual_machine_id: Specifies the storage virtual machine in which to create the volume. + :param pulumi.Input[bool] bypass_snaplock_enterprise_retention: Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. :param pulumi.Input[str] junction_path: Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input[str] ontap_volume_type: Specifies the type of volume, valid values are `RW`, `DP`. Default value is `RW`. These can be set by the ONTAP CLI or API. This setting is used as part of migration and replication [Migrating to Amazon FSx for NetApp ONTAP](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/migrating-fsx-ontap.html) :param pulumi.Input[str] security_style: Specifies the volume security style, Valid values are `UNIX`, `NTFS`, and `MIXED`. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input['OntapVolumeSnaplockConfigurationArgs'] snaplock_configuration: The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + :param pulumi.Input[str] snapshot_policy: Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide :param pulumi.Input[bool] storage_efficiency_enabled: Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the volume. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input['OntapVolumeTieringPolicyArgs'] tiering_policy: The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. :param pulumi.Input[str] volume_type: The type of volume, currently the only valid value is `ONTAP`. """ pulumi.set(__self__, "size_in_megabytes", size_in_megabytes) pulumi.set(__self__, "storage_virtual_machine_id", storage_virtual_machine_id) + if bypass_snaplock_enterprise_retention is not None: + pulumi.set(__self__, "bypass_snaplock_enterprise_retention", bypass_snaplock_enterprise_retention) + if copy_tags_to_backups is not None: + pulumi.set(__self__, "copy_tags_to_backups", copy_tags_to_backups) if junction_path is not None: pulumi.set(__self__, "junction_path", junction_path) if name is not None: @@ -52,6 +65,10 @@ def __init__(__self__, *, pulumi.set(__self__, "security_style", security_style) if skip_final_backup is not None: pulumi.set(__self__, "skip_final_backup", skip_final_backup) + if snaplock_configuration is not None: + pulumi.set(__self__, "snaplock_configuration", snaplock_configuration) + if snapshot_policy is not None: + pulumi.set(__self__, "snapshot_policy", snapshot_policy) if storage_efficiency_enabled is not None: pulumi.set(__self__, "storage_efficiency_enabled", storage_efficiency_enabled) if tags is not None: @@ -85,6 +102,30 @@ def storage_virtual_machine_id(self) -> pulumi.Input[str]: def storage_virtual_machine_id(self, value: pulumi.Input[str]): pulumi.set(self, "storage_virtual_machine_id", value) + @property + @pulumi.getter(name="bypassSnaplockEnterpriseRetention") + def bypass_snaplock_enterprise_retention(self) -> Optional[pulumi.Input[bool]]: + """ + Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + """ + return pulumi.get(self, "bypass_snaplock_enterprise_retention") + + @bypass_snaplock_enterprise_retention.setter + def bypass_snaplock_enterprise_retention(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "bypass_snaplock_enterprise_retention", value) + + @property + @pulumi.getter(name="copyTagsToBackups") + def copy_tags_to_backups(self) -> Optional[pulumi.Input[bool]]: + """ + A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + """ + return pulumi.get(self, "copy_tags_to_backups") + + @copy_tags_to_backups.setter + def copy_tags_to_backups(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "copy_tags_to_backups", value) + @property @pulumi.getter(name="junctionPath") def junction_path(self) -> Optional[pulumi.Input[str]]: @@ -145,6 +186,30 @@ def skip_final_backup(self) -> Optional[pulumi.Input[bool]]: def skip_final_backup(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "skip_final_backup", value) + @property + @pulumi.getter(name="snaplockConfiguration") + def snaplock_configuration(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']]: + """ + The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + """ + return pulumi.get(self, "snaplock_configuration") + + @snaplock_configuration.setter + def snaplock_configuration(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']]): + pulumi.set(self, "snaplock_configuration", value) + + @property + @pulumi.getter(name="snapshotPolicy") + def snapshot_policy(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + """ + return pulumi.get(self, "snapshot_policy") + + @snapshot_policy.setter + def snapshot_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "snapshot_policy", value) + @property @pulumi.getter(name="storageEfficiencyEnabled") def storage_efficiency_enabled(self) -> Optional[pulumi.Input[bool]]: @@ -172,6 +237,9 @@ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): @property @pulumi.getter(name="tieringPolicy") def tiering_policy(self) -> Optional[pulumi.Input['OntapVolumeTieringPolicyArgs']]: + """ + The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + """ return pulumi.get(self, "tiering_policy") @tiering_policy.setter @@ -195,6 +263,8 @@ def volume_type(self, value: Optional[pulumi.Input[str]]): class _OntapVolumeState: def __init__(__self__, *, arn: Optional[pulumi.Input[str]] = None, + bypass_snaplock_enterprise_retention: Optional[pulumi.Input[bool]] = None, + copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, file_system_id: Optional[pulumi.Input[str]] = None, flexcache_endpoint_type: Optional[pulumi.Input[str]] = None, junction_path: Optional[pulumi.Input[str]] = None, @@ -203,6 +273,8 @@ def __init__(__self__, *, security_style: Optional[pulumi.Input[str]] = None, size_in_megabytes: Optional[pulumi.Input[int]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, + snaplock_configuration: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']] = None, + snapshot_policy: Optional[pulumi.Input[str]] = None, storage_efficiency_enabled: Optional[pulumi.Input[bool]] = None, storage_virtual_machine_id: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -213,6 +285,8 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering OntapVolume resources. :param pulumi.Input[str] arn: Amazon Resource Name of the volune. + :param pulumi.Input[bool] bypass_snaplock_enterprise_retention: Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. :param pulumi.Input[str] file_system_id: Describes the file system for the volume, e.g. `fs-12345679` :param pulumi.Input[str] flexcache_endpoint_type: Specifies the FlexCache endpoint type of the volume, Valid values are `NONE`, `ORIGIN`, `CACHE`. Default value is `NONE`. These can be set by the ONTAP CLI or API and are use with FlexCache feature. :param pulumi.Input[str] junction_path: Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` @@ -221,15 +295,22 @@ def __init__(__self__, *, :param pulumi.Input[str] security_style: Specifies the volume security style, Valid values are `UNIX`, `NTFS`, and `MIXED`. :param pulumi.Input[int] size_in_megabytes: Specifies the size of the volume, in megabytes (MB), that you are creating. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input['OntapVolumeSnaplockConfigurationArgs'] snaplock_configuration: The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + :param pulumi.Input[str] snapshot_policy: Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide :param pulumi.Input[bool] storage_efficiency_enabled: Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. :param pulumi.Input[str] storage_virtual_machine_id: Specifies the storage virtual machine in which to create the volume. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the volume. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + :param pulumi.Input['OntapVolumeTieringPolicyArgs'] tiering_policy: The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. :param pulumi.Input[str] uuid: The Volume's UUID (universally unique identifier). :param pulumi.Input[str] volume_type: The type of volume, currently the only valid value is `ONTAP`. """ if arn is not None: pulumi.set(__self__, "arn", arn) + if bypass_snaplock_enterprise_retention is not None: + pulumi.set(__self__, "bypass_snaplock_enterprise_retention", bypass_snaplock_enterprise_retention) + if copy_tags_to_backups is not None: + pulumi.set(__self__, "copy_tags_to_backups", copy_tags_to_backups) if file_system_id is not None: pulumi.set(__self__, "file_system_id", file_system_id) if flexcache_endpoint_type is not None: @@ -246,6 +327,10 @@ def __init__(__self__, *, pulumi.set(__self__, "size_in_megabytes", size_in_megabytes) if skip_final_backup is not None: pulumi.set(__self__, "skip_final_backup", skip_final_backup) + if snaplock_configuration is not None: + pulumi.set(__self__, "snaplock_configuration", snaplock_configuration) + if snapshot_policy is not None: + pulumi.set(__self__, "snapshot_policy", snapshot_policy) if storage_efficiency_enabled is not None: pulumi.set(__self__, "storage_efficiency_enabled", storage_efficiency_enabled) if storage_virtual_machine_id is not None: @@ -276,6 +361,30 @@ def arn(self) -> Optional[pulumi.Input[str]]: def arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "arn", value) + @property + @pulumi.getter(name="bypassSnaplockEnterpriseRetention") + def bypass_snaplock_enterprise_retention(self) -> Optional[pulumi.Input[bool]]: + """ + Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + """ + return pulumi.get(self, "bypass_snaplock_enterprise_retention") + + @bypass_snaplock_enterprise_retention.setter + def bypass_snaplock_enterprise_retention(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "bypass_snaplock_enterprise_retention", value) + + @property + @pulumi.getter(name="copyTagsToBackups") + def copy_tags_to_backups(self) -> Optional[pulumi.Input[bool]]: + """ + A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + """ + return pulumi.get(self, "copy_tags_to_backups") + + @copy_tags_to_backups.setter + def copy_tags_to_backups(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "copy_tags_to_backups", value) + @property @pulumi.getter(name="fileSystemId") def file_system_id(self) -> Optional[pulumi.Input[str]]: @@ -372,6 +481,30 @@ def skip_final_backup(self) -> Optional[pulumi.Input[bool]]: def skip_final_backup(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "skip_final_backup", value) + @property + @pulumi.getter(name="snaplockConfiguration") + def snaplock_configuration(self) -> Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']]: + """ + The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + """ + return pulumi.get(self, "snaplock_configuration") + + @snaplock_configuration.setter + def snaplock_configuration(self, value: Optional[pulumi.Input['OntapVolumeSnaplockConfigurationArgs']]): + pulumi.set(self, "snaplock_configuration", value) + + @property + @pulumi.getter(name="snapshotPolicy") + def snapshot_policy(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + """ + return pulumi.get(self, "snapshot_policy") + + @snapshot_policy.setter + def snapshot_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "snapshot_policy", value) + @property @pulumi.getter(name="storageEfficiencyEnabled") def storage_efficiency_enabled(self) -> Optional[pulumi.Input[bool]]: @@ -426,6 +559,9 @@ def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]] @property @pulumi.getter(name="tieringPolicy") def tiering_policy(self) -> Optional[pulumi.Input['OntapVolumeTieringPolicyArgs']]: + """ + The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + """ return pulumi.get(self, "tiering_policy") @tiering_policy.setter @@ -462,12 +598,16 @@ class OntapVolume(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + bypass_snaplock_enterprise_retention: Optional[pulumi.Input[bool]] = None, + copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, junction_path: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, ontap_volume_type: Optional[pulumi.Input[str]] = None, security_style: Optional[pulumi.Input[str]] = None, size_in_megabytes: Optional[pulumi.Input[int]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, + snaplock_configuration: Optional[pulumi.Input[pulumi.InputType['OntapVolumeSnaplockConfigurationArgs']]] = None, + snapshot_policy: Optional[pulumi.Input[str]] = None, storage_efficiency_enabled: Optional[pulumi.Input[bool]] = None, storage_virtual_machine_id: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -520,15 +660,20 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] bypass_snaplock_enterprise_retention: Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. :param pulumi.Input[str] junction_path: Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input[str] ontap_volume_type: Specifies the type of volume, valid values are `RW`, `DP`. Default value is `RW`. These can be set by the ONTAP CLI or API. This setting is used as part of migration and replication [Migrating to Amazon FSx for NetApp ONTAP](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/migrating-fsx-ontap.html) :param pulumi.Input[str] security_style: Specifies the volume security style, Valid values are `UNIX`, `NTFS`, and `MIXED`. :param pulumi.Input[int] size_in_megabytes: Specifies the size of the volume, in megabytes (MB), that you are creating. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[pulumi.InputType['OntapVolumeSnaplockConfigurationArgs']] snaplock_configuration: The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + :param pulumi.Input[str] snapshot_policy: Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide :param pulumi.Input[bool] storage_efficiency_enabled: Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. :param pulumi.Input[str] storage_virtual_machine_id: Specifies the storage virtual machine in which to create the volume. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the volume. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[pulumi.InputType['OntapVolumeTieringPolicyArgs']] tiering_policy: The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. :param pulumi.Input[str] volume_type: The type of volume, currently the only valid value is `ONTAP`. """ ... @@ -596,12 +741,16 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + bypass_snaplock_enterprise_retention: Optional[pulumi.Input[bool]] = None, + copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, junction_path: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, ontap_volume_type: Optional[pulumi.Input[str]] = None, security_style: Optional[pulumi.Input[str]] = None, size_in_megabytes: Optional[pulumi.Input[int]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, + snaplock_configuration: Optional[pulumi.Input[pulumi.InputType['OntapVolumeSnaplockConfigurationArgs']]] = None, + snapshot_policy: Optional[pulumi.Input[str]] = None, storage_efficiency_enabled: Optional[pulumi.Input[bool]] = None, storage_virtual_machine_id: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -616,6 +765,8 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = OntapVolumeArgs.__new__(OntapVolumeArgs) + __props__.__dict__["bypass_snaplock_enterprise_retention"] = bypass_snaplock_enterprise_retention + __props__.__dict__["copy_tags_to_backups"] = copy_tags_to_backups __props__.__dict__["junction_path"] = junction_path __props__.__dict__["name"] = name __props__.__dict__["ontap_volume_type"] = ontap_volume_type @@ -624,6 +775,8 @@ def _internal_init(__self__, raise TypeError("Missing required property 'size_in_megabytes'") __props__.__dict__["size_in_megabytes"] = size_in_megabytes __props__.__dict__["skip_final_backup"] = skip_final_backup + __props__.__dict__["snaplock_configuration"] = snaplock_configuration + __props__.__dict__["snapshot_policy"] = snapshot_policy __props__.__dict__["storage_efficiency_enabled"] = storage_efficiency_enabled if storage_virtual_machine_id is None and not opts.urn: raise TypeError("Missing required property 'storage_virtual_machine_id'") @@ -649,6 +802,8 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, arn: Optional[pulumi.Input[str]] = None, + bypass_snaplock_enterprise_retention: Optional[pulumi.Input[bool]] = None, + copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, file_system_id: Optional[pulumi.Input[str]] = None, flexcache_endpoint_type: Optional[pulumi.Input[str]] = None, junction_path: Optional[pulumi.Input[str]] = None, @@ -657,6 +812,8 @@ def get(resource_name: str, security_style: Optional[pulumi.Input[str]] = None, size_in_megabytes: Optional[pulumi.Input[int]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, + snaplock_configuration: Optional[pulumi.Input[pulumi.InputType['OntapVolumeSnaplockConfigurationArgs']]] = None, + snapshot_policy: Optional[pulumi.Input[str]] = None, storage_efficiency_enabled: Optional[pulumi.Input[bool]] = None, storage_virtual_machine_id: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -672,6 +829,8 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arn: Amazon Resource Name of the volune. + :param pulumi.Input[bool] bypass_snaplock_enterprise_retention: Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. :param pulumi.Input[str] file_system_id: Describes the file system for the volume, e.g. `fs-12345679` :param pulumi.Input[str] flexcache_endpoint_type: Specifies the FlexCache endpoint type of the volume, Valid values are `NONE`, `ORIGIN`, `CACHE`. Default value is `NONE`. These can be set by the ONTAP CLI or API and are use with FlexCache feature. :param pulumi.Input[str] junction_path: Specifies the location in the storage virtual machine's namespace where the volume is mounted. The junction_path must have a leading forward slash, such as `/vol3` @@ -680,10 +839,13 @@ def get(resource_name: str, :param pulumi.Input[str] security_style: Specifies the volume security style, Valid values are `UNIX`, `NTFS`, and `MIXED`. :param pulumi.Input[int] size_in_megabytes: Specifies the size of the volume, in megabytes (MB), that you are creating. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the volume is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + :param pulumi.Input[pulumi.InputType['OntapVolumeSnaplockConfigurationArgs']] snaplock_configuration: The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + :param pulumi.Input[str] snapshot_policy: Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide :param pulumi.Input[bool] storage_efficiency_enabled: Set to true to enable deduplication, compression, and compaction storage efficiency features on the volume. :param pulumi.Input[str] storage_virtual_machine_id: Specifies the storage virtual machine in which to create the volume. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the volume. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + :param pulumi.Input[pulumi.InputType['OntapVolumeTieringPolicyArgs']] tiering_policy: The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. :param pulumi.Input[str] uuid: The Volume's UUID (universally unique identifier). :param pulumi.Input[str] volume_type: The type of volume, currently the only valid value is `ONTAP`. """ @@ -692,6 +854,8 @@ def get(resource_name: str, __props__ = _OntapVolumeState.__new__(_OntapVolumeState) __props__.__dict__["arn"] = arn + __props__.__dict__["bypass_snaplock_enterprise_retention"] = bypass_snaplock_enterprise_retention + __props__.__dict__["copy_tags_to_backups"] = copy_tags_to_backups __props__.__dict__["file_system_id"] = file_system_id __props__.__dict__["flexcache_endpoint_type"] = flexcache_endpoint_type __props__.__dict__["junction_path"] = junction_path @@ -700,6 +864,8 @@ def get(resource_name: str, __props__.__dict__["security_style"] = security_style __props__.__dict__["size_in_megabytes"] = size_in_megabytes __props__.__dict__["skip_final_backup"] = skip_final_backup + __props__.__dict__["snaplock_configuration"] = snaplock_configuration + __props__.__dict__["snapshot_policy"] = snapshot_policy __props__.__dict__["storage_efficiency_enabled"] = storage_efficiency_enabled __props__.__dict__["storage_virtual_machine_id"] = storage_virtual_machine_id __props__.__dict__["tags"] = tags @@ -717,6 +883,22 @@ def arn(self) -> pulumi.Output[str]: """ return pulumi.get(self, "arn") + @property + @pulumi.getter(name="bypassSnaplockEnterpriseRetention") + def bypass_snaplock_enterprise_retention(self) -> pulumi.Output[Optional[bool]]: + """ + Setting this to `true` allows a SnapLock administrator to delete an FSx for ONTAP SnapLock Enterprise volume with unexpired write once, read many (WORM) files. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. + """ + return pulumi.get(self, "bypass_snaplock_enterprise_retention") + + @property + @pulumi.getter(name="copyTagsToBackups") + def copy_tags_to_backups(self) -> pulumi.Output[Optional[bool]]: + """ + A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to `false`. + """ + return pulumi.get(self, "copy_tags_to_backups") + @property @pulumi.getter(name="fileSystemId") def file_system_id(self) -> pulumi.Output[str]: @@ -781,6 +963,22 @@ def skip_final_backup(self) -> pulumi.Output[Optional[bool]]: """ return pulumi.get(self, "skip_final_backup") + @property + @pulumi.getter(name="snaplockConfiguration") + def snaplock_configuration(self) -> pulumi.Output[Optional['outputs.OntapVolumeSnaplockConfiguration']]: + """ + The SnapLock configuration for an FSx for ONTAP volume. See SnapLock Configuration below. + """ + return pulumi.get(self, "snaplock_configuration") + + @property + @pulumi.getter(name="snapshotPolicy") + def snapshot_policy(self) -> pulumi.Output[str]: + """ + Specifies the snapshot policy for the volume. See [snapshot policies](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies) in the Amazon FSx ONTAP User Guide + """ + return pulumi.get(self, "snapshot_policy") + @property @pulumi.getter(name="storageEfficiencyEnabled") def storage_efficiency_enabled(self) -> pulumi.Output[Optional[bool]]: @@ -819,6 +1017,9 @@ def tags_all(self) -> pulumi.Output[Mapping[str, str]]: @property @pulumi.getter(name="tieringPolicy") def tiering_policy(self) -> pulumi.Output[Optional['outputs.OntapVolumeTieringPolicy']]: + """ + The data tiering policy for an FSx for ONTAP volume. See Tiering Policy below. + """ return pulumi.get(self, "tiering_policy") @property diff --git a/sdk/python/pulumi_aws/fsx/open_zfs_volume.py b/sdk/python/pulumi_aws/fsx/open_zfs_volume.py index 663309afcea..2b33b3f84fa 100644 --- a/sdk/python/pulumi_aws/fsx/open_zfs_volume.py +++ b/sdk/python/pulumi_aws/fsx/open_zfs_volume.py @@ -19,6 +19,7 @@ def __init__(__self__, *, parent_volume_id: pulumi.Input[str], copy_tags_to_snapshots: Optional[pulumi.Input[bool]] = None, data_compression_type: Optional[pulumi.Input[str]] = None, + delete_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_exports: Optional[pulumi.Input['OpenZfsVolumeNfsExportsArgs']] = None, origin_snapshot: Optional[pulumi.Input['OpenZfsVolumeOriginSnapshotArgs']] = None, @@ -34,6 +35,7 @@ def __init__(__self__, *, :param pulumi.Input[str] parent_volume_id: The volume id of volume that will be the parent volume for the volume being created, this could be the root volume created from the `fsx.OpenZfsFileSystem` resource with the `root_volume_id` or the `id` property of another `fsx.OpenZfsVolume`. :param pulumi.Input[bool] copy_tags_to_snapshots: A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. :param pulumi.Input[str] data_compression_type: Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. + :param pulumi.Input[str] delete_volume_options: Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input['OpenZfsVolumeNfsExportsArgs'] nfs_exports: NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. :param pulumi.Input['OpenZfsVolumeOriginSnapshotArgs'] origin_snapshot: The ARN of the source snapshot to create the volume from. @@ -49,6 +51,8 @@ def __init__(__self__, *, pulumi.set(__self__, "copy_tags_to_snapshots", copy_tags_to_snapshots) if data_compression_type is not None: pulumi.set(__self__, "data_compression_type", data_compression_type) + if delete_volume_options is not None: + pulumi.set(__self__, "delete_volume_options", delete_volume_options) if name is not None: pulumi.set(__self__, "name", name) if nfs_exports is not None: @@ -106,6 +110,18 @@ def data_compression_type(self) -> Optional[pulumi.Input[str]]: def data_compression_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "data_compression_type", value) + @property + @pulumi.getter(name="deleteVolumeOptions") + def delete_volume_options(self) -> Optional[pulumi.Input[str]]: + """ + Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + """ + return pulumi.get(self, "delete_volume_options") + + @delete_volume_options.setter + def delete_volume_options(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "delete_volume_options", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -230,6 +246,7 @@ def __init__(__self__, *, arn: Optional[pulumi.Input[str]] = None, copy_tags_to_snapshots: Optional[pulumi.Input[bool]] = None, data_compression_type: Optional[pulumi.Input[str]] = None, + delete_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_exports: Optional[pulumi.Input['OpenZfsVolumeNfsExportsArgs']] = None, origin_snapshot: Optional[pulumi.Input['OpenZfsVolumeOriginSnapshotArgs']] = None, @@ -247,6 +264,7 @@ def __init__(__self__, *, :param pulumi.Input[str] arn: Amazon Resource Name of the file system. :param pulumi.Input[bool] copy_tags_to_snapshots: A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. :param pulumi.Input[str] data_compression_type: Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. + :param pulumi.Input[str] delete_volume_options: Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input['OpenZfsVolumeNfsExportsArgs'] nfs_exports: NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. :param pulumi.Input['OpenZfsVolumeOriginSnapshotArgs'] origin_snapshot: The ARN of the source snapshot to create the volume from. @@ -265,6 +283,8 @@ def __init__(__self__, *, pulumi.set(__self__, "copy_tags_to_snapshots", copy_tags_to_snapshots) if data_compression_type is not None: pulumi.set(__self__, "data_compression_type", data_compression_type) + if delete_volume_options is not None: + pulumi.set(__self__, "delete_volume_options", delete_volume_options) if name is not None: pulumi.set(__self__, "name", name) if nfs_exports is not None: @@ -329,6 +349,18 @@ def data_compression_type(self) -> Optional[pulumi.Input[str]]: def data_compression_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "data_compression_type", value) + @property + @pulumi.getter(name="deleteVolumeOptions") + def delete_volume_options(self) -> Optional[pulumi.Input[str]]: + """ + Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + """ + return pulumi.get(self, "delete_volume_options") + + @delete_volume_options.setter + def delete_volume_options(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "delete_volume_options", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -481,6 +513,7 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, copy_tags_to_snapshots: Optional[pulumi.Input[bool]] = None, data_compression_type: Optional[pulumi.Input[str]] = None, + delete_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_exports: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeNfsExportsArgs']]] = None, origin_snapshot: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeOriginSnapshotArgs']]] = None, @@ -518,6 +551,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] copy_tags_to_snapshots: A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. :param pulumi.Input[str] data_compression_type: Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. + :param pulumi.Input[str] delete_volume_options: Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input[pulumi.InputType['OpenZfsVolumeNfsExportsArgs']] nfs_exports: NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. :param pulumi.Input[pulumi.InputType['OpenZfsVolumeOriginSnapshotArgs']] origin_snapshot: The ARN of the source snapshot to create the volume from. @@ -573,6 +607,7 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, copy_tags_to_snapshots: Optional[pulumi.Input[bool]] = None, data_compression_type: Optional[pulumi.Input[str]] = None, + delete_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_exports: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeNfsExportsArgs']]] = None, origin_snapshot: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeOriginSnapshotArgs']]] = None, @@ -595,6 +630,7 @@ def _internal_init(__self__, __props__.__dict__["copy_tags_to_snapshots"] = copy_tags_to_snapshots __props__.__dict__["data_compression_type"] = data_compression_type + __props__.__dict__["delete_volume_options"] = delete_volume_options __props__.__dict__["name"] = name __props__.__dict__["nfs_exports"] = nfs_exports __props__.__dict__["origin_snapshot"] = origin_snapshot @@ -625,6 +661,7 @@ def get(resource_name: str, arn: Optional[pulumi.Input[str]] = None, copy_tags_to_snapshots: Optional[pulumi.Input[bool]] = None, data_compression_type: Optional[pulumi.Input[str]] = None, + delete_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_exports: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeNfsExportsArgs']]] = None, origin_snapshot: Optional[pulumi.Input[pulumi.InputType['OpenZfsVolumeOriginSnapshotArgs']]] = None, @@ -647,6 +684,7 @@ def get(resource_name: str, :param pulumi.Input[str] arn: Amazon Resource Name of the file system. :param pulumi.Input[bool] copy_tags_to_snapshots: A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. :param pulumi.Input[str] data_compression_type: Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. + :param pulumi.Input[str] delete_volume_options: Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. :param pulumi.Input[str] name: The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character. :param pulumi.Input[pulumi.InputType['OpenZfsVolumeNfsExportsArgs']] nfs_exports: NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. :param pulumi.Input[pulumi.InputType['OpenZfsVolumeOriginSnapshotArgs']] origin_snapshot: The ARN of the source snapshot to create the volume from. @@ -666,6 +704,7 @@ def get(resource_name: str, __props__.__dict__["arn"] = arn __props__.__dict__["copy_tags_to_snapshots"] = copy_tags_to_snapshots __props__.__dict__["data_compression_type"] = data_compression_type + __props__.__dict__["delete_volume_options"] = delete_volume_options __props__.__dict__["name"] = name __props__.__dict__["nfs_exports"] = nfs_exports __props__.__dict__["origin_snapshot"] = origin_snapshot @@ -704,6 +743,14 @@ def data_compression_type(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "data_compression_type") + @property + @pulumi.getter(name="deleteVolumeOptions") + def delete_volume_options(self) -> pulumi.Output[Optional[str]]: + """ + Whether to delete all child volumes and snapshots. Valid values: `DELETE_CHILD_VOLUMES_AND_SNAPSHOTS`. This configuration must be applied separately before attempting to delete the resource to have the desired behavior.. + """ + return pulumi.get(self, "delete_volume_options") + @property @pulumi.getter def name(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_aws/fsx/outputs.py b/sdk/python/pulumi_aws/fsx/outputs.py index 6db3b2a964d..d035e8c0e8f 100644 --- a/sdk/python/pulumi_aws/fsx/outputs.py +++ b/sdk/python/pulumi_aws/fsx/outputs.py @@ -32,6 +32,12 @@ 'OntapStorageVirtualMachineEndpointManagement', 'OntapStorageVirtualMachineEndpointNf', 'OntapStorageVirtualMachineEndpointSmb', + 'OntapVolumeSnaplockConfiguration', + 'OntapVolumeSnaplockConfigurationAutocommitPeriod', + 'OntapVolumeSnaplockConfigurationRetentionPeriod', + 'OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention', + 'OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention', + 'OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention', 'OntapVolumeTieringPolicy', 'OpenZfsFileSystemDiskIopsConfiguration', 'OpenZfsFileSystemRootVolumeConfiguration', @@ -1142,6 +1148,299 @@ def ip_addresses(self) -> Optional[Sequence[str]]: return pulumi.get(self, "ip_addresses") +@pulumi.output_type +class OntapVolumeSnaplockConfiguration(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "snaplockType": + suggest = "snaplock_type" + elif key == "auditLogVolume": + suggest = "audit_log_volume" + elif key == "autocommitPeriod": + suggest = "autocommit_period" + elif key == "privilegedDelete": + suggest = "privileged_delete" + elif key == "retentionPeriod": + suggest = "retention_period" + elif key == "volumeAppendModeEnabled": + suggest = "volume_append_mode_enabled" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OntapVolumeSnaplockConfiguration. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OntapVolumeSnaplockConfiguration.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OntapVolumeSnaplockConfiguration.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + snaplock_type: str, + audit_log_volume: Optional[bool] = None, + autocommit_period: Optional['outputs.OntapVolumeSnaplockConfigurationAutocommitPeriod'] = None, + privileged_delete: Optional[str] = None, + retention_period: Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriod'] = None, + volume_append_mode_enabled: Optional[bool] = None): + """ + :param str snaplock_type: Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + :param bool audit_log_volume: Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + :param 'OntapVolumeSnaplockConfigurationAutocommitPeriodArgs' autocommit_period: The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + :param str privileged_delete: Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + :param 'OntapVolumeSnaplockConfigurationRetentionPeriodArgs' retention_period: The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + :param bool volume_append_mode_enabled: Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + pulumi.set(__self__, "snaplock_type", snaplock_type) + if audit_log_volume is not None: + pulumi.set(__self__, "audit_log_volume", audit_log_volume) + if autocommit_period is not None: + pulumi.set(__self__, "autocommit_period", autocommit_period) + if privileged_delete is not None: + pulumi.set(__self__, "privileged_delete", privileged_delete) + if retention_period is not None: + pulumi.set(__self__, "retention_period", retention_period) + if volume_append_mode_enabled is not None: + pulumi.set(__self__, "volume_append_mode_enabled", volume_append_mode_enabled) + + @property + @pulumi.getter(name="snaplockType") + def snaplock_type(self) -> str: + """ + Specifies the retention mode of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Valid values: `COMPLIANCE`, `ENTERPRISE`. + """ + return pulumi.get(self, "snaplock_type") + + @property + @pulumi.getter(name="auditLogVolume") + def audit_log_volume(self) -> Optional[bool]: + """ + Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + return pulumi.get(self, "audit_log_volume") + + @property + @pulumi.getter(name="autocommitPeriod") + def autocommit_period(self) -> Optional['outputs.OntapVolumeSnaplockConfigurationAutocommitPeriod']: + """ + The configuration object for setting the autocommit period of files in an FSx for ONTAP SnapLock volume. See Autocommit Period below. + """ + return pulumi.get(self, "autocommit_period") + + @property + @pulumi.getter(name="privilegedDelete") + def privileged_delete(self) -> Optional[str]: + """ + Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Valid values: `DISABLED`, `ENABLED`, `PERMANENTLY_DISABLED`. The default value is `DISABLED`. + """ + return pulumi.get(self, "privileged_delete") + + @property + @pulumi.getter(name="retentionPeriod") + def retention_period(self) -> Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriod']: + """ + The retention period of an FSx for ONTAP SnapLock volume. See SnapLock Retention Period below. + """ + return pulumi.get(self, "retention_period") + + @property + @pulumi.getter(name="volumeAppendModeEnabled") + def volume_append_mode_enabled(self) -> Optional[bool]: + """ + Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. The default value is `false`. + """ + return pulumi.get(self, "volume_append_mode_enabled") + + +@pulumi.output_type +class OntapVolumeSnaplockConfigurationAutocommitPeriod(dict): + def __init__(__self__, *, + type: Optional[str] = None, + value: Optional[int] = None): + """ + :param str type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param int value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[str]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter + def value(self) -> Optional[int]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class OntapVolumeSnaplockConfigurationRetentionPeriod(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "defaultRetention": + suggest = "default_retention" + elif key == "maximumRetention": + suggest = "maximum_retention" + elif key == "minimumRetention": + suggest = "minimum_retention" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OntapVolumeSnaplockConfigurationRetentionPeriod. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OntapVolumeSnaplockConfigurationRetentionPeriod.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OntapVolumeSnaplockConfigurationRetentionPeriod.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + default_retention: Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention'] = None, + maximum_retention: Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention'] = None, + minimum_retention: Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention'] = None): + """ + :param 'OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetentionArgs' default_retention: The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + :param 'OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetentionArgs' maximum_retention: The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + :param 'OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetentionArgs' minimum_retention: The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + if default_retention is not None: + pulumi.set(__self__, "default_retention", default_retention) + if maximum_retention is not None: + pulumi.set(__self__, "maximum_retention", maximum_retention) + if minimum_retention is not None: + pulumi.set(__self__, "minimum_retention", minimum_retention) + + @property + @pulumi.getter(name="defaultRetention") + def default_retention(self) -> Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention']: + """ + The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period. See Retention Period below. + """ + return pulumi.get(self, "default_retention") + + @property + @pulumi.getter(name="maximumRetention") + def maximum_retention(self) -> Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention']: + """ + The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + return pulumi.get(self, "maximum_retention") + + @property + @pulumi.getter(name="minimumRetention") + def minimum_retention(self) -> Optional['outputs.OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention']: + """ + The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. See Retention Period below. + """ + return pulumi.get(self, "minimum_retention") + + +@pulumi.output_type +class OntapVolumeSnaplockConfigurationRetentionPeriodDefaultRetention(dict): + def __init__(__self__, *, + type: Optional[str] = None, + value: Optional[int] = None): + """ + :param str type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param int value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[str]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter + def value(self) -> Optional[int]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class OntapVolumeSnaplockConfigurationRetentionPeriodMaximumRetention(dict): + def __init__(__self__, *, + type: Optional[str] = None, + value: Optional[int] = None): + """ + :param str type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param int value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[str]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter + def value(self) -> Optional[int]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class OntapVolumeSnaplockConfigurationRetentionPeriodMinimumRetention(dict): + def __init__(__self__, *, + type: Optional[str] = None, + value: Optional[int] = None): + """ + :param str type: The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + :param int value: The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + if type is not None: + pulumi.set(__self__, "type", type) + if value is not None: + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def type(self) -> Optional[str]: + """ + The type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to `NONE` disables autocommit. Valid values: `MINUTES`, `HOURS`, `DAYS`, `MONTHS`, `YEARS`, `NONE`. + """ + return pulumi.get(self, "type") + + @property + @pulumi.getter + def value(self) -> Optional[int]: + """ + The amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. + """ + return pulumi.get(self, "value") + + @pulumi.output_type class OntapVolumeTieringPolicy(dict): @staticmethod diff --git a/sdk/python/pulumi_aws/lex/__init__.py b/sdk/python/pulumi_aws/lex/__init__.py index 029aa7471c4..475ef9f027e 100644 --- a/sdk/python/pulumi_aws/lex/__init__.py +++ b/sdk/python/pulumi_aws/lex/__init__.py @@ -13,5 +13,6 @@ from .get_slot_type import * from .intent import * from .slot_type import * +from .v2models_bot import * from ._inputs import * from . import outputs diff --git a/sdk/python/pulumi_aws/lex/_inputs.py b/sdk/python/pulumi_aws/lex/_inputs.py index 63945928472..22bdc40140b 100644 --- a/sdk/python/pulumi_aws/lex/_inputs.py +++ b/sdk/python/pulumi_aws/lex/_inputs.py @@ -35,6 +35,9 @@ 'IntentSlotValueElicitationPromptArgs', 'IntentSlotValueElicitationPromptMessageArgs', 'SlotTypeEnumerationValueArgs', + 'V2modelsBotDataPrivacyArgs', + 'V2modelsBotMemberArgs', + 'V2modelsBotTimeoutsArgs', ] @pulumi.input_type @@ -1425,3 +1428,148 @@ def synonyms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "synonyms", value) +@pulumi.input_type +class V2modelsBotDataPrivacyArgs: + def __init__(__self__, *, + child_directed: pulumi.Input[bool]): + """ + :param pulumi.Input[bool] child_directed: (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + """ + pulumi.set(__self__, "child_directed", child_directed) + + @property + @pulumi.getter(name="childDirected") + def child_directed(self) -> pulumi.Input[bool]: + """ + (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + """ + return pulumi.get(self, "child_directed") + + @child_directed.setter + def child_directed(self, value: pulumi.Input[bool]): + pulumi.set(self, "child_directed", value) + + +@pulumi.input_type +class V2modelsBotMemberArgs: + def __init__(__self__, *, + alias_id: pulumi.Input[str], + alias_name: pulumi.Input[str], + id: pulumi.Input[str], + name: pulumi.Input[str], + version: pulumi.Input[str]): + """ + :param pulumi.Input[str] alias_id: (Required) - Alias ID of a bot that is a member of this network of bots. + :param pulumi.Input[str] alias_name: (Required) - Alias name of a bot that is a member of this network of bots. + :param pulumi.Input[str] id: (Required) - Unique ID of a bot that is a member of this network of bots. + :param pulumi.Input[str] name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param pulumi.Input[str] version: (Required) - Version of a bot that is a member of this network of bots. + """ + pulumi.set(__self__, "alias_id", alias_id) + pulumi.set(__self__, "alias_name", alias_name) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "version", version) + + @property + @pulumi.getter(name="aliasId") + def alias_id(self) -> pulumi.Input[str]: + """ + (Required) - Alias ID of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "alias_id") + + @alias_id.setter + def alias_id(self, value: pulumi.Input[str]): + pulumi.set(self, "alias_id", value) + + @property + @pulumi.getter(name="aliasName") + def alias_name(self) -> pulumi.Input[str]: + """ + (Required) - Alias name of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "alias_name") + + @alias_name.setter + def alias_name(self, value: pulumi.Input[str]): + pulumi.set(self, "alias_name", value) + + @property + @pulumi.getter + def id(self) -> pulumi.Input[str]: + """ + (Required) - Unique ID of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "id") + + @id.setter + def id(self, value: pulumi.Input[str]): + pulumi.set(self, "id", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def version(self) -> pulumi.Input[str]: + """ + (Required) - Version of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "version") + + @version.setter + def version(self, value: pulumi.Input[str]): + pulumi.set(self, "version", value) + + +@pulumi.input_type +class V2modelsBotTimeoutsArgs: + def __init__(__self__, *, + create: Optional[pulumi.Input[str]] = None, + delete: Optional[pulumi.Input[str]] = None, + update: Optional[pulumi.Input[str]] = None): + if create is not None: + pulumi.set(__self__, "create", create) + if delete is not None: + pulumi.set(__self__, "delete", delete) + if update is not None: + pulumi.set(__self__, "update", update) + + @property + @pulumi.getter + def create(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "create") + + @create.setter + def create(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "create", value) + + @property + @pulumi.getter + def delete(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "delete") + + @delete.setter + def delete(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "delete", value) + + @property + @pulumi.getter + def update(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "update") + + @update.setter + def update(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "update", value) + + diff --git a/sdk/python/pulumi_aws/lex/outputs.py b/sdk/python/pulumi_aws/lex/outputs.py index 23e4c994cc6..a1160acb49d 100644 --- a/sdk/python/pulumi_aws/lex/outputs.py +++ b/sdk/python/pulumi_aws/lex/outputs.py @@ -36,6 +36,9 @@ 'IntentSlotValueElicitationPrompt', 'IntentSlotValueElicitationPromptMessage', 'SlotTypeEnumerationValue', + 'V2modelsBotDataPrivacy', + 'V2modelsBotMember', + 'V2modelsBotTimeouts', 'GetSlotTypeEnumerationValueResult', ] @@ -1591,6 +1594,151 @@ def synonyms(self) -> Optional[Sequence[str]]: return pulumi.get(self, "synonyms") +@pulumi.output_type +class V2modelsBotDataPrivacy(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "childDirected": + suggest = "child_directed" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in V2modelsBotDataPrivacy. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + V2modelsBotDataPrivacy.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + V2modelsBotDataPrivacy.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + child_directed: bool): + """ + :param bool child_directed: (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + """ + pulumi.set(__self__, "child_directed", child_directed) + + @property + @pulumi.getter(name="childDirected") + def child_directed(self) -> bool: + """ + (Required) - For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying true or false in the childDirected field. + """ + return pulumi.get(self, "child_directed") + + +@pulumi.output_type +class V2modelsBotMember(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "aliasId": + suggest = "alias_id" + elif key == "aliasName": + suggest = "alias_name" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in V2modelsBotMember. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + V2modelsBotMember.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + V2modelsBotMember.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + alias_id: str, + alias_name: str, + id: str, + name: str, + version: str): + """ + :param str alias_id: (Required) - Alias ID of a bot that is a member of this network of bots. + :param str alias_name: (Required) - Alias name of a bot that is a member of this network of bots. + :param str id: (Required) - Unique ID of a bot that is a member of this network of bots. + :param str name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param str version: (Required) - Version of a bot that is a member of this network of bots. + """ + pulumi.set(__self__, "alias_id", alias_id) + pulumi.set(__self__, "alias_name", alias_name) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "version", version) + + @property + @pulumi.getter(name="aliasId") + def alias_id(self) -> str: + """ + (Required) - Alias ID of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "alias_id") + + @property + @pulumi.getter(name="aliasName") + def alias_name(self) -> str: + """ + (Required) - Alias name of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "alias_name") + + @property + @pulumi.getter + def id(self) -> str: + """ + (Required) - Unique ID of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def version(self) -> str: + """ + (Required) - Version of a bot that is a member of this network of bots. + """ + return pulumi.get(self, "version") + + +@pulumi.output_type +class V2modelsBotTimeouts(dict): + def __init__(__self__, *, + create: Optional[str] = None, + delete: Optional[str] = None, + update: Optional[str] = None): + if create is not None: + pulumi.set(__self__, "create", create) + if delete is not None: + pulumi.set(__self__, "delete", delete) + if update is not None: + pulumi.set(__self__, "update", update) + + @property + @pulumi.getter + def create(self) -> Optional[str]: + return pulumi.get(self, "create") + + @property + @pulumi.getter + def delete(self) -> Optional[str]: + return pulumi.get(self, "delete") + + @property + @pulumi.getter + def update(self) -> Optional[str]: + return pulumi.get(self, "update") + + @pulumi.output_type class GetSlotTypeEnumerationValueResult(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_aws/lex/v2models_bot.py b/sdk/python/pulumi_aws/lex/v2models_bot.py new file mode 100644 index 00000000000..1cacf8c9810 --- /dev/null +++ b/sdk/python/pulumi_aws/lex/v2models_bot.py @@ -0,0 +1,644 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['V2modelsBotArgs', 'V2modelsBot'] + +@pulumi.input_type +class V2modelsBotArgs: + def __init__(__self__, *, + idle_session_ttl_in_seconds: pulumi.Input[int], + role_arn: pulumi.Input[str], + data_privacies: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]] = None, + description: Optional[pulumi.Input[str]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]] = None, + name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + test_bot_alias_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + timeouts: Optional[pulumi.Input['V2modelsBotTimeoutsArgs']] = None, + type: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a V2modelsBot resource. + :param pulumi.Input[int] idle_session_ttl_in_seconds: Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + :param pulumi.Input[str] role_arn: ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + :param pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]] data_privacies: Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + :param pulumi.Input[str] description: Description of the bot. It appears in lists to help you identify a particular bot. + :param pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]] members: List of bot members in a network to be created. See `bot_members`. + :param pulumi.Input[str] name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] test_bot_alias_tags: List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + pulumi.set(__self__, "idle_session_ttl_in_seconds", idle_session_ttl_in_seconds) + pulumi.set(__self__, "role_arn", role_arn) + if data_privacies is not None: + pulumi.set(__self__, "data_privacies", data_privacies) + if description is not None: + pulumi.set(__self__, "description", description) + if members is not None: + pulumi.set(__self__, "members", members) + if name is not None: + pulumi.set(__self__, "name", name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if test_bot_alias_tags is not None: + pulumi.set(__self__, "test_bot_alias_tags", test_bot_alias_tags) + if timeouts is not None: + pulumi.set(__self__, "timeouts", timeouts) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="idleSessionTtlInSeconds") + def idle_session_ttl_in_seconds(self) -> pulumi.Input[int]: + """ + Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + """ + return pulumi.get(self, "idle_session_ttl_in_seconds") + + @idle_session_ttl_in_seconds.setter + def idle_session_ttl_in_seconds(self, value: pulumi.Input[int]): + pulumi.set(self, "idle_session_ttl_in_seconds", value) + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> pulumi.Input[str]: + """ + ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + """ + return pulumi.get(self, "role_arn") + + @role_arn.setter + def role_arn(self, value: pulumi.Input[str]): + pulumi.set(self, "role_arn", value) + + @property + @pulumi.getter(name="dataPrivacies") + def data_privacies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]]: + """ + Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + """ + return pulumi.get(self, "data_privacies") + + @data_privacies.setter + def data_privacies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]]): + pulumi.set(self, "data_privacies", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + Description of the bot. It appears in lists to help you identify a particular bot. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]]: + """ + List of bot members in a network to be created. See `bot_members`. + """ + return pulumi.get(self, "members") + + @members.setter + def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]]): + pulumi.set(self, "members", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="testBotAliasTags") + def test_bot_alias_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + return pulumi.get(self, "test_bot_alias_tags") + + @test_bot_alias_tags.setter + def test_bot_alias_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "test_bot_alias_tags", value) + + @property + @pulumi.getter + def timeouts(self) -> Optional[pulumi.Input['V2modelsBotTimeoutsArgs']]: + return pulumi.get(self, "timeouts") + + @timeouts.setter + def timeouts(self, value: Optional[pulumi.Input['V2modelsBotTimeoutsArgs']]): + pulumi.set(self, "timeouts", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + +@pulumi.input_type +class _V2modelsBotState: + def __init__(__self__, *, + arn: Optional[pulumi.Input[str]] = None, + data_privacies: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]] = None, + description: Optional[pulumi.Input[str]] = None, + idle_session_ttl_in_seconds: Optional[pulumi.Input[int]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]] = None, + name: Optional[pulumi.Input[str]] = None, + role_arn: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + test_bot_alias_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + timeouts: Optional[pulumi.Input['V2modelsBotTimeoutsArgs']] = None, + type: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering V2modelsBot resources. + :param pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]] data_privacies: Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + :param pulumi.Input[str] description: Description of the bot. It appears in lists to help you identify a particular bot. + :param pulumi.Input[int] idle_session_ttl_in_seconds: Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + :param pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]] members: List of bot members in a network to be created. See `bot_members`. + :param pulumi.Input[str] name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param pulumi.Input[str] role_arn: ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] test_bot_alias_tags: List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + if arn is not None: + pulumi.set(__self__, "arn", arn) + if data_privacies is not None: + pulumi.set(__self__, "data_privacies", data_privacies) + if description is not None: + pulumi.set(__self__, "description", description) + if idle_session_ttl_in_seconds is not None: + pulumi.set(__self__, "idle_session_ttl_in_seconds", idle_session_ttl_in_seconds) + if members is not None: + pulumi.set(__self__, "members", members) + if name is not None: + pulumi.set(__self__, "name", name) + if role_arn is not None: + pulumi.set(__self__, "role_arn", role_arn) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tags_all is not None: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + if tags_all is not None: + pulumi.set(__self__, "tags_all", tags_all) + if test_bot_alias_tags is not None: + pulumi.set(__self__, "test_bot_alias_tags", test_bot_alias_tags) + if timeouts is not None: + pulumi.set(__self__, "timeouts", timeouts) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def arn(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "arn", value) + + @property + @pulumi.getter(name="dataPrivacies") + def data_privacies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]]: + """ + Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + """ + return pulumi.get(self, "data_privacies") + + @data_privacies.setter + def data_privacies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotDataPrivacyArgs']]]]): + pulumi.set(self, "data_privacies", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + Description of the bot. It appears in lists to help you identify a particular bot. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="idleSessionTtlInSeconds") + def idle_session_ttl_in_seconds(self) -> Optional[pulumi.Input[int]]: + """ + Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + """ + return pulumi.get(self, "idle_session_ttl_in_seconds") + + @idle_session_ttl_in_seconds.setter + def idle_session_ttl_in_seconds(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "idle_session_ttl_in_seconds", value) + + @property + @pulumi.getter + def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]]: + """ + List of bot members in a network to be created. See `bot_members`. + """ + return pulumi.get(self, "members") + + @members.setter + def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['V2modelsBotMemberArgs']]]]): + pulumi.set(self, "members", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> Optional[pulumi.Input[str]]: + """ + ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + """ + return pulumi.get(self, "role_arn") + + @role_arn.setter + def role_arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "role_arn", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @tags_all.setter + def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags_all", value) + + @property + @pulumi.getter(name="testBotAliasTags") + def test_bot_alias_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + return pulumi.get(self, "test_bot_alias_tags") + + @test_bot_alias_tags.setter + def test_bot_alias_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "test_bot_alias_tags", value) + + @property + @pulumi.getter + def timeouts(self) -> Optional[pulumi.Input['V2modelsBotTimeoutsArgs']]: + return pulumi.get(self, "timeouts") + + @timeouts.setter + def timeouts(self, value: Optional[pulumi.Input['V2modelsBotTimeoutsArgs']]): + pulumi.set(self, "timeouts", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + +class V2modelsBot(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + data_privacies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotDataPrivacyArgs']]]]] = None, + description: Optional[pulumi.Input[str]] = None, + idle_session_ttl_in_seconds: Optional[pulumi.Input[int]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotMemberArgs']]]]] = None, + name: Optional[pulumi.Input[str]] = None, + role_arn: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + test_bot_alias_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['V2modelsBotTimeoutsArgs']]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Resource for managing an AWS Lex V2 Models Bot. + + ## Example Usage + ### Basic Usage + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.lex.V2modelsBot("example", + data_privacies=[aws.lex.V2modelsBotDataPrivacyArgs( + child_directed="boolean", + )], + idle_session_ttl_in_seconds=10, + role_arn="bot_example_arn") + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { + + to = aws_lexv2models_bot.example + + id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotDataPrivacyArgs']]]] data_privacies: Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + :param pulumi.Input[str] description: Description of the bot. It appears in lists to help you identify a particular bot. + :param pulumi.Input[int] idle_session_ttl_in_seconds: Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotMemberArgs']]]] members: List of bot members in a network to be created. See `bot_members`. + :param pulumi.Input[str] name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param pulumi.Input[str] role_arn: ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] test_bot_alias_tags: List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: V2modelsBotArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Resource for managing an AWS Lex V2 Models Bot. + + ## Example Usage + ### Basic Usage + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.lex.V2modelsBot("example", + data_privacies=[aws.lex.V2modelsBotDataPrivacyArgs( + child_directed="boolean", + )], + idle_session_ttl_in_seconds=10, + role_arn="bot_example_arn") + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For exampleterraform import { + + to = aws_lexv2models_bot.example + + id = "bot-id-12345678" } Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For exampleconsole % TODO import aws_lexv2models_bot.example bot-id-12345678 + + :param str resource_name: The name of the resource. + :param V2modelsBotArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(V2modelsBotArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + data_privacies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotDataPrivacyArgs']]]]] = None, + description: Optional[pulumi.Input[str]] = None, + idle_session_ttl_in_seconds: Optional[pulumi.Input[int]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotMemberArgs']]]]] = None, + name: Optional[pulumi.Input[str]] = None, + role_arn: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + test_bot_alias_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['V2modelsBotTimeoutsArgs']]] = None, + type: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = V2modelsBotArgs.__new__(V2modelsBotArgs) + + __props__.__dict__["data_privacies"] = data_privacies + __props__.__dict__["description"] = description + if idle_session_ttl_in_seconds is None and not opts.urn: + raise TypeError("Missing required property 'idle_session_ttl_in_seconds'") + __props__.__dict__["idle_session_ttl_in_seconds"] = idle_session_ttl_in_seconds + __props__.__dict__["members"] = members + __props__.__dict__["name"] = name + if role_arn is None and not opts.urn: + raise TypeError("Missing required property 'role_arn'") + __props__.__dict__["role_arn"] = role_arn + __props__.__dict__["tags"] = tags + __props__.__dict__["test_bot_alias_tags"] = test_bot_alias_tags + __props__.__dict__["timeouts"] = timeouts + __props__.__dict__["type"] = type + __props__.__dict__["arn"] = None + __props__.__dict__["tags_all"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["tagsAll"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(V2modelsBot, __self__).__init__( + 'aws:lex/v2modelsBot:V2modelsBot', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + arn: Optional[pulumi.Input[str]] = None, + data_privacies: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotDataPrivacyArgs']]]]] = None, + description: Optional[pulumi.Input[str]] = None, + idle_session_ttl_in_seconds: Optional[pulumi.Input[int]] = None, + members: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotMemberArgs']]]]] = None, + name: Optional[pulumi.Input[str]] = None, + role_arn: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + test_bot_alias_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['V2modelsBotTimeoutsArgs']]] = None, + type: Optional[pulumi.Input[str]] = None) -> 'V2modelsBot': + """ + Get an existing V2modelsBot resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotDataPrivacyArgs']]]] data_privacies: Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + :param pulumi.Input[str] description: Description of the bot. It appears in lists to help you identify a particular bot. + :param pulumi.Input[int] idle_session_ttl_in_seconds: Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['V2modelsBotMemberArgs']]]] members: List of bot members in a network to be created. See `bot_members`. + :param pulumi.Input[str] name: Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + :param pulumi.Input[str] role_arn: ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] test_bot_alias_tags: List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _V2modelsBotState.__new__(_V2modelsBotState) + + __props__.__dict__["arn"] = arn + __props__.__dict__["data_privacies"] = data_privacies + __props__.__dict__["description"] = description + __props__.__dict__["idle_session_ttl_in_seconds"] = idle_session_ttl_in_seconds + __props__.__dict__["members"] = members + __props__.__dict__["name"] = name + __props__.__dict__["role_arn"] = role_arn + __props__.__dict__["tags"] = tags + __props__.__dict__["tags_all"] = tags_all + __props__.__dict__["test_bot_alias_tags"] = test_bot_alias_tags + __props__.__dict__["timeouts"] = timeouts + __props__.__dict__["type"] = type + return V2modelsBot(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def arn(self) -> pulumi.Output[str]: + return pulumi.get(self, "arn") + + @property + @pulumi.getter(name="dataPrivacies") + def data_privacies(self) -> pulumi.Output[Optional[Sequence['outputs.V2modelsBotDataPrivacy']]]: + """ + Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy` + """ + return pulumi.get(self, "data_privacies") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + Description of the bot. It appears in lists to help you identify a particular bot. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="idleSessionTtlInSeconds") + def idle_session_ttl_in_seconds(self) -> pulumi.Output[int]: + """ + Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + """ + return pulumi.get(self, "idle_session_ttl_in_seconds") + + @property + @pulumi.getter + def members(self) -> pulumi.Output[Optional[Sequence['outputs.V2modelsBotMember']]]: + """ + List of bot members in a network to be created. See `bot_members`. + """ + return pulumi.get(self, "members") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="roleArn") + def role_arn(self) -> pulumi.Output[str]: + """ + ARN of an IAM role that has permission to access the bot. + + The following arguments are optional: + """ + return pulumi.get(self, "role_arn") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> pulumi.Output[Mapping[str, str]]: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @property + @pulumi.getter(name="testBotAliasTags") + def test_bot_alias_tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + List of tags to add to the test alias for a bot. You can only add tags when you create a bot. + """ + return pulumi.get(self, "test_bot_alias_tags") + + @property + @pulumi.getter + def timeouts(self) -> pulumi.Output[Optional['outputs.V2modelsBotTimeouts']]: + return pulumi.get(self, "timeouts") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + return pulumi.get(self, "type") + diff --git a/sdk/python/pulumi_aws/lightsail/bucket.py b/sdk/python/pulumi_aws/lightsail/bucket.py index 9eef28f8ab0..4017cfd711c 100644 --- a/sdk/python/pulumi_aws/lightsail/bucket.py +++ b/sdk/python/pulumi_aws/lightsail/bucket.py @@ -15,15 +15,19 @@ class BucketArgs: def __init__(__self__, *, bundle_id: pulumi.Input[str], + force_delete: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a Bucket resource. :param pulumi.Input[str] bundle_id: The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. + :param pulumi.Input[bool] force_delete: Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. :param pulumi.Input[str] name: The name for the bucket. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ pulumi.set(__self__, "bundle_id", bundle_id) + if force_delete is not None: + pulumi.set(__self__, "force_delete", force_delete) if name is not None: pulumi.set(__self__, "name", name) if tags is not None: @@ -41,6 +45,18 @@ def bundle_id(self) -> pulumi.Input[str]: def bundle_id(self, value: pulumi.Input[str]): pulumi.set(self, "bundle_id", value) + @property + @pulumi.getter(name="forceDelete") + def force_delete(self) -> Optional[pulumi.Input[bool]]: + """ + Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + """ + return pulumi.get(self, "force_delete") + + @force_delete.setter + def force_delete(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "force_delete", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -73,6 +89,7 @@ def __init__(__self__, *, availability_zone: Optional[pulumi.Input[str]] = None, bundle_id: Optional[pulumi.Input[str]] = None, created_at: Optional[pulumi.Input[str]] = None, + force_delete: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, support_code: Optional[pulumi.Input[str]] = None, @@ -85,6 +102,7 @@ def __init__(__self__, *, :param pulumi.Input[str] availability_zone: The resource Availability Zone. Follows the format us-east-2a (case-sensitive). :param pulumi.Input[str] bundle_id: The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. :param pulumi.Input[str] created_at: The timestamp when the bucket was created. + :param pulumi.Input[bool] force_delete: Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. :param pulumi.Input[str] name: The name for the bucket. :param pulumi.Input[str] region: The Amazon Web Services Region name. :param pulumi.Input[str] support_code: The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily. @@ -99,6 +117,8 @@ def __init__(__self__, *, pulumi.set(__self__, "bundle_id", bundle_id) if created_at is not None: pulumi.set(__self__, "created_at", created_at) + if force_delete is not None: + pulumi.set(__self__, "force_delete", force_delete) if name is not None: pulumi.set(__self__, "name", name) if region is not None: @@ -163,6 +183,18 @@ def created_at(self) -> Optional[pulumi.Input[str]]: def created_at(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "created_at", value) + @property + @pulumi.getter(name="forceDelete") + def force_delete(self) -> Optional[pulumi.Input[bool]]: + """ + Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + """ + return pulumi.get(self, "force_delete") + + @force_delete.setter + def force_delete(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "force_delete", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -242,6 +274,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, bundle_id: Optional[pulumi.Input[str]] = None, + force_delete: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None): @@ -268,6 +301,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] bundle_id: The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. + :param pulumi.Input[bool] force_delete: Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. :param pulumi.Input[str] name: The name for the bucket. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. """ @@ -313,6 +347,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, bundle_id: Optional[pulumi.Input[str]] = None, + force_delete: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None): @@ -327,6 +362,7 @@ def _internal_init(__self__, if bundle_id is None and not opts.urn: raise TypeError("Missing required property 'bundle_id'") __props__.__dict__["bundle_id"] = bundle_id + __props__.__dict__["force_delete"] = force_delete __props__.__dict__["name"] = name __props__.__dict__["tags"] = tags __props__.__dict__["arn"] = None @@ -352,6 +388,7 @@ def get(resource_name: str, availability_zone: Optional[pulumi.Input[str]] = None, bundle_id: Optional[pulumi.Input[str]] = None, created_at: Optional[pulumi.Input[str]] = None, + force_delete: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, support_code: Optional[pulumi.Input[str]] = None, @@ -369,6 +406,7 @@ def get(resource_name: str, :param pulumi.Input[str] availability_zone: The resource Availability Zone. Follows the format us-east-2a (case-sensitive). :param pulumi.Input[str] bundle_id: The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the [get-bucket-bundles](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-bundles.html) cli command to get a list of bundle IDs that you can specify. :param pulumi.Input[str] created_at: The timestamp when the bucket was created. + :param pulumi.Input[bool] force_delete: Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. :param pulumi.Input[str] name: The name for the bucket. :param pulumi.Input[str] region: The Amazon Web Services Region name. :param pulumi.Input[str] support_code: The support code for the resource. Include this code in your email to support when you have questions about a resource in Lightsail. This code enables our support team to look up your Lightsail information more easily. @@ -383,6 +421,7 @@ def get(resource_name: str, __props__.__dict__["availability_zone"] = availability_zone __props__.__dict__["bundle_id"] = bundle_id __props__.__dict__["created_at"] = created_at + __props__.__dict__["force_delete"] = force_delete __props__.__dict__["name"] = name __props__.__dict__["region"] = region __props__.__dict__["support_code"] = support_code @@ -423,6 +462,14 @@ def created_at(self) -> pulumi.Output[str]: """ return pulumi.get(self, "created_at") + @property + @pulumi.getter(name="forceDelete") + def force_delete(self) -> pulumi.Output[Optional[bool]]: + """ + Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty. + """ + return pulumi.get(self, "force_delete") + @property @pulumi.getter def name(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_aws/opensearch/_inputs.py b/sdk/python/pulumi_aws/opensearch/_inputs.py index 0516f92c535..11bb183ad2c 100644 --- a/sdk/python/pulumi_aws/opensearch/_inputs.py +++ b/sdk/python/pulumi_aws/opensearch/_inputs.py @@ -32,6 +32,8 @@ 'DomainSnapshotOptionsArgs', 'DomainSoftwareUpdateOptionsArgs', 'DomainVpcOptionsArgs', + 'OutboundConnectionConnectionPropertiesArgs', + 'OutboundConnectionConnectionPropertiesCrossClusterSearchArgs', 'OutboundConnectionLocalDomainInfoArgs', 'OutboundConnectionRemoteDomainInfoArgs', 'PackagePackageSourceArgs', @@ -1269,6 +1271,68 @@ def vpc_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vpc_id", value) +@pulumi.input_type +class OutboundConnectionConnectionPropertiesArgs: + def __init__(__self__, *, + cross_cluster_search: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesCrossClusterSearchArgs']] = None, + endpoint: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input['OutboundConnectionConnectionPropertiesCrossClusterSearchArgs'] cross_cluster_search: Configuration block for cross cluster search. + :param pulumi.Input[str] endpoint: The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + """ + if cross_cluster_search is not None: + pulumi.set(__self__, "cross_cluster_search", cross_cluster_search) + if endpoint is not None: + pulumi.set(__self__, "endpoint", endpoint) + + @property + @pulumi.getter(name="crossClusterSearch") + def cross_cluster_search(self) -> Optional[pulumi.Input['OutboundConnectionConnectionPropertiesCrossClusterSearchArgs']]: + """ + Configuration block for cross cluster search. + """ + return pulumi.get(self, "cross_cluster_search") + + @cross_cluster_search.setter + def cross_cluster_search(self, value: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesCrossClusterSearchArgs']]): + pulumi.set(self, "cross_cluster_search", value) + + @property + @pulumi.getter + def endpoint(self) -> Optional[pulumi.Input[str]]: + """ + The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + """ + return pulumi.get(self, "endpoint") + + @endpoint.setter + def endpoint(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "endpoint", value) + + +@pulumi.input_type +class OutboundConnectionConnectionPropertiesCrossClusterSearchArgs: + def __init__(__self__, *, + skip_unavailable: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] skip_unavailable: Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + """ + if skip_unavailable is not None: + pulumi.set(__self__, "skip_unavailable", skip_unavailable) + + @property + @pulumi.getter(name="skipUnavailable") + def skip_unavailable(self) -> Optional[pulumi.Input[str]]: + """ + Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + """ + return pulumi.get(self, "skip_unavailable") + + @skip_unavailable.setter + def skip_unavailable(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "skip_unavailable", value) + + @pulumi.input_type class OutboundConnectionLocalDomainInfoArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_aws/opensearch/outbound_connection.py b/sdk/python/pulumi_aws/opensearch/outbound_connection.py index 5fab68ffe1c..60127262644 100644 --- a/sdk/python/pulumi_aws/opensearch/outbound_connection.py +++ b/sdk/python/pulumi_aws/opensearch/outbound_connection.py @@ -18,16 +18,28 @@ class OutboundConnectionArgs: def __init__(__self__, *, connection_alias: pulumi.Input[str], local_domain_info: pulumi.Input['OutboundConnectionLocalDomainInfoArgs'], - remote_domain_info: pulumi.Input['OutboundConnectionRemoteDomainInfoArgs']): + remote_domain_info: pulumi.Input['OutboundConnectionRemoteDomainInfoArgs'], + accept_connection: Optional[pulumi.Input[bool]] = None, + connection_mode: Optional[pulumi.Input[str]] = None, + connection_properties: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']] = None): """ The set of arguments for constructing a OutboundConnection resource. :param pulumi.Input[str] connection_alias: Specifies the connection alias that will be used by the customer for this connection. :param pulumi.Input['OutboundConnectionLocalDomainInfoArgs'] local_domain_info: Configuration block for the local Opensearch domain. :param pulumi.Input['OutboundConnectionRemoteDomainInfoArgs'] remote_domain_info: Configuration block for the remote Opensearch domain. + :param pulumi.Input[bool] accept_connection: Accepts the connection. + :param pulumi.Input[str] connection_mode: Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + :param pulumi.Input['OutboundConnectionConnectionPropertiesArgs'] connection_properties: Configuration block for the outbound connection. """ pulumi.set(__self__, "connection_alias", connection_alias) pulumi.set(__self__, "local_domain_info", local_domain_info) pulumi.set(__self__, "remote_domain_info", remote_domain_info) + if accept_connection is not None: + pulumi.set(__self__, "accept_connection", accept_connection) + if connection_mode is not None: + pulumi.set(__self__, "connection_mode", connection_mode) + if connection_properties is not None: + pulumi.set(__self__, "connection_properties", connection_properties) @property @pulumi.getter(name="connectionAlias") @@ -65,23 +77,71 @@ def remote_domain_info(self) -> pulumi.Input['OutboundConnectionRemoteDomainInfo def remote_domain_info(self, value: pulumi.Input['OutboundConnectionRemoteDomainInfoArgs']): pulumi.set(self, "remote_domain_info", value) + @property + @pulumi.getter(name="acceptConnection") + def accept_connection(self) -> Optional[pulumi.Input[bool]]: + """ + Accepts the connection. + """ + return pulumi.get(self, "accept_connection") + + @accept_connection.setter + def accept_connection(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "accept_connection", value) + + @property + @pulumi.getter(name="connectionMode") + def connection_mode(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + """ + return pulumi.get(self, "connection_mode") + + @connection_mode.setter + def connection_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "connection_mode", value) + + @property + @pulumi.getter(name="connectionProperties") + def connection_properties(self) -> Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']]: + """ + Configuration block for the outbound connection. + """ + return pulumi.get(self, "connection_properties") + + @connection_properties.setter + def connection_properties(self, value: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']]): + pulumi.set(self, "connection_properties", value) + @pulumi.input_type class _OutboundConnectionState: def __init__(__self__, *, + accept_connection: Optional[pulumi.Input[bool]] = None, connection_alias: Optional[pulumi.Input[str]] = None, + connection_mode: Optional[pulumi.Input[str]] = None, + connection_properties: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']] = None, connection_status: Optional[pulumi.Input[str]] = None, local_domain_info: Optional[pulumi.Input['OutboundConnectionLocalDomainInfoArgs']] = None, remote_domain_info: Optional[pulumi.Input['OutboundConnectionRemoteDomainInfoArgs']] = None): """ Input properties used for looking up and filtering OutboundConnection resources. + :param pulumi.Input[bool] accept_connection: Accepts the connection. :param pulumi.Input[str] connection_alias: Specifies the connection alias that will be used by the customer for this connection. + :param pulumi.Input[str] connection_mode: Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + :param pulumi.Input['OutboundConnectionConnectionPropertiesArgs'] connection_properties: Configuration block for the outbound connection. :param pulumi.Input[str] connection_status: Status of the connection request. :param pulumi.Input['OutboundConnectionLocalDomainInfoArgs'] local_domain_info: Configuration block for the local Opensearch domain. :param pulumi.Input['OutboundConnectionRemoteDomainInfoArgs'] remote_domain_info: Configuration block for the remote Opensearch domain. """ + if accept_connection is not None: + pulumi.set(__self__, "accept_connection", accept_connection) if connection_alias is not None: pulumi.set(__self__, "connection_alias", connection_alias) + if connection_mode is not None: + pulumi.set(__self__, "connection_mode", connection_mode) + if connection_properties is not None: + pulumi.set(__self__, "connection_properties", connection_properties) if connection_status is not None: pulumi.set(__self__, "connection_status", connection_status) if local_domain_info is not None: @@ -89,6 +149,18 @@ def __init__(__self__, *, if remote_domain_info is not None: pulumi.set(__self__, "remote_domain_info", remote_domain_info) + @property + @pulumi.getter(name="acceptConnection") + def accept_connection(self) -> Optional[pulumi.Input[bool]]: + """ + Accepts the connection. + """ + return pulumi.get(self, "accept_connection") + + @accept_connection.setter + def accept_connection(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "accept_connection", value) + @property @pulumi.getter(name="connectionAlias") def connection_alias(self) -> Optional[pulumi.Input[str]]: @@ -101,6 +173,30 @@ def connection_alias(self) -> Optional[pulumi.Input[str]]: def connection_alias(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "connection_alias", value) + @property + @pulumi.getter(name="connectionMode") + def connection_mode(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + """ + return pulumi.get(self, "connection_mode") + + @connection_mode.setter + def connection_mode(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "connection_mode", value) + + @property + @pulumi.getter(name="connectionProperties") + def connection_properties(self) -> Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']]: + """ + Configuration block for the outbound connection. + """ + return pulumi.get(self, "connection_properties") + + @connection_properties.setter + def connection_properties(self, value: Optional[pulumi.Input['OutboundConnectionConnectionPropertiesArgs']]): + pulumi.set(self, "connection_properties", value) + @property @pulumi.getter(name="connectionStatus") def connection_status(self) -> Optional[pulumi.Input[str]]: @@ -143,7 +239,10 @@ class OutboundConnection(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + accept_connection: Optional[pulumi.Input[bool]] = None, connection_alias: Optional[pulumi.Input[str]] = None, + connection_mode: Optional[pulumi.Input[str]] = None, + connection_properties: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionConnectionPropertiesArgs']]] = None, local_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionLocalDomainInfoArgs']]] = None, remote_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionRemoteDomainInfoArgs']]] = None, __props__=None): @@ -161,6 +260,7 @@ def __init__(__self__, current_region = aws.get_region() foo = aws.opensearch.OutboundConnection("foo", connection_alias="outbound_connection", + connection_mode="DIRECT", local_domain_info=aws.opensearch.OutboundConnectionLocalDomainInfoArgs( owner_id=current_caller_identity.account_id, region=current_region.name, @@ -183,7 +283,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] accept_connection: Accepts the connection. :param pulumi.Input[str] connection_alias: Specifies the connection alias that will be used by the customer for this connection. + :param pulumi.Input[str] connection_mode: Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + :param pulumi.Input[pulumi.InputType['OutboundConnectionConnectionPropertiesArgs']] connection_properties: Configuration block for the outbound connection. :param pulumi.Input[pulumi.InputType['OutboundConnectionLocalDomainInfoArgs']] local_domain_info: Configuration block for the local Opensearch domain. :param pulumi.Input[pulumi.InputType['OutboundConnectionRemoteDomainInfoArgs']] remote_domain_info: Configuration block for the remote Opensearch domain. """ @@ -207,6 +310,7 @@ def __init__(__self__, current_region = aws.get_region() foo = aws.opensearch.OutboundConnection("foo", connection_alias="outbound_connection", + connection_mode="DIRECT", local_domain_info=aws.opensearch.OutboundConnectionLocalDomainInfoArgs( owner_id=current_caller_identity.account_id, region=current_region.name, @@ -242,7 +346,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + accept_connection: Optional[pulumi.Input[bool]] = None, connection_alias: Optional[pulumi.Input[str]] = None, + connection_mode: Optional[pulumi.Input[str]] = None, + connection_properties: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionConnectionPropertiesArgs']]] = None, local_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionLocalDomainInfoArgs']]] = None, remote_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionRemoteDomainInfoArgs']]] = None, __props__=None): @@ -254,9 +361,12 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = OutboundConnectionArgs.__new__(OutboundConnectionArgs) + __props__.__dict__["accept_connection"] = accept_connection if connection_alias is None and not opts.urn: raise TypeError("Missing required property 'connection_alias'") __props__.__dict__["connection_alias"] = connection_alias + __props__.__dict__["connection_mode"] = connection_mode + __props__.__dict__["connection_properties"] = connection_properties if local_domain_info is None and not opts.urn: raise TypeError("Missing required property 'local_domain_info'") __props__.__dict__["local_domain_info"] = local_domain_info @@ -274,7 +384,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + accept_connection: Optional[pulumi.Input[bool]] = None, connection_alias: Optional[pulumi.Input[str]] = None, + connection_mode: Optional[pulumi.Input[str]] = None, + connection_properties: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionConnectionPropertiesArgs']]] = None, connection_status: Optional[pulumi.Input[str]] = None, local_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionLocalDomainInfoArgs']]] = None, remote_domain_info: Optional[pulumi.Input[pulumi.InputType['OutboundConnectionRemoteDomainInfoArgs']]] = None) -> 'OutboundConnection': @@ -285,7 +398,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] accept_connection: Accepts the connection. :param pulumi.Input[str] connection_alias: Specifies the connection alias that will be used by the customer for this connection. + :param pulumi.Input[str] connection_mode: Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + :param pulumi.Input[pulumi.InputType['OutboundConnectionConnectionPropertiesArgs']] connection_properties: Configuration block for the outbound connection. :param pulumi.Input[str] connection_status: Status of the connection request. :param pulumi.Input[pulumi.InputType['OutboundConnectionLocalDomainInfoArgs']] local_domain_info: Configuration block for the local Opensearch domain. :param pulumi.Input[pulumi.InputType['OutboundConnectionRemoteDomainInfoArgs']] remote_domain_info: Configuration block for the remote Opensearch domain. @@ -294,12 +410,23 @@ def get(resource_name: str, __props__ = _OutboundConnectionState.__new__(_OutboundConnectionState) + __props__.__dict__["accept_connection"] = accept_connection __props__.__dict__["connection_alias"] = connection_alias + __props__.__dict__["connection_mode"] = connection_mode + __props__.__dict__["connection_properties"] = connection_properties __props__.__dict__["connection_status"] = connection_status __props__.__dict__["local_domain_info"] = local_domain_info __props__.__dict__["remote_domain_info"] = remote_domain_info return OutboundConnection(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="acceptConnection") + def accept_connection(self) -> pulumi.Output[Optional[bool]]: + """ + Accepts the connection. + """ + return pulumi.get(self, "accept_connection") + @property @pulumi.getter(name="connectionAlias") def connection_alias(self) -> pulumi.Output[str]: @@ -308,6 +435,22 @@ def connection_alias(self) -> pulumi.Output[str]: """ return pulumi.get(self, "connection_alias") + @property + @pulumi.getter(name="connectionMode") + def connection_mode(self) -> pulumi.Output[Optional[str]]: + """ + Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`. + """ + return pulumi.get(self, "connection_mode") + + @property + @pulumi.getter(name="connectionProperties") + def connection_properties(self) -> pulumi.Output['outputs.OutboundConnectionConnectionProperties']: + """ + Configuration block for the outbound connection. + """ + return pulumi.get(self, "connection_properties") + @property @pulumi.getter(name="connectionStatus") def connection_status(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_aws/opensearch/outputs.py b/sdk/python/pulumi_aws/opensearch/outputs.py index 900d25ff01d..32062829a39 100644 --- a/sdk/python/pulumi_aws/opensearch/outputs.py +++ b/sdk/python/pulumi_aws/opensearch/outputs.py @@ -33,6 +33,8 @@ 'DomainSnapshotOptions', 'DomainSoftwareUpdateOptions', 'DomainVpcOptions', + 'OutboundConnectionConnectionProperties', + 'OutboundConnectionConnectionPropertiesCrossClusterSearch', 'OutboundConnectionLocalDomainInfo', 'OutboundConnectionRemoteDomainInfo', 'PackagePackageSource', @@ -1385,6 +1387,90 @@ def vpc_id(self) -> Optional[str]: return pulumi.get(self, "vpc_id") +@pulumi.output_type +class OutboundConnectionConnectionProperties(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "crossClusterSearch": + suggest = "cross_cluster_search" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OutboundConnectionConnectionProperties. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OutboundConnectionConnectionProperties.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OutboundConnectionConnectionProperties.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + cross_cluster_search: Optional['outputs.OutboundConnectionConnectionPropertiesCrossClusterSearch'] = None, + endpoint: Optional[str] = None): + """ + :param 'OutboundConnectionConnectionPropertiesCrossClusterSearchArgs' cross_cluster_search: Configuration block for cross cluster search. + :param str endpoint: The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + """ + if cross_cluster_search is not None: + pulumi.set(__self__, "cross_cluster_search", cross_cluster_search) + if endpoint is not None: + pulumi.set(__self__, "endpoint", endpoint) + + @property + @pulumi.getter(name="crossClusterSearch") + def cross_cluster_search(self) -> Optional['outputs.OutboundConnectionConnectionPropertiesCrossClusterSearch']: + """ + Configuration block for cross cluster search. + """ + return pulumi.get(self, "cross_cluster_search") + + @property + @pulumi.getter + def endpoint(self) -> Optional[str]: + """ + The endpoint of the remote domain, is only set when `connection_mode` is `VPC_ENDPOINT` and `accept_connection` is `TRUE`. + """ + return pulumi.get(self, "endpoint") + + +@pulumi.output_type +class OutboundConnectionConnectionPropertiesCrossClusterSearch(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "skipUnavailable": + suggest = "skip_unavailable" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OutboundConnectionConnectionPropertiesCrossClusterSearch. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OutboundConnectionConnectionPropertiesCrossClusterSearch.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OutboundConnectionConnectionPropertiesCrossClusterSearch.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + skip_unavailable: Optional[str] = None): + """ + :param str skip_unavailable: Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + """ + if skip_unavailable is not None: + pulumi.set(__self__, "skip_unavailable", skip_unavailable) + + @property + @pulumi.getter(name="skipUnavailable") + def skip_unavailable(self) -> Optional[str]: + """ + Skips unavailable clusters and can only be used for cross-cluster searches. Accepted values are `ENABLED` or `DISABLED`. + """ + return pulumi.get(self, "skip_unavailable") + + @pulumi.output_type class OutboundConnectionLocalDomainInfo(dict): @staticmethod diff --git a/sdk/python/pulumi_aws/rds/__init__.py b/sdk/python/pulumi_aws/rds/__init__.py index acf1e6b0100..53ac36ee97c 100644 --- a/sdk/python/pulumi_aws/rds/__init__.py +++ b/sdk/python/pulumi_aws/rds/__init__.py @@ -13,6 +13,7 @@ from .cluster_parameter_group import * from .cluster_role_association import * from .cluster_snapshot import * +from .custom_db_engine_version import * from .event_subscription import * from .export_task import * from .get_certificate import * diff --git a/sdk/python/pulumi_aws/rds/custom_db_engine_version.py b/sdk/python/pulumi_aws/rds/custom_db_engine_version.py new file mode 100644 index 00000000000..ceba38331f2 --- /dev/null +++ b/sdk/python/pulumi_aws/rds/custom_db_engine_version.py @@ -0,0 +1,1045 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from .. import _utilities + +__all__ = ['CustomDbEngineVersionArgs', 'CustomDbEngineVersion'] + +@pulumi.input_type +class CustomDbEngineVersionArgs: + def __init__(__self__, *, + engine: pulumi.Input[str], + engine_version: pulumi.Input[str], + database_installation_files_s3_bucket_name: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_prefix: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + filename: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + manifest: Optional[pulumi.Input[str]] = None, + manifest_hash: Optional[pulumi.Input[str]] = None, + source_image_id: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + The set of arguments for constructing a CustomDbEngineVersion resource. + :param pulumi.Input[str] engine: The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + :param pulumi.Input[str] engine_version: The version of the database engine. + :param pulumi.Input[str] database_installation_files_s3_bucket_name: The name of the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] database_installation_files_s3_prefix: The prefix for the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] description: The description of the CEV. + :param pulumi.Input[str] filename: The name of the manifest file within the local filesystem. Conflicts with `manifest`. + :param pulumi.Input[str] kms_key_id: The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + :param pulumi.Input[str] manifest: The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + :param pulumi.Input[str] manifest_hash: Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + :param pulumi.Input[str] source_image_id: The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + :param pulumi.Input[str] status: The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + pulumi.set(__self__, "engine", engine) + pulumi.set(__self__, "engine_version", engine_version) + if database_installation_files_s3_bucket_name is not None: + pulumi.set(__self__, "database_installation_files_s3_bucket_name", database_installation_files_s3_bucket_name) + if database_installation_files_s3_prefix is not None: + pulumi.set(__self__, "database_installation_files_s3_prefix", database_installation_files_s3_prefix) + if description is not None: + pulumi.set(__self__, "description", description) + if filename is not None: + pulumi.set(__self__, "filename", filename) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if manifest is not None: + pulumi.set(__self__, "manifest", manifest) + if manifest_hash is not None: + pulumi.set(__self__, "manifest_hash", manifest_hash) + if source_image_id is not None: + pulumi.set(__self__, "source_image_id", source_image_id) + if status is not None: + pulumi.set(__self__, "status", status) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter + def engine(self) -> pulumi.Input[str]: + """ + The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + """ + return pulumi.get(self, "engine") + + @engine.setter + def engine(self, value: pulumi.Input[str]): + pulumi.set(self, "engine", value) + + @property + @pulumi.getter(name="engineVersion") + def engine_version(self) -> pulumi.Input[str]: + """ + The version of the database engine. + """ + return pulumi.get(self, "engine_version") + + @engine_version.setter + def engine_version(self, value: pulumi.Input[str]): + pulumi.set(self, "engine_version", value) + + @property + @pulumi.getter(name="databaseInstallationFilesS3BucketName") + def database_installation_files_s3_bucket_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_bucket_name") + + @database_installation_files_s3_bucket_name.setter + def database_installation_files_s3_bucket_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "database_installation_files_s3_bucket_name", value) + + @property + @pulumi.getter(name="databaseInstallationFilesS3Prefix") + def database_installation_files_s3_prefix(self) -> Optional[pulumi.Input[str]]: + """ + The prefix for the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_prefix") + + @database_installation_files_s3_prefix.setter + def database_installation_files_s3_prefix(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "database_installation_files_s3_prefix", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the CEV. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def filename(self) -> Optional[pulumi.Input[str]]: + """ + The name of the manifest file within the local filesystem. Conflicts with `manifest`. + """ + return pulumi.get(self, "filename") + + @filename.setter + def filename(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "filename", value) + + @property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> Optional[pulumi.Input[str]]: + """ + The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kms_key_id", value) + + @property + @pulumi.getter + def manifest(self) -> Optional[pulumi.Input[str]]: + """ + The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + """ + return pulumi.get(self, "manifest") + + @manifest.setter + def manifest(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "manifest", value) + + @property + @pulumi.getter(name="manifestHash") + def manifest_hash(self) -> Optional[pulumi.Input[str]]: + """ + Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + """ + return pulumi.get(self, "manifest_hash") + + @manifest_hash.setter + def manifest_hash(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "manifest_hash", value) + + @property + @pulumi.getter(name="sourceImageId") + def source_image_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + """ + return pulumi.get(self, "source_image_id") + + @source_image_id.setter + def source_image_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "source_image_id", value) + + @property + @pulumi.getter + def status(self) -> Optional[pulumi.Input[str]]: + """ + The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + """ + return pulumi.get(self, "status") + + @status.setter + def status(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "status", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +@pulumi.input_type +class _CustomDbEngineVersionState: + def __init__(__self__, *, + arn: Optional[pulumi.Input[str]] = None, + create_time: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_bucket_name: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_prefix: Optional[pulumi.Input[str]] = None, + db_parameter_group_family: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + engine: Optional[pulumi.Input[str]] = None, + engine_version: Optional[pulumi.Input[str]] = None, + filename: Optional[pulumi.Input[str]] = None, + image_id: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + major_engine_version: Optional[pulumi.Input[str]] = None, + manifest: Optional[pulumi.Input[str]] = None, + manifest_computed: Optional[pulumi.Input[str]] = None, + manifest_hash: Optional[pulumi.Input[str]] = None, + source_image_id: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + Input properties used for looking up and filtering CustomDbEngineVersion resources. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) for the custom engine version. + :param pulumi.Input[str] create_time: The date and time that the CEV was created. + :param pulumi.Input[str] database_installation_files_s3_bucket_name: The name of the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] database_installation_files_s3_prefix: The prefix for the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] db_parameter_group_family: The name of the DB parameter group family for the CEV. + :param pulumi.Input[str] description: The description of the CEV. + :param pulumi.Input[str] engine: The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + :param pulumi.Input[str] engine_version: The version of the database engine. + :param pulumi.Input[str] filename: The name of the manifest file within the local filesystem. Conflicts with `manifest`. + :param pulumi.Input[str] image_id: The ID of the AMI that was created with the CEV. + :param pulumi.Input[str] kms_key_id: The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + :param pulumi.Input[str] major_engine_version: The major version of the database engine. + :param pulumi.Input[str] manifest: The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + :param pulumi.Input[str] manifest_computed: The returned manifest file, in JSON format, service generated and often different from input `manifest`. + :param pulumi.Input[str] manifest_hash: Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + :param pulumi.Input[str] source_image_id: The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + :param pulumi.Input[str] status: The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + if arn is not None: + pulumi.set(__self__, "arn", arn) + if create_time is not None: + pulumi.set(__self__, "create_time", create_time) + if database_installation_files_s3_bucket_name is not None: + pulumi.set(__self__, "database_installation_files_s3_bucket_name", database_installation_files_s3_bucket_name) + if database_installation_files_s3_prefix is not None: + pulumi.set(__self__, "database_installation_files_s3_prefix", database_installation_files_s3_prefix) + if db_parameter_group_family is not None: + pulumi.set(__self__, "db_parameter_group_family", db_parameter_group_family) + if description is not None: + pulumi.set(__self__, "description", description) + if engine is not None: + pulumi.set(__self__, "engine", engine) + if engine_version is not None: + pulumi.set(__self__, "engine_version", engine_version) + if filename is not None: + pulumi.set(__self__, "filename", filename) + if image_id is not None: + pulumi.set(__self__, "image_id", image_id) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if major_engine_version is not None: + pulumi.set(__self__, "major_engine_version", major_engine_version) + if manifest is not None: + pulumi.set(__self__, "manifest", manifest) + if manifest_computed is not None: + pulumi.set(__self__, "manifest_computed", manifest_computed) + if manifest_hash is not None: + pulumi.set(__self__, "manifest_hash", manifest_hash) + if source_image_id is not None: + pulumi.set(__self__, "source_image_id", source_image_id) + if status is not None: + pulumi.set(__self__, "status", status) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tags_all is not None: + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + if tags_all is not None: + pulumi.set(__self__, "tags_all", tags_all) + + @property + @pulumi.getter + def arn(self) -> Optional[pulumi.Input[str]]: + """ + The Amazon Resource Name (ARN) for the custom engine version. + """ + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "arn", value) + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> Optional[pulumi.Input[str]]: + """ + The date and time that the CEV was created. + """ + return pulumi.get(self, "create_time") + + @create_time.setter + def create_time(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "create_time", value) + + @property + @pulumi.getter(name="databaseInstallationFilesS3BucketName") + def database_installation_files_s3_bucket_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_bucket_name") + + @database_installation_files_s3_bucket_name.setter + def database_installation_files_s3_bucket_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "database_installation_files_s3_bucket_name", value) + + @property + @pulumi.getter(name="databaseInstallationFilesS3Prefix") + def database_installation_files_s3_prefix(self) -> Optional[pulumi.Input[str]]: + """ + The prefix for the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_prefix") + + @database_installation_files_s3_prefix.setter + def database_installation_files_s3_prefix(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "database_installation_files_s3_prefix", value) + + @property + @pulumi.getter(name="dbParameterGroupFamily") + def db_parameter_group_family(self) -> Optional[pulumi.Input[str]]: + """ + The name of the DB parameter group family for the CEV. + """ + return pulumi.get(self, "db_parameter_group_family") + + @db_parameter_group_family.setter + def db_parameter_group_family(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "db_parameter_group_family", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the CEV. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def engine(self) -> Optional[pulumi.Input[str]]: + """ + The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + """ + return pulumi.get(self, "engine") + + @engine.setter + def engine(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "engine", value) + + @property + @pulumi.getter(name="engineVersion") + def engine_version(self) -> Optional[pulumi.Input[str]]: + """ + The version of the database engine. + """ + return pulumi.get(self, "engine_version") + + @engine_version.setter + def engine_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "engine_version", value) + + @property + @pulumi.getter + def filename(self) -> Optional[pulumi.Input[str]]: + """ + The name of the manifest file within the local filesystem. Conflicts with `manifest`. + """ + return pulumi.get(self, "filename") + + @filename.setter + def filename(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "filename", value) + + @property + @pulumi.getter(name="imageId") + def image_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the AMI that was created with the CEV. + """ + return pulumi.get(self, "image_id") + + @image_id.setter + def image_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "image_id", value) + + @property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> Optional[pulumi.Input[str]]: + """ + The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kms_key_id", value) + + @property + @pulumi.getter(name="majorEngineVersion") + def major_engine_version(self) -> Optional[pulumi.Input[str]]: + """ + The major version of the database engine. + """ + return pulumi.get(self, "major_engine_version") + + @major_engine_version.setter + def major_engine_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "major_engine_version", value) + + @property + @pulumi.getter + def manifest(self) -> Optional[pulumi.Input[str]]: + """ + The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + """ + return pulumi.get(self, "manifest") + + @manifest.setter + def manifest(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "manifest", value) + + @property + @pulumi.getter(name="manifestComputed") + def manifest_computed(self) -> Optional[pulumi.Input[str]]: + """ + The returned manifest file, in JSON format, service generated and often different from input `manifest`. + """ + return pulumi.get(self, "manifest_computed") + + @manifest_computed.setter + def manifest_computed(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "manifest_computed", value) + + @property + @pulumi.getter(name="manifestHash") + def manifest_hash(self) -> Optional[pulumi.Input[str]]: + """ + Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + """ + return pulumi.get(self, "manifest_hash") + + @manifest_hash.setter + def manifest_hash(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "manifest_hash", value) + + @property + @pulumi.getter(name="sourceImageId") + def source_image_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + """ + return pulumi.get(self, "source_image_id") + + @source_image_id.setter + def source_image_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "source_image_id", value) + + @property + @pulumi.getter + def status(self) -> Optional[pulumi.Input[str]]: + """ + The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + """ + return pulumi.get(self, "status") + + @status.setter + def status(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "status", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + + @tags_all.setter + def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags_all", value) + + +class CustomDbEngineVersion(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + database_installation_files_s3_bucket_name: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_prefix: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + engine: Optional[pulumi.Input[str]] = None, + engine_version: Optional[pulumi.Input[str]] = None, + filename: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + manifest: Optional[pulumi.Input[str]] = None, + manifest_hash: Optional[pulumi.Input[str]] = None, + source_image_id: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + """ + Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). + + ## Example Usage + ### RDS Custom for Oracle Usage + + ```python + import pulumi + import pulumi_aws as aws + + example_key = aws.kms.Key("exampleKey", description="KMS symmetric key for RDS Custom for Oracle") + example_custom_db_engine_version = aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", + database_installation_files_s3_bucket_name="DOC-EXAMPLE-BUCKET", + database_installation_files_s3_prefix="1915_GI/", + engine="custom-oracle-ee-cdb", + engine_version="19.cdb_cev1", + kms_key_id=example_key.arn, + manifest=\"\"\" { + "databaseInstallationFileNames":["V982063-01.zip"] + } + \"\"\", + tags={ + "Name": "example", + "Key": "value", + }) + ``` + ### RDS Custom for Oracle External Manifest Usage + + ```python + import pulumi + import base64 + import hashlib + import pulumi_aws as aws + + def computeFilebase64sha256(path): + fileData = open(path).read().encode() + hashedData = hashlib.sha256(fileData.encode()).digest() + return base64.b64encode(hashedData).decode() + + example_key = aws.kms.Key("exampleKey", description="KMS symmetric key for RDS Custom for Oracle") + example_custom_db_engine_version = aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", + database_installation_files_s3_bucket_name="DOC-EXAMPLE-BUCKET", + database_installation_files_s3_prefix="1915_GI/", + engine="custom-oracle-ee-cdb", + engine_version="19.cdb_cev1", + kms_key_id=example_key.arn, + filename="manifest_1915_GI.json", + manifest_hash=computeFilebase64sha256(manifest_1915__gi["json"]), + tags={ + "Name": "example", + "Key": "value", + }) + ``` + ### RDS Custom for SQL Server Usage + + ```python + import pulumi + import pulumi_aws as aws + + # CEV creation requires an AMI owned by the operator + test = aws.rds.CustomDbEngineVersion("test", + engine="custom-sqlserver-se", + engine_version="15.00.4249.2.cev-1", + source_image_id="ami-0aa12345678a12ab1") + ``` + ### RDS Custom for SQL Server Usage with AMI from another region + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.ec2.AmiCopy("example", + description="A copy of ami-xxxxxxxx", + source_ami_id="ami-xxxxxxxx", + source_ami_region="us-east-1") + # CEV creation requires an AMI owned by the operator + test = aws.rds.CustomDbEngineVersion("test", + engine="custom-sqlserver-se", + engine_version="15.00.4249.2.cev-1", + source_image_id=example.id) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { + + to = aws_rds_custom_db_engine_version.example + + id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] database_installation_files_s3_bucket_name: The name of the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] database_installation_files_s3_prefix: The prefix for the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] description: The description of the CEV. + :param pulumi.Input[str] engine: The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + :param pulumi.Input[str] engine_version: The version of the database engine. + :param pulumi.Input[str] filename: The name of the manifest file within the local filesystem. Conflicts with `manifest`. + :param pulumi.Input[str] kms_key_id: The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + :param pulumi.Input[str] manifest: The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + :param pulumi.Input[str] manifest_hash: Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + :param pulumi.Input[str] source_image_id: The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + :param pulumi.Input[str] status: The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CustomDbEngineVersionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Provides an custom engine version (CEV) resource for Amazon RDS Custom. For additional information, see [Working with CEVs for RDS Custom for Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html) and [Working with CEVs for RDS Custom for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev-sqlserver.html) in the the [RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html). + + ## Example Usage + ### RDS Custom for Oracle Usage + + ```python + import pulumi + import pulumi_aws as aws + + example_key = aws.kms.Key("exampleKey", description="KMS symmetric key for RDS Custom for Oracle") + example_custom_db_engine_version = aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", + database_installation_files_s3_bucket_name="DOC-EXAMPLE-BUCKET", + database_installation_files_s3_prefix="1915_GI/", + engine="custom-oracle-ee-cdb", + engine_version="19.cdb_cev1", + kms_key_id=example_key.arn, + manifest=\"\"\" { + "databaseInstallationFileNames":["V982063-01.zip"] + } + \"\"\", + tags={ + "Name": "example", + "Key": "value", + }) + ``` + ### RDS Custom for Oracle External Manifest Usage + + ```python + import pulumi + import base64 + import hashlib + import pulumi_aws as aws + + def computeFilebase64sha256(path): + fileData = open(path).read().encode() + hashedData = hashlib.sha256(fileData.encode()).digest() + return base64.b64encode(hashedData).decode() + + example_key = aws.kms.Key("exampleKey", description="KMS symmetric key for RDS Custom for Oracle") + example_custom_db_engine_version = aws.rds.CustomDbEngineVersion("exampleCustomDbEngineVersion", + database_installation_files_s3_bucket_name="DOC-EXAMPLE-BUCKET", + database_installation_files_s3_prefix="1915_GI/", + engine="custom-oracle-ee-cdb", + engine_version="19.cdb_cev1", + kms_key_id=example_key.arn, + filename="manifest_1915_GI.json", + manifest_hash=computeFilebase64sha256(manifest_1915__gi["json"]), + tags={ + "Name": "example", + "Key": "value", + }) + ``` + ### RDS Custom for SQL Server Usage + + ```python + import pulumi + import pulumi_aws as aws + + # CEV creation requires an AMI owned by the operator + test = aws.rds.CustomDbEngineVersion("test", + engine="custom-sqlserver-se", + engine_version="15.00.4249.2.cev-1", + source_image_id="ami-0aa12345678a12ab1") + ``` + ### RDS Custom for SQL Server Usage with AMI from another region + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.ec2.AmiCopy("example", + description="A copy of ami-xxxxxxxx", + source_ami_id="ami-xxxxxxxx", + source_ami_region="us-east-1") + # CEV creation requires an AMI owned by the operator + test = aws.rds.CustomDbEngineVersion("test", + engine="custom-sqlserver-se", + engine_version="15.00.4249.2.cev-1", + source_image_id=example.id) + ``` + + ## Import + + In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleterraform import { + + to = aws_rds_custom_db_engine_version.example + + id = "custom-oracle-ee-cdb:19.cdb_cev1" } Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For exampleconsole % TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1 + + :param str resource_name: The name of the resource. + :param CustomDbEngineVersionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CustomDbEngineVersionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + database_installation_files_s3_bucket_name: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_prefix: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + engine: Optional[pulumi.Input[str]] = None, + engine_version: Optional[pulumi.Input[str]] = None, + filename: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + manifest: Optional[pulumi.Input[str]] = None, + manifest_hash: Optional[pulumi.Input[str]] = None, + source_image_id: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = CustomDbEngineVersionArgs.__new__(CustomDbEngineVersionArgs) + + __props__.__dict__["database_installation_files_s3_bucket_name"] = database_installation_files_s3_bucket_name + __props__.__dict__["database_installation_files_s3_prefix"] = database_installation_files_s3_prefix + __props__.__dict__["description"] = description + if engine is None and not opts.urn: + raise TypeError("Missing required property 'engine'") + __props__.__dict__["engine"] = engine + if engine_version is None and not opts.urn: + raise TypeError("Missing required property 'engine_version'") + __props__.__dict__["engine_version"] = engine_version + __props__.__dict__["filename"] = filename + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["manifest"] = manifest + __props__.__dict__["manifest_hash"] = manifest_hash + __props__.__dict__["source_image_id"] = source_image_id + __props__.__dict__["status"] = status + __props__.__dict__["tags"] = tags + __props__.__dict__["arn"] = None + __props__.__dict__["create_time"] = None + __props__.__dict__["db_parameter_group_family"] = None + __props__.__dict__["image_id"] = None + __props__.__dict__["major_engine_version"] = None + __props__.__dict__["manifest_computed"] = None + __props__.__dict__["tags_all"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["tagsAll"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(CustomDbEngineVersion, __self__).__init__( + 'aws:rds/customDbEngineVersion:CustomDbEngineVersion', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + arn: Optional[pulumi.Input[str]] = None, + create_time: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_bucket_name: Optional[pulumi.Input[str]] = None, + database_installation_files_s3_prefix: Optional[pulumi.Input[str]] = None, + db_parameter_group_family: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + engine: Optional[pulumi.Input[str]] = None, + engine_version: Optional[pulumi.Input[str]] = None, + filename: Optional[pulumi.Input[str]] = None, + image_id: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + major_engine_version: Optional[pulumi.Input[str]] = None, + manifest: Optional[pulumi.Input[str]] = None, + manifest_computed: Optional[pulumi.Input[str]] = None, + manifest_hash: Optional[pulumi.Input[str]] = None, + source_image_id: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'CustomDbEngineVersion': + """ + Get an existing CustomDbEngineVersion resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) for the custom engine version. + :param pulumi.Input[str] create_time: The date and time that the CEV was created. + :param pulumi.Input[str] database_installation_files_s3_bucket_name: The name of the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] database_installation_files_s3_prefix: The prefix for the Amazon S3 bucket that contains the database installation files. + :param pulumi.Input[str] db_parameter_group_family: The name of the DB parameter group family for the CEV. + :param pulumi.Input[str] description: The description of the CEV. + :param pulumi.Input[str] engine: The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + :param pulumi.Input[str] engine_version: The version of the database engine. + :param pulumi.Input[str] filename: The name of the manifest file within the local filesystem. Conflicts with `manifest`. + :param pulumi.Input[str] image_id: The ID of the AMI that was created with the CEV. + :param pulumi.Input[str] kms_key_id: The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + :param pulumi.Input[str] major_engine_version: The major version of the database engine. + :param pulumi.Input[str] manifest: The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + :param pulumi.Input[str] manifest_computed: The returned manifest file, in JSON format, service generated and often different from input `manifest`. + :param pulumi.Input[str] manifest_hash: Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + :param pulumi.Input[str] source_image_id: The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + :param pulumi.Input[str] status: The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _CustomDbEngineVersionState.__new__(_CustomDbEngineVersionState) + + __props__.__dict__["arn"] = arn + __props__.__dict__["create_time"] = create_time + __props__.__dict__["database_installation_files_s3_bucket_name"] = database_installation_files_s3_bucket_name + __props__.__dict__["database_installation_files_s3_prefix"] = database_installation_files_s3_prefix + __props__.__dict__["db_parameter_group_family"] = db_parameter_group_family + __props__.__dict__["description"] = description + __props__.__dict__["engine"] = engine + __props__.__dict__["engine_version"] = engine_version + __props__.__dict__["filename"] = filename + __props__.__dict__["image_id"] = image_id + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["major_engine_version"] = major_engine_version + __props__.__dict__["manifest"] = manifest + __props__.__dict__["manifest_computed"] = manifest_computed + __props__.__dict__["manifest_hash"] = manifest_hash + __props__.__dict__["source_image_id"] = source_image_id + __props__.__dict__["status"] = status + __props__.__dict__["tags"] = tags + __props__.__dict__["tags_all"] = tags_all + return CustomDbEngineVersion(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def arn(self) -> pulumi.Output[str]: + """ + The Amazon Resource Name (ARN) for the custom engine version. + """ + return pulumi.get(self, "arn") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> pulumi.Output[str]: + """ + The date and time that the CEV was created. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter(name="databaseInstallationFilesS3BucketName") + def database_installation_files_s3_bucket_name(self) -> pulumi.Output[Optional[str]]: + """ + The name of the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_bucket_name") + + @property + @pulumi.getter(name="databaseInstallationFilesS3Prefix") + def database_installation_files_s3_prefix(self) -> pulumi.Output[Optional[str]]: + """ + The prefix for the Amazon S3 bucket that contains the database installation files. + """ + return pulumi.get(self, "database_installation_files_s3_prefix") + + @property + @pulumi.getter(name="dbParameterGroupFamily") + def db_parameter_group_family(self) -> pulumi.Output[str]: + """ + The name of the DB parameter group family for the CEV. + """ + return pulumi.get(self, "db_parameter_group_family") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + The description of the CEV. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def engine(self) -> pulumi.Output[str]: + """ + The name of the database engine. Valid values are `custom-oracle*`, `custom-sqlserver*`. + """ + return pulumi.get(self, "engine") + + @property + @pulumi.getter(name="engineVersion") + def engine_version(self) -> pulumi.Output[str]: + """ + The version of the database engine. + """ + return pulumi.get(self, "engine_version") + + @property + @pulumi.getter + def filename(self) -> pulumi.Output[Optional[str]]: + """ + The name of the manifest file within the local filesystem. Conflicts with `manifest`. + """ + return pulumi.get(self, "filename") + + @property + @pulumi.getter(name="imageId") + def image_id(self) -> pulumi.Output[str]: + """ + The ID of the AMI that was created with the CEV. + """ + return pulumi.get(self, "image_id") + + @property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Output[str]: + """ + The ARN of the AWS KMS key that is used to encrypt the database installation files. Required for RDS Custom for Oracle. + """ + return pulumi.get(self, "kms_key_id") + + @property + @pulumi.getter(name="majorEngineVersion") + def major_engine_version(self) -> pulumi.Output[str]: + """ + The major version of the database engine. + """ + return pulumi.get(self, "major_engine_version") + + @property + @pulumi.getter + def manifest(self) -> pulumi.Output[Optional[str]]: + """ + The manifest file, in JSON format, that contains the list of database installation files. Conflicts with `filename`. + """ + return pulumi.get(self, "manifest") + + @property + @pulumi.getter(name="manifestComputed") + def manifest_computed(self) -> pulumi.Output[str]: + """ + The returned manifest file, in JSON format, service generated and often different from input `manifest`. + """ + return pulumi.get(self, "manifest_computed") + + @property + @pulumi.getter(name="manifestHash") + def manifest_hash(self) -> pulumi.Output[Optional[str]]: + """ + Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the manifest source specified with `filename`. The usual way to set this is filebase64sha256("manifest.json") where "manifest.json" is the local filename of the manifest source. + """ + return pulumi.get(self, "manifest_hash") + + @property + @pulumi.getter(name="sourceImageId") + def source_image_id(self) -> pulumi.Output[Optional[str]]: + """ + The ID of the AMI to create the CEV from. Required for RDS Custom for SQL Server. For RDS Custom for Oracle, you can specify an AMI ID that was used in a different Oracle CEV. + """ + return pulumi.get(self, "source_image_id") + + @property + @pulumi.getter + def status(self) -> pulumi.Output[str]: + """ + The status of the CEV. Valid values are `available`, `inactive`, `inactive-except-restore`. + """ + return pulumi.get(self, "status") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A mapping of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="tagsAll") + def tags_all(self) -> pulumi.Output[Mapping[str, str]]: + """ + A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. + """ + warnings.warn("""Please use `tags` instead.""", DeprecationWarning) + pulumi.log.warn("""tags_all is deprecated: Please use `tags` instead.""") + + return pulumi.get(self, "tags_all") + diff --git a/sdk/python/pulumi_aws/route53/hosted_zone_dns_sec.py b/sdk/python/pulumi_aws/route53/hosted_zone_dns_sec.py index da470614397..83a1c8a8440 100644 --- a/sdk/python/pulumi_aws/route53/hosted_zone_dns_sec.py +++ b/sdk/python/pulumi_aws/route53/hosted_zone_dns_sec.py @@ -111,6 +111,8 @@ def __init__(__self__, !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. + > **Note:** Route53 hosted zones are global resources, and as such any `kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `kms.Key` resource as described in the provider alias documentation. + ## Example Usage ```python @@ -185,6 +187,8 @@ def __init__(__self__, !> **WARNING:** If you disable DNSSEC signing for your hosted zone before the DNS changes have propagated, your domain could become unavailable on the internet. When you remove the DS records, you must wait until the longest TTL for the DS records that you remove has expired before you complete the step to disable DNSSEC signing. Please refer to the [Route 53 Developer Guide - Disable DNSSEC](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring-dnssec-disable.html) for a detailed breakdown on the steps required to disable DNSSEC safely for a hosted zone. + > **Note:** Route53 hosted zones are global resources, and as such any `kms.Key` that you use as part of a signing key needs to be located in the `us-east-1` region. In the example below, the main AWS provider declaration is for `us-east-1`, however if you are provisioning your AWS resources in a different region, you will need to specify a provider alias and use that attached to the `kms.Key` resource as described in the provider alias documentation. + ## Example Usage ```python diff --git a/sdk/python/pulumi_aws/s3/get_bucket_object.py b/sdk/python/pulumi_aws/s3/get_bucket_object.py index 0d587d53707..0e6af73d854 100644 --- a/sdk/python/pulumi_aws/s3/get_bucket_object.py +++ b/sdk/python/pulumi_aws/s3/get_bucket_object.py @@ -222,7 +222,7 @@ def last_modified(self) -> str: @pulumi.getter def metadata(self) -> Mapping[str, str]: """ - Map of metadata stored with the object in S3 + Map of metadata stored with the object in S3. Keys are always returned in lowercase. """ return pulumi.get(self, "metadata") diff --git a/sdk/python/pulumi_aws/s3/get_object.py b/sdk/python/pulumi_aws/s3/get_object.py index 521cf662d05..63c3f14e184 100644 --- a/sdk/python/pulumi_aws/s3/get_object.py +++ b/sdk/python/pulumi_aws/s3/get_object.py @@ -271,7 +271,7 @@ def last_modified(self) -> str: @pulumi.getter def metadata(self) -> Mapping[str, str]: """ - Map of metadata stored with the object in S3 + Map of metadata stored with the object in S3. Keys are always returned in lowercase. """ return pulumi.get(self, "metadata") diff --git a/sdk/python/pulumi_aws/sfn/_inputs.py b/sdk/python/pulumi_aws/sfn/_inputs.py index 0c2508858bf..b84b8ac3de7 100644 --- a/sdk/python/pulumi_aws/sfn/_inputs.py +++ b/sdk/python/pulumi_aws/sfn/_inputs.py @@ -21,10 +21,8 @@ def __init__(__self__, *, state_machine_version_arn: pulumi.Input[str], weight: pulumi.Input[int]): """ - :param pulumi.Input[str] state_machine_version_arn: A version of the state machine. + :param pulumi.Input[str] state_machine_version_arn: The Amazon Resource Name (ARN) of the state machine version. :param pulumi.Input[int] weight: Percentage of traffic routed to the state machine version. - - The following arguments are optional: """ pulumi.set(__self__, "state_machine_version_arn", state_machine_version_arn) pulumi.set(__self__, "weight", weight) @@ -33,7 +31,7 @@ def __init__(__self__, *, @pulumi.getter(name="stateMachineVersionArn") def state_machine_version_arn(self) -> pulumi.Input[str]: """ - A version of the state machine. + The Amazon Resource Name (ARN) of the state machine version. """ return pulumi.get(self, "state_machine_version_arn") @@ -46,8 +44,6 @@ def state_machine_version_arn(self, value: pulumi.Input[str]): def weight(self) -> pulumi.Input[int]: """ Percentage of traffic routed to the state machine version. - - The following arguments are optional: """ return pulumi.get(self, "weight") diff --git a/sdk/python/pulumi_aws/sfn/outputs.py b/sdk/python/pulumi_aws/sfn/outputs.py index 6ebe69e5cc5..4911adfded5 100644 --- a/sdk/python/pulumi_aws/sfn/outputs.py +++ b/sdk/python/pulumi_aws/sfn/outputs.py @@ -39,10 +39,8 @@ def __init__(__self__, *, state_machine_version_arn: str, weight: int): """ - :param str state_machine_version_arn: A version of the state machine. + :param str state_machine_version_arn: The Amazon Resource Name (ARN) of the state machine version. :param int weight: Percentage of traffic routed to the state machine version. - - The following arguments are optional: """ pulumi.set(__self__, "state_machine_version_arn", state_machine_version_arn) pulumi.set(__self__, "weight", weight) @@ -51,7 +49,7 @@ def __init__(__self__, *, @pulumi.getter(name="stateMachineVersionArn") def state_machine_version_arn(self) -> str: """ - A version of the state machine. + The Amazon Resource Name (ARN) of the state machine version. """ return pulumi.get(self, "state_machine_version_arn") @@ -60,8 +58,6 @@ def state_machine_version_arn(self) -> str: def weight(self) -> int: """ Percentage of traffic routed to the state machine version. - - The following arguments are optional: """ return pulumi.get(self, "weight") diff --git a/sdk/python/pulumi_aws/vpclattice/_inputs.py b/sdk/python/pulumi_aws/vpclattice/_inputs.py index 0e4273c5e86..5e2208f8767 100644 --- a/sdk/python/pulumi_aws/vpclattice/_inputs.py +++ b/sdk/python/pulumi_aws/vpclattice/_inputs.py @@ -610,7 +610,7 @@ def __init__(__self__, *, port: Optional[pulumi.Input[int]] = None): """ :param pulumi.Input[str] id: The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer. - :param pulumi.Input[int] port: The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + :param pulumi.Input[int] port: This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. """ pulumi.set(__self__, "id", id) if port is not None: @@ -632,7 +632,7 @@ def id(self, value: pulumi.Input[str]): @pulumi.getter def port(self) -> Optional[pulumi.Input[int]]: """ - The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. """ return pulumi.get(self, "port") diff --git a/sdk/python/pulumi_aws/vpclattice/get_service.py b/sdk/python/pulumi_aws/vpclattice/get_service.py index 0e3fb6be90d..b0201dbaa72 100644 --- a/sdk/python/pulumi_aws/vpclattice/get_service.py +++ b/sdk/python/pulumi_aws/vpclattice/get_service.py @@ -166,7 +166,7 @@ def get_service(name: Optional[str] = None, :param str name: Service name. - :param str service_identifier: ID or Amazon Resource Name (ARN) of the service network. + :param str service_identifier: ID or Amazon Resource Name (ARN) of the service. :param Mapping[str, str] tags: List of tags associated with the service. """ __args__ = dict() @@ -209,7 +209,7 @@ def get_service_output(name: Optional[pulumi.Input[Optional[str]]] = None, :param str name: Service name. - :param str service_identifier: ID or Amazon Resource Name (ARN) of the service network. + :param str service_identifier: ID or Amazon Resource Name (ARN) of the service. :param Mapping[str, str] tags: List of tags associated with the service. """ ... diff --git a/sdk/python/pulumi_aws/vpclattice/get_service_network.py b/sdk/python/pulumi_aws/vpclattice/get_service_network.py index db0969fde9f..50e58e4ae69 100644 --- a/sdk/python/pulumi_aws/vpclattice/get_service_network.py +++ b/sdk/python/pulumi_aws/vpclattice/get_service_network.py @@ -159,11 +159,11 @@ def get_service_network(service_network_identifier: Optional[str] = None, import pulumi import pulumi_aws as aws - example = aws.vpclattice.get_service_network(service_network_identifier="") + example = aws.vpclattice.get_service_network(service_network_identifier="snsa-01112223334445556") ``` - :param str service_network_identifier: Identifier of the network service. + :param str service_network_identifier: Identifier of the service network. """ __args__ = dict() __args__['serviceNetworkIdentifier'] = service_network_identifier @@ -198,10 +198,10 @@ def get_service_network_output(service_network_identifier: Optional[pulumi.Input import pulumi import pulumi_aws as aws - example = aws.vpclattice.get_service_network(service_network_identifier="") + example = aws.vpclattice.get_service_network(service_network_identifier="snsa-01112223334445556") ``` - :param str service_network_identifier: Identifier of the network service. + :param str service_network_identifier: Identifier of the service network. """ ... diff --git a/sdk/python/pulumi_aws/vpclattice/listener_rule.py b/sdk/python/pulumi_aws/vpclattice/listener_rule.py index f6b73bd1f4c..b83ac7bd8b0 100644 --- a/sdk/python/pulumi_aws/vpclattice/listener_rule.py +++ b/sdk/python/pulumi_aws/vpclattice/listener_rule.py @@ -25,7 +25,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a ListenerRule resource. - :param pulumi.Input['ListenerRuleActionArgs'] action: The action for the default rule. + :param pulumi.Input['ListenerRuleActionArgs'] action: The action for the listener rule. :param pulumi.Input[str] listener_identifier: The ID or Amazon Resource Name (ARN) of the listener. :param pulumi.Input['ListenerRuleMatchArgs'] match: The rule match. :param pulumi.Input[int] priority: The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority. @@ -49,7 +49,7 @@ def __init__(__self__, *, @pulumi.getter def action(self) -> pulumi.Input['ListenerRuleActionArgs']: """ - The action for the default rule. + The action for the listener rule. """ return pulumi.get(self, "action") @@ -147,15 +147,15 @@ def __init__(__self__, *, tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering ListenerRule resources. - :param pulumi.Input['ListenerRuleActionArgs'] action: The action for the default rule. - :param pulumi.Input[str] arn: ARN of the target group. + :param pulumi.Input['ListenerRuleActionArgs'] action: The action for the listener rule. + :param pulumi.Input[str] arn: The ARN for the listener rule. :param pulumi.Input[str] listener_identifier: The ID or Amazon Resource Name (ARN) of the listener. :param pulumi.Input['ListenerRuleMatchArgs'] match: The rule match. :param pulumi.Input[str] name: The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. :param pulumi.Input[int] priority: The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority. The following arguments are optional: - :param pulumi.Input[str] rule_id: Unique identifier for the target group. + :param pulumi.Input[str] rule_id: Unique identifier for the listener rule. :param pulumi.Input[str] service_identifier: The ID or Amazon Resource Identifier (ARN) of the service. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. @@ -188,7 +188,7 @@ def __init__(__self__, *, @pulumi.getter def action(self) -> Optional[pulumi.Input['ListenerRuleActionArgs']]: """ - The action for the default rule. + The action for the listener rule. """ return pulumi.get(self, "action") @@ -200,7 +200,7 @@ def action(self, value: Optional[pulumi.Input['ListenerRuleActionArgs']]): @pulumi.getter def arn(self) -> Optional[pulumi.Input[str]]: """ - ARN of the target group. + The ARN for the listener rule. """ return pulumi.get(self, "arn") @@ -262,7 +262,7 @@ def priority(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="ruleId") def rule_id(self) -> Optional[pulumi.Input[str]]: """ - Unique identifier for the target group. + Unique identifier for the listener rule. """ return pulumi.get(self, "rule_id") @@ -405,7 +405,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['ListenerRuleActionArgs']] action: The action for the default rule. + :param pulumi.Input[pulumi.InputType['ListenerRuleActionArgs']] action: The action for the listener rule. :param pulumi.Input[str] listener_identifier: The ID or Amazon Resource Name (ARN) of the listener. :param pulumi.Input[pulumi.InputType['ListenerRuleMatchArgs']] match: The rule match. :param pulumi.Input[str] name: The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. @@ -581,15 +581,15 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['ListenerRuleActionArgs']] action: The action for the default rule. - :param pulumi.Input[str] arn: ARN of the target group. + :param pulumi.Input[pulumi.InputType['ListenerRuleActionArgs']] action: The action for the listener rule. + :param pulumi.Input[str] arn: The ARN for the listener rule. :param pulumi.Input[str] listener_identifier: The ID or Amazon Resource Name (ARN) of the listener. :param pulumi.Input[pulumi.InputType['ListenerRuleMatchArgs']] match: The rule match. :param pulumi.Input[str] name: The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. :param pulumi.Input[int] priority: The priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority. The following arguments are optional: - :param pulumi.Input[str] rule_id: Unique identifier for the target group. + :param pulumi.Input[str] rule_id: Unique identifier for the listener rule. :param pulumi.Input[str] service_identifier: The ID or Amazon Resource Identifier (ARN) of the service. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. @@ -614,7 +614,7 @@ def get(resource_name: str, @pulumi.getter def action(self) -> pulumi.Output['outputs.ListenerRuleAction']: """ - The action for the default rule. + The action for the listener rule. """ return pulumi.get(self, "action") @@ -622,7 +622,7 @@ def action(self) -> pulumi.Output['outputs.ListenerRuleAction']: @pulumi.getter def arn(self) -> pulumi.Output[str]: """ - ARN of the target group. + The ARN for the listener rule. """ return pulumi.get(self, "arn") @@ -664,7 +664,7 @@ def priority(self) -> pulumi.Output[int]: @pulumi.getter(name="ruleId") def rule_id(self) -> pulumi.Output[str]: """ - Unique identifier for the target group. + Unique identifier for the listener rule. """ return pulumi.get(self, "rule_id") diff --git a/sdk/python/pulumi_aws/vpclattice/outputs.py b/sdk/python/pulumi_aws/vpclattice/outputs.py index 3e3db3769fb..e7582c4283b 100644 --- a/sdk/python/pulumi_aws/vpclattice/outputs.py +++ b/sdk/python/pulumi_aws/vpclattice/outputs.py @@ -740,7 +740,7 @@ def __init__(__self__, *, port: Optional[int] = None): """ :param str id: The ID of the target. If the target type of the target group is INSTANCE, this is an instance ID. If the target type is IP , this is an IP address. If the target type is LAMBDA, this is the ARN of the Lambda function. If the target type is ALB, this is the ARN of the Application Load Balancer. - :param int port: The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + :param int port: This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. """ pulumi.set(__self__, "id", id) if port is not None: @@ -758,7 +758,7 @@ def id(self) -> str: @pulumi.getter def port(self) -> Optional[int]: """ - The port on which the target is listening. For HTTP, the default is 80. For HTTPS, the default is 443. + This port is used for routing traffic to the target, and defaults to the target group port. However, you can override the default and specify a custom port. """ return pulumi.get(self, "port") diff --git a/sdk/python/pulumi_aws/vpclattice/target_group.py b/sdk/python/pulumi_aws/vpclattice/target_group.py index 3cc4432362c..2c0c3490477 100644 --- a/sdk/python/pulumi_aws/vpclattice/target_group.py +++ b/sdk/python/pulumi_aws/vpclattice/target_group.py @@ -241,9 +241,9 @@ def __init__(__self__, example = aws.vpclattice.TargetGroup("example", type="INSTANCE", config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], port=443, protocol="HTTPS", - vpc_identifier=aws_vpc["example"]["id"], )) ``` ### Basic usage with Health check @@ -253,11 +253,12 @@ def __init__(__self__, import pulumi_aws as aws example = aws.vpclattice.TargetGroup("example", - type="ALB", + type="IP", config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], + ip_address_type="IPV4", port=443, protocol="HTTPS", - vpc_identifier=aws_vpc["example"]["id"], protocol_version="HTTP1", health_check=aws.vpclattice.TargetGroupConfigHealthCheckArgs( enabled=True, @@ -275,6 +276,23 @@ def __init__(__self__, ), )) ``` + ### ALB + + If the type is ALB, `health_check` block is not supported. + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.vpclattice.TargetGroup("example", + type="ALB", + config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], + port=443, + protocol="HTTPS", + protocol_version="HTTP1", + )) + ``` ### Lambda If the type is Lambda, `config` block is not supported. @@ -322,9 +340,9 @@ def __init__(__self__, example = aws.vpclattice.TargetGroup("example", type="INSTANCE", config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], port=443, protocol="HTTPS", - vpc_identifier=aws_vpc["example"]["id"], )) ``` ### Basic usage with Health check @@ -334,11 +352,12 @@ def __init__(__self__, import pulumi_aws as aws example = aws.vpclattice.TargetGroup("example", - type="ALB", + type="IP", config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], + ip_address_type="IPV4", port=443, protocol="HTTPS", - vpc_identifier=aws_vpc["example"]["id"], protocol_version="HTTP1", health_check=aws.vpclattice.TargetGroupConfigHealthCheckArgs( enabled=True, @@ -356,6 +375,23 @@ def __init__(__self__, ), )) ``` + ### ALB + + If the type is ALB, `health_check` block is not supported. + + ```python + import pulumi + import pulumi_aws as aws + + example = aws.vpclattice.TargetGroup("example", + type="ALB", + config=aws.vpclattice.TargetGroupConfigArgs( + vpc_identifier=aws_vpc["example"]["id"], + port=443, + protocol="HTTPS", + protocol_version="HTTP1", + )) + ``` ### Lambda If the type is Lambda, `config` block is not supported. diff --git a/sdk/python/pulumi_aws/wafv2/_inputs.py b/sdk/python/pulumi_aws/wafv2/_inputs.py index fc4179dc849..f1a1fd6d4d6 100644 --- a/sdk/python/pulumi_aws/wafv2/_inputs.py +++ b/sdk/python/pulumi_aws/wafv2/_inputs.py @@ -61,6 +61,21 @@ 'RuleGroupRuleStatementNotStatementArgs', 'RuleGroupRuleStatementOrStatementArgs', 'RuleGroupRuleStatementRateBasedStatementArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs', 'RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs', 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs', 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs', @@ -511,6 +526,21 @@ 'WebAclRuleStatementNotStatementArgs', 'WebAclRuleStatementOrStatementArgs', 'WebAclRuleStatementRateBasedStatementArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyIpArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs', + 'WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs', 'WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs', 'WebAclRuleStatementRateBasedStatementScopeDownStatementArgs', 'WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs', @@ -2720,17 +2750,21 @@ class RuleGroupRuleStatementRateBasedStatementArgs: def __init__(__self__, *, limit: pulumi.Input[int], aggregate_key_type: Optional[pulumi.Input[str]] = None, + custom_keys: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyArgs']]]] = None, forwarded_ip_config: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs']] = None, scope_down_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs']] = None): """ :param pulumi.Input[int] limit: The limit on requests per 5-minute period for a single originating IP address. - :param pulumi.Input[str] aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param pulumi.Input[str] aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyArgs']]] custom_keys: Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs'] forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs'] scope_down_statement: An optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See Statement above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. """ pulumi.set(__self__, "limit", limit) if aggregate_key_type is not None: pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) + if custom_keys is not None: + pulumi.set(__self__, "custom_keys", custom_keys) if forwarded_ip_config is not None: pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) if scope_down_statement is not None: @@ -2752,7 +2786,7 @@ def limit(self, value: pulumi.Input[int]): @pulumi.getter(name="aggregateKeyType") def aggregate_key_type(self) -> Optional[pulumi.Input[str]]: """ - Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. """ return pulumi.get(self, "aggregate_key_type") @@ -2760,6 +2794,18 @@ def aggregate_key_type(self) -> Optional[pulumi.Input[str]]: def aggregate_key_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "aggregate_key_type", value) + @property + @pulumi.getter(name="customKeys") + def custom_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyArgs']]]]: + """ + Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + """ + return pulumi.get(self, "custom_keys") + + @custom_keys.setter + def custom_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyArgs']]]]): + pulumi.set(self, "custom_keys", value) + @property @pulumi.getter(name="forwardedIpConfig") def forwarded_ip_config(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs']]: @@ -2786,668 +2832,2140 @@ def scope_down_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatem @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs: - def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str]): - """ - :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - - @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: - """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - """ - return pulumi.get(self, "fallback_behavior") - - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) +class RuleGroupRuleStatementRateBasedStatementCustomKeyArgs: + def __init__(__self__, *, + cookie: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs']] = None, + forwarded_ip: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']] = None, + header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs']] = None, + http_method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']] = None, + ip: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs']] = None, + label_namespace: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']] = None, + query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs']] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs'] cookie: (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs'] forwarded_ip: (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs'] header: (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs'] http_method: (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs'] ip: (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs'] label_namespace: (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs'] query_argument: (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + if cookie is not None: + pulumi.set(__self__, "cookie", cookie) + if forwarded_ip is not None: + pulumi.set(__self__, "forwarded_ip", forwarded_ip) + if header is not None: + pulumi.set(__self__, "header", header) + if http_method is not None: + pulumi.set(__self__, "http_method", http_method) + if ip is not None: + pulumi.set(__self__, "ip", ip) + if label_namespace is not None: + pulumi.set(__self__, "label_namespace", label_namespace) + if query_argument is not None: + pulumi.set(__self__, "query_argument", query_argument) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + @pulumi.getter + def cookie(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs']]: """ - The name of the HTTP header to use for the IP address. + (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. """ - return pulumi.get(self, "header_name") - - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + return pulumi.get(self, "cookie") - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs: - def __init__(__self__, *, - and_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']] = None, - byte_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']] = None, - geo_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']] = None, - ip_set_reference_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']] = None, - label_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']] = None, - not_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']] = None, - or_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']] = None, - regex_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']] = None, - regex_pattern_set_reference_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']] = None, - size_constraint_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']] = None, - sqli_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']] = None, - xss_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']] = None): - """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs'] and_statement: A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs'] byte_match_statement: A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs'] geo_match_statement: A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs'] label_match_statement: A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs'] not_statement: A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs'] or_statement: A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs'] regex_match_statement: A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs'] size_constraint_statement: A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs'] xss_match_statement: A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. - """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + @cookie.setter + def cookie(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs']]): + pulumi.set(self, "cookie", value) @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']]: + @pulumi.getter(name="forwardedIp") + def forwarded_ip(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']]: """ - A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "forwarded_ip") - @and_statement.setter - def and_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']]): - pulumi.set(self, "and_statement", value) + @forwarded_ip.setter + def forwarded_ip(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']]): + pulumi.set(self, "forwarded_ip", value) @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']]: + @pulumi.getter + def header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs']]: """ - A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. """ - return pulumi.get(self, "byte_match_statement") + return pulumi.get(self, "header") - @byte_match_statement.setter - def byte_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']]): - pulumi.set(self, "byte_match_statement", value) + @header.setter + def header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs']]): + pulumi.set(self, "header", value) @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']]: + @pulumi.getter(name="httpMethod") + def http_method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']]: """ - A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. """ - return pulumi.get(self, "geo_match_statement") + return pulumi.get(self, "http_method") - @geo_match_statement.setter - def geo_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']]): - pulumi.set(self, "geo_match_statement", value) + @http_method.setter + def http_method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']]): + pulumi.set(self, "http_method", value) @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']]: + @pulumi.getter + def ip(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs']]: """ - A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. """ - return pulumi.get(self, "ip_set_reference_statement") + return pulumi.get(self, "ip") - @ip_set_reference_statement.setter - def ip_set_reference_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']]): - pulumi.set(self, "ip_set_reference_statement", value) + @ip.setter + def ip(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs']]): + pulumi.set(self, "ip", value) @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']]: + @pulumi.getter(name="labelNamespace") + def label_namespace(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']]: """ - A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "label_namespace") - @label_match_statement.setter - def label_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']]): - pulumi.set(self, "label_match_statement", value) + @label_namespace.setter + def label_namespace(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']]): + pulumi.set(self, "label_namespace", value) @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']]: + @pulumi.getter(name="queryArgument") + def query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']]: """ - A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. """ - return pulumi.get(self, "not_statement") + return pulumi.get(self, "query_argument") - @not_statement.setter - def not_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']]): - pulumi.set(self, "not_statement", value) + @query_argument.setter + def query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']]): + pulumi.set(self, "query_argument", value) @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs']]: """ - A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "query_string") - @or_statement.setter - def or_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']]): - pulumi.set(self, "or_statement", value) + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs']]): + pulumi.set(self, "query_string", value) @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']]: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs']]: """ - A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "regex_match_statement") - - @regex_match_statement.setter - def regex_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']]): - pulumi.set(self, "regex_match_statement", value) + return pulumi.get(self, "uri_path") - @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]: - """ - A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - """ - return pulumi.get(self, "regex_pattern_set_reference_statement") + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs']]): + pulumi.set(self, "uri_path", value) - @regex_pattern_set_reference_statement.setter - def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]): - pulumi.set(self, "regex_pattern_set_reference_statement", value) - @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']]: +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]): """ - A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + :param pulumi.Input[str] name: A friendly name of the rule group. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "size_constraint_statement") - - @size_constraint_statement.setter - def size_constraint_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']]): - pulumi.set(self, "size_constraint_statement", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + A friendly name of the rule group. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "name") - @sqli_match_statement.setter - def sqli_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']]): - pulumi.set(self, "sqli_match_statement", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]: """ - A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "text_transformations") - @xss_match_statement.setter - def xss_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']]): - pulumi.set(self, "xss_match_statement", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + def priority(self) -> pulumi.Input[int]: """ - The statements to combine. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "priority") - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): - pulumi.set(self, "statements", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs: def __init__(__self__, *, - positional_constraint: pulumi.Input[str], - search_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']] = None): + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]): """ - :param pulumi.Input[str] positional_constraint: The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param pulumi.Input[str] search_string: A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] name: A friendly name of the rule group. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "name", name) pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) - - @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> pulumi.Input[str]: - """ - The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - """ - return pulumi.get(self, "positional_constraint") - - @positional_constraint.setter - def positional_constraint(self, value: pulumi.Input[str]): - pulumi.set(self, "positional_constraint", value) @property - @pulumi.getter(name="searchString") - def search_string(self) -> pulumi.Input[str]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + A friendly name of the rule group. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "name") - @search_string.setter - def search_string(self, value: pulumi.Input[str]): - pulumi.set(self, "search_string", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) - @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]: - """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - """ - return pulumi.get(self, "field_to_match") - - @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]): - pulumi.set(self, "field_to_match", value) - @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - Inspect all query arguments. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "all_query_arguments") + return pulumi.get(self, "priority") - @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): - pulumi.set(self, "all_query_arguments", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]: + def type(self) -> pulumi.Input[str]: """ - Inspect the request body, which immediately follows the request headers. + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "body") + return pulumi.get(self, "type") - @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]): - pulumi.set(self, "body", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) - @property - @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]: - """ - Inspect the cookies in the web request. See Cookies below for details. - """ - return pulumi.get(self, "cookies") - @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]): - pulumi.set(self, "cookies", value) +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs: + def __init__(__self__): + pass - @property - @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: - """ - Inspect the request headers. See Headers below for details. - """ - return pulumi.get(self, "headers") - @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): - pulumi.set(self, "headers", value) +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs: + def __init__(__self__, *, + namespace: pulumi.Input[str]): """ - Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input[str] namespace: The namespace to use for aggregation """ - return pulumi.get(self, "json_body") - - @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): - pulumi.set(self, "json_body", value) + pulumi.set(__self__, "namespace", namespace) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]: + def namespace(self) -> pulumi.Input[str]: """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + The namespace to use for aggregation """ - return pulumi.get(self, "method") + return pulumi.get(self, "namespace") - @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]): - pulumi.set(self, "method", value) + @namespace.setter + def namespace(self, value: pulumi.Input[str]): + pulumi.set(self, "namespace", value) - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]: + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]): """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input[str] name: A friendly name of the rule group. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "query_string") - - @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]): - pulumi.set(self, "query_string", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Inspect a single header. See Single Header below for details. + A friendly name of the rule group. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "name") - @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): - pulumi.set(self, "single_header", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]: """ - Inspect a single query argument. See Single Query Argument below for details. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "single_query_argument") + return pulumi.get(self, "text_transformations") - @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): - pulumi.set(self, "single_query_argument", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs: + def __init__(__self__, *, + priority: pulumi.Input[int], + type: pulumi.Input[str]): + """ + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "uri_path") + return pulumi.get(self, "priority") - @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]): - pulumi.set(self, "uri_path", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: - def __init__(__self__): - pass + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs: def __init__(__self__, *, - oversize_handling: Optional[pulumi.Input[str]] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]): """ - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "text_transformations") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "priority") - @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): - pulumi.set(self, "match_patterns", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter + def type(self) -> pulumi.Input[str]: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "type") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs: + def __init__(__self__, *, + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + """ + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "text_transformations") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, - excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def priority(self) -> pulumi.Input[int]: """ - An empty configuration block that is used for inspecting all headers. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "excluded_cookies") + return pulumi.get(self, "priority") - @excluded_cookies.setter - def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_cookies", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_cookies") + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") - @included_cookies.setter - def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_cookies", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: - def __init__(__self__): - pass - - +class RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs: + def __init__(__self__, *, + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str]): + """ + :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. + """ + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + + @property + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: + """ + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + """ + return pulumi.get(self, "fallback_behavior") + + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) + + @property + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: + """ + The name of the HTTP header to use for the IP address. + """ + return pulumi.get(self, "header_name") + + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs: + def __init__(__self__, *, + and_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']] = None, + byte_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']] = None, + geo_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']] = None, + ip_set_reference_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']] = None, + label_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']] = None, + not_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']] = None, + or_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']] = None, + regex_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']] = None, + regex_pattern_set_reference_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']] = None, + size_constraint_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']] = None, + sqli_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']] = None, + xss_match_statement: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs'] and_statement: A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs'] byte_match_statement: A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs'] geo_match_statement: A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs'] label_match_statement: A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs'] not_statement: A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs'] or_statement: A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs'] regex_match_statement: A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs'] size_constraint_statement: A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs'] xss_match_statement: A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + """ + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) + + @property + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']]: + """ + A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + """ + return pulumi.get(self, "and_statement") + + @and_statement.setter + def and_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs']]): + pulumi.set(self, "and_statement", value) + + @property + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']]: + """ + A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + """ + return pulumi.get(self, "byte_match_statement") + + @byte_match_statement.setter + def byte_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs']]): + pulumi.set(self, "byte_match_statement", value) + + @property + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']]: + """ + A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + """ + return pulumi.get(self, "geo_match_statement") + + @geo_match_statement.setter + def geo_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs']]): + pulumi.set(self, "geo_match_statement", value) + + @property + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']]: + """ + A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + """ + return pulumi.get(self, "ip_set_reference_statement") + + @ip_set_reference_statement.setter + def ip_set_reference_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs']]): + pulumi.set(self, "ip_set_reference_statement", value) + + @property + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']]: + """ + A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + """ + return pulumi.get(self, "label_match_statement") + + @label_match_statement.setter + def label_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs']]): + pulumi.set(self, "label_match_statement", value) + + @property + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']]: + """ + A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + """ + return pulumi.get(self, "not_statement") + + @not_statement.setter + def not_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs']]): + pulumi.set(self, "not_statement", value) + + @property + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']]: + """ + A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + """ + return pulumi.get(self, "or_statement") + + @or_statement.setter + def or_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs']]): + pulumi.set(self, "or_statement", value) + + @property + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']]: + """ + A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + """ + return pulumi.get(self, "regex_match_statement") + + @regex_match_statement.setter + def regex_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs']]): + pulumi.set(self, "regex_match_statement", value) + + @property + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]: + """ + A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. + """ + return pulumi.get(self, "regex_pattern_set_reference_statement") + + @regex_pattern_set_reference_statement.setter + def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]): + pulumi.set(self, "regex_pattern_set_reference_statement", value) + + @property + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']]: + """ + A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + """ + return pulumi.get(self, "size_constraint_statement") + + @size_constraint_statement.setter + def size_constraint_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs']]): + pulumi.set(self, "size_constraint_statement", value) + + @property + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']]: + """ + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + """ + return pulumi.get(self, "sqli_match_statement") + + @sqli_match_statement.setter + def sqli_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs']]): + pulumi.set(self, "sqli_match_statement", value) + + @property + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']]: + """ + A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + """ + return pulumi.get(self, "xss_match_statement") + + @xss_match_statement.setter + def xss_match_statement(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs']]): + pulumi.set(self, "xss_match_statement", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs: + def __init__(__self__, *, + statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) + + @property + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") + + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + pulumi.set(self, "statements", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs: + def __init__(__self__, *, + positional_constraint: pulumi.Input[str], + search_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']] = None): + """ + :param pulumi.Input[str] positional_constraint: The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param pulumi.Input[str] search_string: A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + """ + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) + + @property + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> pulumi.Input[str]: + """ + The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + """ + return pulumi.get(self, "positional_constraint") + + @positional_constraint.setter + def positional_constraint(self, value: pulumi.Input[str]): + pulumi.set(self, "positional_constraint", value) + + @property + @pulumi.getter(name="searchString") + def search_string(self) -> pulumi.Input[str]: + """ + A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + """ + return pulumi.get(self, "search_string") + + @search_string.setter + def search_string(self, value: pulumi.Input[str]): + pulumi.set(self, "search_string", value) + + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + """ + return pulumi.get(self, "text_transformations") + + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) + + @property + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]: + """ + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + """ + return pulumi.get(self, "field_to_match") + + @field_to_match.setter + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]): + pulumi.set(self, "field_to_match", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs: + def __init__(__self__, *, + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) + + @property + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + """ + Inspect all query arguments. + """ + return pulumi.get(self, "all_query_arguments") + + @all_query_arguments.setter + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + pulumi.set(self, "all_query_arguments", value) + + @property + @pulumi.getter + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]: + """ + Inspect the request body, which immediately follows the request headers. + """ + return pulumi.get(self, "body") + + @body.setter + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]): + pulumi.set(self, "body", value) + + @property + @pulumi.getter + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]: + """ + Inspect the cookies in the web request. See Cookies below for details. + """ + return pulumi.get(self, "cookies") + + @cookies.setter + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]): + pulumi.set(self, "cookies", value) + + @property + @pulumi.getter + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: + """ + Inspect the request headers. See Headers below for details. + """ + return pulumi.get(self, "headers") + + @headers.setter + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): + pulumi.set(self, "headers", value) + + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: + """ + Inspect the request body as JSON. See JSON Body for details. + """ + return pulumi.get(self, "json_body") + + @json_body.setter + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): + pulumi.set(self, "json_body", value) + + @property + @pulumi.getter + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") + + @method.setter + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]): + pulumi.set(self, "method", value) + + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]): + pulumi.set(self, "query_string", value) + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") + + @single_header.setter + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): + pulumi.set(self, "single_header", value) + + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + """ + Inspect a single query argument. See Single Query Argument below for details. + """ + return pulumi.get(self, "single_query_argument") + + @single_query_argument.setter + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + pulumi.set(self, "single_query_argument", value) + + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]: + """ + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") + + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]): + pulumi.set(self, "uri_path", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs: + def __init__(__self__, *, + oversize_handling: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: + """ + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs: + def __init__(__self__, *, + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): + """ + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + """ + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + """ + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + """ + return pulumi.get(self, "match_patterns") + + @match_patterns.setter + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + pulumi.set(self, "match_patterns", value) + + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: + """ + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + """ + return pulumi.get(self, "match_scope") + + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: + """ + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: + def __init__(__self__, *, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + """ + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) + + @property + @pulumi.getter + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + """ + An empty configuration block that is used for inspecting all headers. + """ + return pulumi.get(self, "all") + + @all.setter + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + + @property + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "excluded_cookies") + + @excluded_cookies.setter + def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_cookies", value) + + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_cookies") + + @included_cookies.setter + def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_cookies", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs: + def __init__(__self__, *, + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: + """ + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + """ + return pulumi.get(self, "match_pattern") + + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) + + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: + """ + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + """ + return pulumi.get(self, "match_scope") + + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: + """ + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: + def __init__(__self__, *, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + """ + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) + + @property + @pulumi.getter + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + """ + An empty configuration block that is used for inspecting all headers. + """ + return pulumi.get(self, "all") + + @all.setter + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + + @property + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + """ + return pulumi.get(self, "excluded_headers") + + @excluded_headers.setter + def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_headers", value) + + @property + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + """ + return pulumi.get(self, "included_headers") + + @included_headers.setter + def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_headers", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs: + def __init__(__self__, *, + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_scope: pulumi.Input[str], + invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, + oversize_handling: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + """ + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + """ + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + """ + return pulumi.get(self, "match_pattern") + + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) + + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: + """ + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + """ + return pulumi.get(self, "match_scope") + + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) + + @property + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: + """ + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + """ + return pulumi.get(self, "invalid_fallback_behavior") + + @invalid_fallback_behavior.setter + def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "invalid_fallback_behavior", value) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: + """ + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: + def __init__(__self__, *, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + """ + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) + + @property + @pulumi.getter + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + """ + An empty configuration block that is used for inspecting all headers. + """ + return pulumi.get(self, "all") + + @all.setter + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + + @property + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_paths") + + @included_paths.setter + def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_paths", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the query header to inspect. This setting must be provided as lower case characters. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the query header to inspect. This setting must be provided as lower case characters. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs: + def __init__(__self__, *, + priority: pulumi.Input[int], + type: pulumi.Input[str]): + """ + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def priority(self) -> pulumi.Input[int]: + """ + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + """ + return pulumi.get(self, "priority") + + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs: + def __init__(__self__, *, + country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], + forwarded_ip_config: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']] = None): + """ + :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + """ + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + + @property + @pulumi.getter(name="countryCodes") + def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + """ + An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + """ + return pulumi.get(self, "country_codes") + + @country_codes.setter + def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "country_codes", value) + + @property + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]: + """ + The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + """ + return pulumi.get(self, "forwarded_ip_config") + + @forwarded_ip_config.setter + def forwarded_ip_config(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]): + pulumi.set(self, "forwarded_ip_config", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs: + def __init__(__self__, *, + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str]): + """ + :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. + """ + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + + @property + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: + """ + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + """ + return pulumi.get(self, "fallback_behavior") + + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) + + @property + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: + """ + The name of the HTTP header to use for the IP address. + """ + return pulumi.get(self, "header_name") + + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs: + def __init__(__self__, *, + arn: pulumi.Input[str], + ip_set_forwarded_ip_config: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): + """ + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + """ + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + + @property + @pulumi.getter + def arn(self) -> pulumi.Input[str]: + """ + The Amazon Resource Name (ARN) of the IP Set that this statement references. + """ + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) + + @property + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: + """ + The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + """ + return pulumi.get(self, "ip_set_forwarded_ip_config") + + @ip_set_forwarded_ip_config.setter + def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): + pulumi.set(self, "ip_set_forwarded_ip_config", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: + def __init__(__self__, *, + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str], + position: pulumi.Input[str]): + """ + :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. + :param pulumi.Input[str] position: The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + """ + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) + + @property + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: + """ + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + """ + return pulumi.get(self, "fallback_behavior") + + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) + + @property + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: + """ + The name of the HTTP header to use for the IP address. + """ + return pulumi.get(self, "header_name") + + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) + + @property + @pulumi.getter + def position(self) -> pulumi.Input[str]: + """ + The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + """ + return pulumi.get(self, "position") + + @position.setter + def position(self, value: pulumi.Input[str]): + pulumi.set(self, "position", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + scope: pulumi.Input[str]): + """ + :param pulumi.Input[str] key: The string to match against. + :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) + + @property + @pulumi.getter + def key(self) -> pulumi.Input[str]: + """ + The string to match against. + """ + return pulumi.get(self, "key") + + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) + + @property + @pulumi.getter + def scope(self) -> pulumi.Input[str]: + """ + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + """ + return pulumi.get(self, "scope") + + @scope.setter + def scope(self, value: pulumi.Input[str]): + pulumi.set(self, "scope", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs: + def __init__(__self__, *, + statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) + + @property + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") + + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + pulumi.set(self, "statements", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs: + def __init__(__self__, *, + statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) + + @property + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") + + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + pulumi.set(self, "statements", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs: + def __init__(__self__, *, + regex_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']] = None): + """ + :param pulumi.Input[str] regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + """ + pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) + + @property + @pulumi.getter(name="regexString") + def regex_string(self) -> pulumi.Input[str]: + """ + The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + """ + return pulumi.get(self, "regex_string") + + @regex_string.setter + def regex_string(self, value: pulumi.Input[str]): + pulumi.set(self, "regex_string", value) + + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + """ + return pulumi.get(self, "text_transformations") + + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) + + @property + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]: + """ + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + """ + return pulumi.get(self, "field_to_match") + + @field_to_match.setter + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]): + pulumi.set(self, "field_to_match", value) + + @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): + """ + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) + + @property + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + """ + Inspect all query arguments. + """ + return pulumi.get(self, "all_query_arguments") + + @all_query_arguments.setter + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + pulumi.set(self, "all_query_arguments", value) + + @property + @pulumi.getter + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]: + """ + Inspect the request body, which immediately follows the request headers. + """ + return pulumi.get(self, "body") + + @body.setter + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]): + pulumi.set(self, "body", value) + + @property + @pulumi.getter + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]: + """ + Inspect the cookies in the web request. See Cookies below for details. + """ + return pulumi.get(self, "cookies") + + @cookies.setter + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]): + pulumi.set(self, "cookies", value) + + @property + @pulumi.getter + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: + """ + Inspect the request headers. See Headers below for details. + """ + return pulumi.get(self, "headers") + + @headers.setter + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): + pulumi.set(self, "headers", value) + + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: + """ + Inspect the request body as JSON. See JSON Body for details. + """ + return pulumi.get(self, "json_body") + + @json_body.setter + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): + pulumi.set(self, "json_body", value) + + @property + @pulumi.getter + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") + + @method.setter + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]): + pulumi.set(self, "method", value) + + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): + pulumi.set(self, "query_string", value) + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") + + @single_header.setter + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): + pulumi.set(self, "single_header", value) + + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + """ + Inspect a single query argument. See Single Query Argument below for details. + """ + return pulumi.get(self, "single_query_argument") + + @single_query_argument.setter + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + pulumi.set(self, "single_query_argument", value) + + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]: + """ + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") + + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]): + pulumi.set(self, "uri_path", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs: + def __init__(__self__, *, + oversize_handling: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: + """ + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs: + def __init__(__self__, *, + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ - pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_patterns", match_patterns) pulumi.set(__self__, "match_scope", match_scope) pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "match_patterns") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @match_patterns.setter + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + pulumi.set(self, "match_patterns", value) @property @pulumi.getter(name="matchScope") def match_scope(self) -> pulumi.Input[str]: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ return pulumi.get(self, "match_scope") @@ -3459,7 +4977,7 @@ def match_scope(self, value: pulumi.Input[str]): @pulumi.getter(name="oversizeHandling") def oversize_handling(self) -> pulumi.Input[str]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ return pulumi.get(self, "oversize_handling") @@ -3469,103 +4987,90 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, - excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - """ - return pulumi.get(self, "excluded_headers") + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "excluded_cookies") - @excluded_headers.setter - def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_headers", value) + @excluded_cookies.setter + def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_cookies", value) @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - """ - return pulumi.get(self, "included_headers") + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_cookies") - @included_headers.setter - def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_headers", value) + @included_cookies.setter + def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_cookies", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], - invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, - oversize_handling: Optional[pulumi.Input[str]] = None): + oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ pulumi.set(__self__, "match_pattern", match_pattern) pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @pulumi.getter(name="matchScope") def match_scope(self) -> pulumi.Input[str]: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ return pulumi.get(self, "match_scope") @@ -3573,450 +5078,322 @@ def match_scope(self) -> pulumi.Input[str]: def match_scope(self, value: pulumi.Input[str]): pulumi.set(self, "match_scope", value) - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: - """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "invalid_fallback_behavior") - - @invalid_fallback_behavior.setter - def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "invalid_fallback_behavior", value) - @property @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + def oversize_handling(self) -> pulumi.Input[str]: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ return pulumi.get(self, "oversize_handling") @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): + def oversize_handling(self, value: pulumi.Input[str]): pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, - included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ if all is not None: pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_paths") - - @included_paths.setter - def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_paths", value) - - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs: - def __init__(__self__, *, - name: pulumi.Input[str]): - """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - + return pulumi.get(self, "excluded_headers") -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: - def __init__(__self__, *, - name: pulumi.Input[str]): - """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) + @excluded_headers.setter + def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_headers", value) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "name") + return pulumi.get(self, "included_headers") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @included_headers.setter + def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_headers", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs: - def __init__(__self__, *, - priority: pulumi.Input[int], - type: pulumi.Input[str]): - """ - :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) - - @property - @pulumi.getter - def priority(self) -> pulumi.Input[int]: - """ - The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - """ - return pulumi.get(self, "priority") - - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) - - @property - @pulumi.getter - def type(self) -> pulumi.Input[str]: - """ - The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - return pulumi.get(self, "type") - - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) - - -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], - forwarded_ip_config: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']] = None): + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_scope: pulumi.Input[str], + invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, + oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "country_codes") + return pulumi.get(self, "match_pattern") - @country_codes.setter - def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "country_codes", value) + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "forwarded_ip_config") - - @forwarded_ip_config.setter - def forwarded_ip_config(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]): - pulumi.set(self, "forwarded_ip_config", value) - + return pulumi.get(self, "match_scope") -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs: - def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str]): - """ - :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "invalid_fallback_behavior") - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) + @invalid_fallback_behavior.setter + def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "invalid_fallback_behavior", value) @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - The name of the HTTP header to use for the IP address. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "oversize_handling") - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - ip_set_forwarded_ip_config: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "all") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @all.setter + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + pulumi.set(self, "all", value) @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: - """ - The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. - """ - return pulumi.get(self, "ip_set_forwarded_ip_config") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_paths") - @ip_set_forwarded_ip_config.setter - def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): - pulumi.set(self, "ip_set_forwarded_ip_config", value) + @included_paths.setter + def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_paths", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: - def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str], - position: pulumi.Input[str]): - """ - :param pulumi.Input[str] fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: The name of the HTTP header to use for the IP address. - :param pulumi.Input[str] position: The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: - """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - """ - return pulumi.get(self, "fallback_behavior") - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): """ - The name of the HTTP header to use for the IP address. + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "header_name") - - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def position(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "position") + return pulumi.get(self, "name") - @position.setter - def position(self, value: pulumi.Input[str]): - pulumi.set(self, "position", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, - key: pulumi.Input[str], - scope: pulumi.Input[str]): + name: pulumi.Input[str]): """ - :param pulumi.Input[str] key: The string to match against. - :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def key(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - The string to match against. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "key") + return pulumi.get(self, "name") - @key.setter - def key(self, value: pulumi.Input[str]): - pulumi.set(self, "key", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) - @property - @pulumi.getter - def scope(self) -> pulumi.Input[str]: - """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - """ - return pulumi.get(self, "scope") - @scope.setter - def scope(self, value: pulumi.Input[str]): - pulumi.set(self, "scope", value) +@pulumi.input_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs: + def __init__(__self__): + pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. - """ - pulumi.set(__self__, "statements", statements) - - @property - @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - The statements to combine. + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "statements") - - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): - pulumi.set(self, "statements", value) - + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) -@pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs: - def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): + @property + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]] statements: The statements to combine. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - pulumi.set(__self__, "statements", statements) + return pulumi.get(self, "priority") + + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]: + def type(self) -> pulumi.Input[str]: """ - The statements to combine. + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "type") - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementArgs']]]): - pulumi.set(self, "statements", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs: def __init__(__self__, *, - regex_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']] = None): + arn: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "arn", arn) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="regexString") - def regex_string(self) -> pulumi.Input[str]: + @pulumi.getter + def arn(self) -> pulumi.Input[str]: """ - The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "regex_string") + return pulumi.get(self, "arn") - @regex_string.setter - def regex_string(self, value: pulumi.Input[str]): - pulumi.set(self, "regex_string", value) + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -4025,46 +5402,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -4089,133 +5466,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -4238,13 +5615,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -4254,14 +5631,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -4290,13 +5667,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -4307,14 +5684,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -4337,19 +5714,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -4359,14 +5736,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -4395,13 +5772,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -4414,14 +5791,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -4450,20 +5827,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -4477,14 +5854,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -4525,12 +5902,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -4539,14 +5916,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -4560,25 +5937,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -4600,7 +5977,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -4622,13 +5999,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -4665,38 +6042,53 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): + comparison_operator: pulumi.Input[str], + size: pulumi.Input[int], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param pulumi.Input[int] size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> pulumi.Input[str]: + """ + The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + + @comparison_operator.setter + def comparison_operator(self, value: pulumi.Input[str]): + pulumi.set(self, "comparison_operator", value) + @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def size(self) -> pulumi.Input[int]: """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "size") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @size.setter + def size(self, value: pulumi.Input[int]): + pulumi.set(self, "size", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -4705,46 +6097,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -4769,133 +6161,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -4918,13 +6310,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -4934,14 +6326,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -4970,13 +6362,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -4987,14 +6379,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5017,19 +6409,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -5039,14 +6431,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -5075,13 +6467,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -5094,14 +6486,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5130,20 +6522,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -5157,14 +6549,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -5205,12 +6597,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -5219,14 +6611,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5240,25 +6632,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -5280,7 +6672,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -5302,13 +6694,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -5345,53 +6737,23 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs: def __init__(__self__, *, - comparison_operator: pulumi.Input[str], - size: pulumi.Input[int], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param pulumi.Input[int] size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> pulumi.Input[str]: - """ - The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - """ - return pulumi.get(self, "comparison_operator") - - @comparison_operator.setter - def comparison_operator(self, value: pulumi.Input[str]): - pulumi.set(self, "comparison_operator", value) - - @property - @pulumi.getter - def size(self) -> pulumi.Input[int]: - """ - The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - """ - return pulumi.get(self, "size") - - @size.setter - def size(self, value: pulumi.Input[int]): - pulumi.set(self, "size", value) - @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -5400,46 +6762,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -5464,133 +6826,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -5613,13 +6975,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -5629,14 +6991,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -5665,13 +7027,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -5682,14 +7044,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5712,19 +7074,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -5734,14 +7096,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -5770,13 +7132,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -5789,14 +7151,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5825,20 +7187,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -5852,14 +7214,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -5900,12 +7262,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -5914,14 +7276,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -5935,25 +7297,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -5975,7 +7337,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -5997,13 +7359,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -6040,15 +7402,15 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -6056,7 +7418,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -6065,46 +7427,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -6129,133 +7491,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -6278,13 +7640,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -6294,14 +7656,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -6330,13 +7692,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -6347,14 +7709,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -6377,19 +7739,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -6399,14 +7761,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -6435,13 +7797,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -6454,14 +7816,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -6490,20 +7852,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -6517,14 +7879,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -6565,12 +7927,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -6579,14 +7941,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -6600,25 +7962,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -6640,7 +8002,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -6662,13 +8024,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs: +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -6705,23 +8067,38 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs: +class RuleGroupRuleStatementRegexMatchStatementArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']] = None): + regex_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ + pulumi.set(__self__, "regex_string", regex_string) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="regexString") + def regex_string(self) -> pulumi.Input[str]: + """ + The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + """ + return pulumi.get(self, "regex_string") + + @regex_string.setter + def regex_string(self, value: pulumi.Input[str]): + pulumi.set(self, "regex_string", value) + @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -6730,46 +8107,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -6794,133 +8171,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -6943,13 +8320,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -6959,14 +8336,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -6995,13 +8372,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7012,14 +8389,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7042,19 +8419,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -7064,14 +8441,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -7100,13 +8477,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -7119,14 +8496,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7155,20 +8532,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -7182,14 +8559,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -7230,12 +8607,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7244,14 +8621,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7265,25 +8642,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -7305,7 +8682,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -7327,13 +8704,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs: +class RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -7370,38 +8747,38 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs: def __init__(__self__, *, - regex_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']] = None): + arn: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "arn", arn) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="regexString") - def regex_string(self) -> pulumi.Input[str]: + @pulumi.getter + def arn(self) -> pulumi.Input[str]: """ - The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "regex_string") + return pulumi.get(self, "arn") - @regex_string.setter - def regex_string(self, value: pulumi.Input[str]): - pulumi.set(self, "regex_string", value) + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -7410,46 +8787,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -7474,133 +8851,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -7623,13 +9000,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -7639,14 +9016,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -7675,13 +9052,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7692,14 +9069,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7722,19 +9099,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -7744,14 +9121,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -7780,13 +9157,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -7799,14 +9176,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7835,20 +9212,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -7862,14 +9239,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -7910,12 +9287,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7924,14 +9301,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -7945,25 +9322,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -7985,7 +9362,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -8007,13 +9384,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs: +class RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -8050,38 +9427,53 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementArgs: +class RuleGroupRuleStatementSizeConstraintStatementArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): + comparison_operator: pulumi.Input[str], + size: pulumi.Input[int], + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[str] comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param pulumi.Input[int] size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> pulumi.Input[str]: + """ + The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + + @comparison_operator.setter + def comparison_operator(self, value: pulumi.Input[str]): + pulumi.set(self, "comparison_operator", value) + @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def size(self) -> pulumi.Input[int]: """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "size") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @size.setter + def size(self, value: pulumi.Input[int]): + pulumi.set(self, "size", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -8090,46 +9482,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -8154,133 +9546,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -8303,13 +9695,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -8319,14 +9711,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -8355,13 +9747,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -8372,14 +9764,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -8402,19 +9794,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -8424,14 +9816,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -8460,13 +9852,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -8479,14 +9871,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -8515,20 +9907,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -8542,14 +9934,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -8590,12 +9982,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -8604,14 +9996,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -8625,25 +10017,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -8665,7 +10057,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -8687,13 +10079,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs: +class RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -8730,53 +10122,23 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementArgs: +class RuleGroupRuleStatementSqliMatchStatementArgs: def __init__(__self__, *, - comparison_operator: pulumi.Input[str], - size: pulumi.Input[int], - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param pulumi.Input[int] size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> pulumi.Input[str]: - """ - The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - """ - return pulumi.get(self, "comparison_operator") - - @comparison_operator.setter - def comparison_operator(self, value: pulumi.Input[str]): - pulumi.set(self, "comparison_operator", value) - - @property - @pulumi.getter - def size(self) -> pulumi.Input[int]: - """ - The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - """ - return pulumi.get(self, "size") - - @size.setter - def size(self, value: pulumi.Input[int]): - pulumi.set(self, "size", value) - @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -8785,46 +10147,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -8849,133 +10211,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -8998,13 +10360,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -9014,14 +10376,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -9050,13 +10412,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9067,14 +10429,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9097,19 +10459,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -9119,14 +10481,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -9155,13 +10517,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -9174,14 +10536,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9210,20 +10572,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -9237,14 +10599,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -9285,12 +10647,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9299,14 +10661,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9320,25 +10682,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -9360,7 +10722,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -9382,13 +10744,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs: +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs: +class RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -9425,15 +10787,15 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementArgs: +class RuleGroupRuleStatementXssMatchStatementArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -9441,7 +10803,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -9450,46 +10812,46 @@ def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupR return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']]: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -9514,133 +10876,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See Cookies below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See Headers below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See JSON Body for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See Single Header below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See Single Query Argument below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -9663,13 +11025,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -9679,14 +11041,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -9715,13 +11077,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9732,14 +11094,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9762,19 +11124,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -9784,14 +11146,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -9820,13 +11182,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -9839,14 +11201,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9875,20 +11237,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -9902,14 +11264,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -9950,12 +11312,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9964,14 +11326,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -9985,694 +11347,876 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs: +class RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the query header to inspect. This setting must be provided as lower case characters. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the query header to inspect. This setting must be provided as lower case characters. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: +class RuleGroupRuleStatementXssMatchStatementTextTransformationArgs: + def __init__(__self__, *, + priority: pulumi.Input[int], + type: pulumi.Input[str]): + """ + :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def priority(self) -> pulumi.Input[int]: + """ + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + """ + return pulumi.get(self, "priority") + + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) + + +@pulumi.input_type +class RuleGroupRuleVisibilityConfigArgs: + def __init__(__self__, *, + cloudwatch_metrics_enabled: pulumi.Input[bool], + metric_name: pulumi.Input[str], + sampled_requests_enabled: pulumi.Input[bool]): + """ + :param pulumi.Input[bool] cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param pulumi.Input[str] metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + :param pulumi.Input[bool] sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + """ + pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) + pulumi.set(__self__, "metric_name", metric_name) + pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) + + @property + @pulumi.getter(name="cloudwatchMetricsEnabled") + def cloudwatch_metrics_enabled(self) -> pulumi.Input[bool]: + """ + A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + """ + return pulumi.get(self, "cloudwatch_metrics_enabled") + + @cloudwatch_metrics_enabled.setter + def cloudwatch_metrics_enabled(self, value: pulumi.Input[bool]): + pulumi.set(self, "cloudwatch_metrics_enabled", value) + + @property + @pulumi.getter(name="metricName") + def metric_name(self) -> pulumi.Input[str]: + """ + A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + """ + return pulumi.get(self, "metric_name") + + @metric_name.setter + def metric_name(self, value: pulumi.Input[str]): + pulumi.set(self, "metric_name", value) + + @property + @pulumi.getter(name="sampledRequestsEnabled") + def sampled_requests_enabled(self) -> pulumi.Input[bool]: + """ + A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + """ + return pulumi.get(self, "sampled_requests_enabled") + + @sampled_requests_enabled.setter + def sampled_requests_enabled(self, value: pulumi.Input[bool]): + pulumi.set(self, "sampled_requests_enabled", value) + + +@pulumi.input_type +class RuleGroupVisibilityConfigArgs: + def __init__(__self__, *, + cloudwatch_metrics_enabled: pulumi.Input[bool], + metric_name: pulumi.Input[str], + sampled_requests_enabled: pulumi.Input[bool]): + """ + :param pulumi.Input[bool] cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param pulumi.Input[str] metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + :param pulumi.Input[bool] sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + """ + pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) + pulumi.set(__self__, "metric_name", metric_name) + pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) + + @property + @pulumi.getter(name="cloudwatchMetricsEnabled") + def cloudwatch_metrics_enabled(self) -> pulumi.Input[bool]: + """ + A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + """ + return pulumi.get(self, "cloudwatch_metrics_enabled") + + @cloudwatch_metrics_enabled.setter + def cloudwatch_metrics_enabled(self, value: pulumi.Input[bool]): + pulumi.set(self, "cloudwatch_metrics_enabled", value) + + @property + @pulumi.getter(name="metricName") + def metric_name(self) -> pulumi.Input[str]: + """ + A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + """ + return pulumi.get(self, "metric_name") + + @metric_name.setter + def metric_name(self, value: pulumi.Input[str]): + pulumi.set(self, "metric_name", value) + + @property + @pulumi.getter(name="sampledRequestsEnabled") + def sampled_requests_enabled(self) -> pulumi.Input[bool]: + """ + A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + """ + return pulumi.get(self, "sampled_requests_enabled") + + @sampled_requests_enabled.setter + def sampled_requests_enabled(self, value: pulumi.Input[bool]): + pulumi.set(self, "sampled_requests_enabled", value) + + +@pulumi.input_type +class WebAclAssociationConfigArgs: + def __init__(__self__, *, + request_bodies: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]] = None): + """ + :param pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]] request_bodies: Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + """ + if request_bodies is not None: + pulumi.set(__self__, "request_bodies", request_bodies) + + @property + @pulumi.getter(name="requestBodies") + def request_bodies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]]: + """ + Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + """ + return pulumi.get(self, "request_bodies") + + @request_bodies.setter + def request_bodies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]]): + pulumi.set(self, "request_bodies", value) + + +@pulumi.input_type +class WebAclAssociationConfigRequestBodyArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + cloudfronts: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]] = None): """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]] cloudfronts: Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. """ - pulumi.set(__self__, "name", name) + if cloudfronts is not None: + pulumi.set(__self__, "cloudfronts", cloudfronts) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def cloudfronts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "cloudfronts") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @cloudfronts.setter + def cloudfronts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]]): + pulumi.set(self, "cloudfronts", value) @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclAssociationConfigRequestBodyCloudfrontArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + default_size_inspection_limit: pulumi.Input[str]): """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] default_size_inspection_limit: Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "default_size_inspection_limit", default_size_inspection_limit) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="defaultSizeInspectionLimit") + def default_size_inspection_limit(self) -> pulumi.Input[str]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - + return pulumi.get(self, "default_size_inspection_limit") -@pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs: - def __init__(__self__): - pass + @default_size_inspection_limit.setter + def default_size_inspection_limit(self, value: pulumi.Input[str]): + pulumi.set(self, "default_size_inspection_limit", value) @pulumi.input_type -class RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs: +class WebAclCaptchaConfigArgs: def __init__(__self__, *, - priority: pulumi.Input[int], - type: pulumi.Input[str]): + immunity_time_property: Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']] = None): """ - :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + :param pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs'] immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) + if immunity_time_property is not None: + pulumi.set(__self__, "immunity_time_property", immunity_time_property) @property - @pulumi.getter - def priority(self) -> pulumi.Input[int]: + @pulumi.getter(name="immunityTimeProperty") + def immunity_time_property(self) -> Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']]: """ - The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Defines custom immunity time. See `immunity_time_property` below for details. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "immunity_time_property") + + @immunity_time_property.setter + def immunity_time_property(self, value: Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']]): + pulumi.set(self, "immunity_time_property", value) - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) + +@pulumi.input_type +class WebAclCaptchaConfigImmunityTimePropertyArgs: + def __init__(__self__, *, + immunity_time: Optional[pulumi.Input[int]] = None): + """ + :param pulumi.Input[int] immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + """ + if immunity_time is not None: + pulumi.set(__self__, "immunity_time", immunity_time) @property - @pulumi.getter - def type(self) -> pulumi.Input[str]: + @pulumi.getter(name="immunityTime") + def immunity_time(self) -> Optional[pulumi.Input[int]]: """ - The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. """ - return pulumi.get(self, "type") + return pulumi.get(self, "immunity_time") - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) + @immunity_time.setter + def immunity_time(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "immunity_time", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementArgs: +class WebAclCustomResponseBodyArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']] = None): + content: pulumi.Input[str], + content_type: pulumi.Input[str], + key: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param pulumi.Input[str] content: Payload of the custom response. + :param pulumi.Input[str] content_type: Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + :param pulumi.Input[str] key: Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. """ - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + pulumi.set(__self__, "content", content) + pulumi.set(__self__, "content_type", content_type) + pulumi.set(__self__, "key", key) @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]]: + @pulumi.getter + def content(self) -> pulumi.Input[str]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. + Payload of the custom response. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "content") - @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs']]]): - pulumi.set(self, "text_transformations", value) + @content.setter + def content(self, value: pulumi.Input[str]): + pulumi.set(self, "content", value) @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']]: + @pulumi.getter(name="contentType") + def content_type(self) -> pulumi.Input[str]: """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. """ - return pulumi.get(self, "field_to_match") - - @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs']]): - pulumi.set(self, "field_to_match", value) + return pulumi.get(self, "content_type") + @content_type.setter + def content_type(self, value: pulumi.Input[str]): + pulumi.set(self, "content_type", value) -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs: - def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): + @property + @pulumi.getter + def key(self) -> pulumi.Input[str]: """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See Cookies below for details. - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See Headers below for details. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See JSON Body for details. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See Single Header below for details. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + return pulumi.get(self, "key") - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) + + +@pulumi.input_type +class WebAclDefaultActionArgs: + def __init__(__self__, *, + allow: Optional[pulumi.Input['WebAclDefaultActionAllowArgs']] = None, + block: Optional[pulumi.Input['WebAclDefaultActionBlockArgs']] = None): """ - Inspect all query arguments. + :param pulumi.Input['WebAclDefaultActionAllowArgs'] allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. + :param pulumi.Input['WebAclDefaultActionBlockArgs'] block: Specifies that AWS WAF should block requests by default. See `block` below for details. """ - return pulumi.get(self, "all_query_arguments") - - @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): - pulumi.set(self, "all_query_arguments", value) + if allow is not None: + pulumi.set(__self__, "allow", allow) + if block is not None: + pulumi.set(__self__, "block", block) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']]: + def allow(self) -> Optional[pulumi.Input['WebAclDefaultActionAllowArgs']]: """ - Inspect the request body, which immediately follows the request headers. + Specifies that AWS WAF should allow requests by default. See `allow` below for details. """ - return pulumi.get(self, "body") + return pulumi.get(self, "allow") - @body.setter - def body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs']]): - pulumi.set(self, "body", value) + @allow.setter + def allow(self, value: Optional[pulumi.Input['WebAclDefaultActionAllowArgs']]): + pulumi.set(self, "allow", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']]: + def block(self) -> Optional[pulumi.Input['WebAclDefaultActionBlockArgs']]: """ - Inspect the cookies in the web request. See Cookies below for details. + Specifies that AWS WAF should block requests by default. See `block` below for details. """ - return pulumi.get(self, "cookies") + return pulumi.get(self, "block") - @cookies.setter - def cookies(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs']]): - pulumi.set(self, "cookies", value) + @block.setter + def block(self, value: Optional[pulumi.Input['WebAclDefaultActionBlockArgs']]): + pulumi.set(self, "block", value) - @property - @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: + +@pulumi.input_type +class WebAclDefaultActionAllowArgs: + def __init__(__self__, *, + custom_request_handling: Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']] = None): """ - Inspect the request headers. See Headers below for details. + :param pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "headers") - - @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): - pulumi.set(self, "headers", value) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']]: """ - Inspect the request body as JSON. See JSON Body for details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "json_body") + return pulumi.get(self, "custom_request_handling") - @json_body.setter - def json_body(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): - pulumi.set(self, "json_body", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) - @property - @pulumi.getter - def method(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']]: + +@pulumi.input_type +class WebAclDefaultActionAllowCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]): """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "method") - - @method.setter - def method(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs']]): - pulumi.set(self, "method", value) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]: """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "query_string") + return pulumi.get(self, "insert_headers") - @query_string.setter - def query_string(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs']]): - pulumi.set(self, "query_string", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: + +@pulumi.input_type +class WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - Inspect a single header. See Single Header below for details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - return pulumi.get(self, "single_header") - - @single_header.setter - def single_header(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): - pulumi.set(self, "single_header", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Inspect a single query argument. See Single Query Argument below for details. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "single_query_argument") + return pulumi.get(self, "name") - @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): - pulumi.set(self, "single_query_argument", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + Value of the custom header. """ - return pulumi.get(self, "uri_path") - - @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs']]): - pulumi.set(self, "uri_path", value) - + return pulumi.get(self, "value") -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: - def __init__(__self__): - pass + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs: +class WebAclDefaultActionBlockArgs: def __init__(__self__, *, - oversize_handling: Optional[pulumi.Input[str]] = None): + custom_response: Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']] = None): """ - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + if custom_response is not None: + pulumi.set(__self__, "custom_response", custom_response) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="customResponse") + def custom_response(self) -> Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Defines a custom response for the web request. See `custom_response` below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "custom_response") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @custom_response.setter + def custom_response(self, value: Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']]): + pulumi.set(self, "custom_response", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs: +class WebAclDefaultActionBlockCustomResponseArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + response_code: pulumi.Input[int], + custom_response_body_key: Optional[pulumi.Input[str]] = None, + response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + :param pulumi.Input[int] response_code: The HTTP status code to return to the client. + :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "response_code", response_code) + if custom_response_body_key is not None: + pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) + if response_headers is not None: + pulumi.set(__self__, "response_headers", response_headers) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + @pulumi.getter(name="responseCode") + def response_code(self) -> pulumi.Input[int]: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The HTTP status code to return to the client. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "response_code") - @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): - pulumi.set(self, "match_patterns", value) + @response_code.setter + def response_code(self, value: pulumi.Input[int]): + pulumi.set(self, "response_code", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="customResponseBodyKey") + def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "custom_response_body_key") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @custom_response_body_key.setter + def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "custom_response_body_key", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter(name="responseHeaders") + def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]]: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "response_headers") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @response_headers.setter + def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]]): + pulumi.set(self, "response_headers", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclDefaultActionBlockCustomResponseResponseHeaderArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, - excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def name(self) -> pulumi.Input[str]: """ - An empty configuration block that is used for inspecting all headers. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "excluded_cookies") + return pulumi.get(self, "name") - @excluded_cookies.setter - def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_cookies", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_cookies") - - @included_cookies.setter - def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_cookies", value) - + @pulumi.getter + def value(self) -> pulumi.Input[str]: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: - def __init__(__self__): - pass + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs: +class WebAclLoggingConfigurationLoggingFilterArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): - """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: + default_behavior: pulumi.Input[str], + filters: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]): """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input[str] default_behavior: Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. + :param pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]] filters: Filter(s) that you want to apply to the logs. See Filter below for more details. """ - return pulumi.get(self, "match_pattern") - - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + pulumi.set(__self__, "default_behavior", default_behavior) + pulumi.set(__self__, "filters", filters) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="defaultBehavior") + def default_behavior(self) -> pulumi.Input[str]: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "default_behavior") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @default_behavior.setter + def default_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "default_behavior", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter + def filters(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Filter(s) that you want to apply to the logs. See Filter below for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "filters") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @filters.setter + def filters(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]): + pulumi.set(self, "filters", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclLoggingConfigurationLoggingFilterFilterArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, - excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + behavior: pulumi.Input[str], + conditions: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]], + requirement: pulumi.Input[str]): """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param pulumi.Input[str] behavior: Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + :param pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]] conditions: Match condition(s) for the filter. See Condition below for more details. + :param pulumi.Input[str] requirement: Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + pulumi.set(__self__, "behavior", behavior) + pulumi.set(__self__, "conditions", conditions) + pulumi.set(__self__, "requirement", requirement) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def behavior(self) -> pulumi.Input[str]: """ - An empty configuration block that is used for inspecting all headers. + Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. """ - return pulumi.get(self, "all") + return pulumi.get(self, "behavior") - @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): - pulumi.set(self, "all", value) + @behavior.setter + def behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "behavior", value) @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + @pulumi.getter + def conditions(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]]: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + Match condition(s) for the filter. See Condition below for more details. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "conditions") - @excluded_headers.setter - def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_headers", value) + @conditions.setter + def conditions(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]]): + pulumi.set(self, "conditions", value) @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + @pulumi.getter + def requirement(self) -> pulumi.Input[str]: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. """ - return pulumi.get(self, "included_headers") - - @included_headers.setter - def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_headers", value) - + return pulumi.get(self, "requirement") -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: - def __init__(__self__): - pass + @requirement.setter + def requirement(self, value: pulumi.Input[str]): + pulumi.set(self, "requirement", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs: +class WebAclLoggingConfigurationLoggingFilterFilterConditionArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], - match_scope: pulumi.Input[str], - invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, - oversize_handling: Optional[pulumi.Input[str]] = None): + action_condition: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']] = None, + label_name_condition: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs'] action_condition: Configuration for a single action condition. See Action Condition below for more details. + :param pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs'] label_name_condition: Condition for a single label name. See Label Name Condition below for more details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + if action_condition is not None: + pulumi.set(__self__, "action_condition", action_condition) + if label_name_condition is not None: + pulumi.set(__self__, "label_name_condition", label_name_condition) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + @pulumi.getter(name="actionCondition") + def action_condition(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']]: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + Configuration for a single action condition. See Action Condition below for more details. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "action_condition") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @action_condition.setter + def action_condition(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']]): + pulumi.set(self, "action_condition", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="labelNameCondition") + def label_name_condition(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']]: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + Condition for a single label name. See Label Name Condition below for more details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "label_name_condition") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @label_name_condition.setter + def label_name_condition(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']]): + pulumi.set(self, "label_name_condition", value) + + +@pulumi.input_type +class WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs: + def __init__(__self__, *, + action: pulumi.Input[str]): + """ + :param pulumi.Input[str] action: Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + """ + pulumi.set(__self__, "action", action) @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def action(self) -> pulumi.Input[str]: """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. """ - return pulumi.get(self, "invalid_fallback_behavior") + return pulumi.get(self, "action") - @invalid_fallback_behavior.setter - def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "invalid_fallback_behavior", value) + @action.setter + def action(self, value: pulumi.Input[str]): + pulumi.set(self, "action", value) + + +@pulumi.input_type +class WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs: + def __init__(__self__, *, + label_name: pulumi.Input[str]): + """ + :param pulumi.Input[str] label_name: Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + """ + pulumi.set(__self__, "label_name", label_name) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="labelName") + def label_name(self) -> pulumi.Input[str]: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "label_name") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @label_name.setter + def label_name(self, value: pulumi.Input[str]): + pulumi.set(self, "label_name", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclLoggingConfigurationRedactedFieldArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, - included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + method: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']] = None): """ - :param pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs'] method: HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs'] query_string: Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs'] single_header: "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. + :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs'] uri_path: Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + """ + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) + + @property + @pulumi.getter + def method(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']]: + """ + HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + return pulumi.get(self, "method") + + @method.setter + def method(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']]): + pulumi.set(self, "method", value) @property - @pulumi.getter - def all(self) -> Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']]: """ - An empty configuration block that is used for inspecting all headers. + Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "all") + return pulumi.get(self, "query_string") - @all.setter - def all(self, value: Optional[pulumi.Input['RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): - pulumi.set(self, "all", value) + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']]): + pulumi.set(self, "query_string", value) @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_paths") + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']]: + """ + "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. + """ + return pulumi.get(self, "single_header") - @included_paths.setter - def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_paths", value) + @single_header.setter + def single_header(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']]): + pulumi.set(self, "single_header", value) + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']]: + """ + Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: - def __init__(__self__): - pass + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']]): + pulumi.set(self, "uri_path", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs: +class WebAclLoggingConfigurationRedactedFieldMethodArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs: +class WebAclLoggingConfigurationRedactedFieldQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs: +class WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] name: Name of the query header to redact. This setting must be provided in lowercase characters. """ pulumi.set(__self__, "name", name) @@ -10680,7 +12224,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + Name of the query header to redact. This setting must be provided in lowercase characters. """ return pulumi.get(self, "name") @@ -10690,19 +12234,50 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclLoggingConfigurationRedactedFieldUriPathArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + name: pulumi.Input[str], + priority: pulumi.Input[int], + statement: pulumi.Input['WebAclRuleStatementArgs'], + visibility_config: pulumi.Input['WebAclRuleVisibilityConfigArgs'], + action: Optional[pulumi.Input['WebAclRuleActionArgs']] = None, + captcha_config: Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']] = None, + override_action: Optional[pulumi.Input['WebAclRuleOverrideActionArgs']] = None, + rule_labels: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]] = None): """ - :param pulumi.Input[str] name: The name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] name: Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. + :param pulumi.Input[int] priority: If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + :param pulumi.Input['WebAclRuleStatementArgs'] statement: The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. + :param pulumi.Input['WebAclRuleVisibilityConfigArgs'] visibility_config: Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. + :param pulumi.Input['WebAclRuleActionArgs'] action: Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + :param pulumi.Input['WebAclRuleCaptchaConfigArgs'] captcha_config: Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. + :param pulumi.Input['WebAclRuleOverrideActionArgs'] override_action: Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]] rule_labels: Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. """ pulumi.set(__self__, "name", name) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "statement", statement) + pulumi.set(__self__, "visibility_config", visibility_config) + if action is not None: + pulumi.set(__self__, "action", action) + if captcha_config is not None: + pulumi.set(__self__, "captcha_config", captcha_config) + if override_action is not None: + pulumi.set(__self__, "override_action", override_action) + if rule_labels is not None: + pulumi.set(__self__, "rule_labels", rule_labels) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. """ return pulumi.get(self, "name") @@ -10710,406 +12285,503 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) + @property + @pulumi.getter + def priority(self) -> pulumi.Input[int]: + """ + If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + """ + return pulumi.get(self, "priority") -@pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs: - def __init__(__self__): - pass + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def statement(self) -> pulumi.Input['WebAclRuleStatementArgs']: + """ + The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. + """ + return pulumi.get(self, "statement") + + @statement.setter + def statement(self, value: pulumi.Input['WebAclRuleStatementArgs']): + pulumi.set(self, "statement", value) + + @property + @pulumi.getter(name="visibilityConfig") + def visibility_config(self) -> pulumi.Input['WebAclRuleVisibilityConfigArgs']: + """ + Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. + """ + return pulumi.get(self, "visibility_config") + + @visibility_config.setter + def visibility_config(self, value: pulumi.Input['WebAclRuleVisibilityConfigArgs']): + pulumi.set(self, "visibility_config", value) + + @property + @pulumi.getter + def action(self) -> Optional[pulumi.Input['WebAclRuleActionArgs']]: + """ + Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + """ + return pulumi.get(self, "action") + + @action.setter + def action(self, value: Optional[pulumi.Input['WebAclRuleActionArgs']]): + pulumi.set(self, "action", value) + + @property + @pulumi.getter(name="captchaConfig") + def captcha_config(self) -> Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']]: + """ + Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. + """ + return pulumi.get(self, "captcha_config") + + @captcha_config.setter + def captcha_config(self, value: Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']]): + pulumi.set(self, "captcha_config", value) + + @property + @pulumi.getter(name="overrideAction") + def override_action(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionArgs']]: + """ + Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. + """ + return pulumi.get(self, "override_action") + + @override_action.setter + def override_action(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionArgs']]): + pulumi.set(self, "override_action", value) + + @property + @pulumi.getter(name="ruleLabels") + def rule_labels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]]: + """ + Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. + """ + return pulumi.get(self, "rule_labels") + + @rule_labels.setter + def rule_labels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]]): + pulumi.set(self, "rule_labels", value) @pulumi.input_type -class RuleGroupRuleStatementXssMatchStatementTextTransformationArgs: +class WebAclRuleActionArgs: def __init__(__self__, *, - priority: pulumi.Input[int], - type: pulumi.Input[str]): + allow: Optional[pulumi.Input['WebAclRuleActionAllowArgs']] = None, + block: Optional[pulumi.Input['WebAclRuleActionBlockArgs']] = None, + captcha: Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']] = None, + challenge: Optional[pulumi.Input['WebAclRuleActionChallengeArgs']] = None, + count: Optional[pulumi.Input['WebAclRuleActionCountArgs']] = None): """ - :param pulumi.Input[int] priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param pulumi.Input[str] type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + :param pulumi.Input['WebAclRuleActionAllowArgs'] allow: Instructs AWS WAF to allow the web request. See `allow` below for details. + :param pulumi.Input['WebAclRuleActionBlockArgs'] block: Instructs AWS WAF to block the web request. See `block` below for details. + :param pulumi.Input['WebAclRuleActionCaptchaArgs'] captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + :param pulumi.Input['WebAclRuleActionChallengeArgs'] challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + :param pulumi.Input['WebAclRuleActionCountArgs'] count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) + if allow is not None: + pulumi.set(__self__, "allow", allow) + if block is not None: + pulumi.set(__self__, "block", block) + if captcha is not None: + pulumi.set(__self__, "captcha", captcha) + if challenge is not None: + pulumi.set(__self__, "challenge", challenge) + if count is not None: + pulumi.set(__self__, "count", count) @property @pulumi.getter - def priority(self) -> pulumi.Input[int]: + def allow(self) -> Optional[pulumi.Input['WebAclRuleActionAllowArgs']]: """ - The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Instructs AWS WAF to allow the web request. See `allow` below for details. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "allow") + + @allow.setter + def allow(self, value: Optional[pulumi.Input['WebAclRuleActionAllowArgs']]): + pulumi.set(self, "allow", value) + + @property + @pulumi.getter + def block(self) -> Optional[pulumi.Input['WebAclRuleActionBlockArgs']]: + """ + Instructs AWS WAF to block the web request. See `block` below for details. + """ + return pulumi.get(self, "block") + + @block.setter + def block(self, value: Optional[pulumi.Input['WebAclRuleActionBlockArgs']]): + pulumi.set(self, "block", value) + + @property + @pulumi.getter + def captcha(self) -> Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']]: + """ + Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + """ + return pulumi.get(self, "captcha") + + @captcha.setter + def captcha(self, value: Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']]): + pulumi.set(self, "captcha", value) + + @property + @pulumi.getter + def challenge(self) -> Optional[pulumi.Input['WebAclRuleActionChallengeArgs']]: + """ + Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + """ + return pulumi.get(self, "challenge") - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) + @challenge.setter + def challenge(self, value: Optional[pulumi.Input['WebAclRuleActionChallengeArgs']]): + pulumi.set(self, "challenge", value) @property @pulumi.getter - def type(self) -> pulumi.Input[str]: + def count(self) -> Optional[pulumi.Input['WebAclRuleActionCountArgs']]: """ - The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Instructs AWS WAF to count the web request and allow it. See `count` below for details. """ - return pulumi.get(self, "type") + return pulumi.get(self, "count") - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) + @count.setter + def count(self, value: Optional[pulumi.Input['WebAclRuleActionCountArgs']]): + pulumi.set(self, "count", value) @pulumi.input_type -class RuleGroupRuleVisibilityConfigArgs: +class WebAclRuleActionAllowArgs: def __init__(__self__, *, - cloudwatch_metrics_enabled: pulumi.Input[bool], - metric_name: pulumi.Input[str], - sampled_requests_enabled: pulumi.Input[bool]): + custom_request_handling: Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']] = None): """ - :param pulumi.Input[bool] cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - :param pulumi.Input[str] metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - :param pulumi.Input[bool] sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + :param pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) - pulumi.set(__self__, "metric_name", metric_name) - pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="cloudwatchMetricsEnabled") - def cloudwatch_metrics_enabled(self) -> pulumi.Input[bool]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']]: """ - A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "cloudwatch_metrics_enabled") + return pulumi.get(self, "custom_request_handling") - @cloudwatch_metrics_enabled.setter - def cloudwatch_metrics_enabled(self, value: pulumi.Input[bool]): - pulumi.set(self, "cloudwatch_metrics_enabled", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) - @property - @pulumi.getter(name="metricName") - def metric_name(self) -> pulumi.Input[str]: + +@pulumi.input_type +class WebAclRuleActionAllowCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]): """ - A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "metric_name") - - @metric_name.setter - def metric_name(self, value: pulumi.Input[str]): - pulumi.set(self, "metric_name", value) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="sampledRequestsEnabled") - def sampled_requests_enabled(self) -> pulumi.Input[bool]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]: """ - A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "sampled_requests_enabled") + return pulumi.get(self, "insert_headers") - @sampled_requests_enabled.setter - def sampled_requests_enabled(self, value: pulumi.Input[bool]): - pulumi.set(self, "sampled_requests_enabled", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) @pulumi.input_type -class RuleGroupVisibilityConfigArgs: +class WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, - cloudwatch_metrics_enabled: pulumi.Input[bool], - metric_name: pulumi.Input[str], - sampled_requests_enabled: pulumi.Input[bool]): - """ - :param pulumi.Input[bool] cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - :param pulumi.Input[str] metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - :param pulumi.Input[bool] sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - """ - pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) - pulumi.set(__self__, "metric_name", metric_name) - pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) - - @property - @pulumi.getter(name="cloudwatchMetricsEnabled") - def cloudwatch_metrics_enabled(self) -> pulumi.Input[bool]: + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - return pulumi.get(self, "cloudwatch_metrics_enabled") - - @cloudwatch_metrics_enabled.setter - def cloudwatch_metrics_enabled(self, value: pulumi.Input[bool]): - pulumi.set(self, "cloudwatch_metrics_enabled", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="metricName") - def metric_name(self) -> pulumi.Input[str]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "metric_name") + return pulumi.get(self, "name") - @metric_name.setter - def metric_name(self, value: pulumi.Input[str]): - pulumi.set(self, "metric_name", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="sampledRequestsEnabled") - def sampled_requests_enabled(self) -> pulumi.Input[bool]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + Value of the custom header. """ - return pulumi.get(self, "sampled_requests_enabled") + return pulumi.get(self, "value") - @sampled_requests_enabled.setter - def sampled_requests_enabled(self, value: pulumi.Input[bool]): - pulumi.set(self, "sampled_requests_enabled", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclAssociationConfigArgs: +class WebAclRuleActionBlockArgs: def __init__(__self__, *, - request_bodies: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]] = None): + custom_response: Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]] request_bodies: Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + :param pulumi.Input['WebAclRuleActionBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. """ - if request_bodies is not None: - pulumi.set(__self__, "request_bodies", request_bodies) + if custom_response is not None: + pulumi.set(__self__, "custom_response", custom_response) @property - @pulumi.getter(name="requestBodies") - def request_bodies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]]: + @pulumi.getter(name="customResponse") + def custom_response(self) -> Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']]: """ - Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + Defines a custom response for the web request. See `custom_response` below for details. """ - return pulumi.get(self, "request_bodies") + return pulumi.get(self, "custom_response") - @request_bodies.setter - def request_bodies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyArgs']]]]): - pulumi.set(self, "request_bodies", value) + @custom_response.setter + def custom_response(self, value: Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']]): + pulumi.set(self, "custom_response", value) @pulumi.input_type -class WebAclAssociationConfigRequestBodyArgs: +class WebAclRuleActionBlockCustomResponseArgs: def __init__(__self__, *, - cloudfronts: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]] = None): + response_code: pulumi.Input[int], + custom_response_body_key: Optional[pulumi.Input[str]] = None, + response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]] cloudfronts: Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + :param pulumi.Input[int] response_code: The HTTP status code to return to the client. + :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - if cloudfronts is not None: - pulumi.set(__self__, "cloudfronts", cloudfronts) + pulumi.set(__self__, "response_code", response_code) + if custom_response_body_key is not None: + pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) + if response_headers is not None: + pulumi.set(__self__, "response_headers", response_headers) @property - @pulumi.getter - def cloudfronts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]]: + @pulumi.getter(name="responseCode") + def response_code(self) -> pulumi.Input[int]: """ - Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + The HTTP status code to return to the client. """ - return pulumi.get(self, "cloudfronts") - - @cloudfronts.setter - def cloudfronts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclAssociationConfigRequestBodyCloudfrontArgs']]]]): - pulumi.set(self, "cloudfronts", value) + return pulumi.get(self, "response_code") + @response_code.setter + def response_code(self, value: pulumi.Input[int]): + pulumi.set(self, "response_code", value) -@pulumi.input_type -class WebAclAssociationConfigRequestBodyCloudfrontArgs: - def __init__(__self__, *, - default_size_inspection_limit: pulumi.Input[str]): + @property + @pulumi.getter(name="customResponseBodyKey") + def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: """ - :param pulumi.Input[str] default_size_inspection_limit: Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. """ - pulumi.set(__self__, "default_size_inspection_limit", default_size_inspection_limit) + return pulumi.get(self, "custom_response_body_key") + + @custom_response_body_key.setter + def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "custom_response_body_key", value) @property - @pulumi.getter(name="defaultSizeInspectionLimit") - def default_size_inspection_limit(self) -> pulumi.Input[str]: + @pulumi.getter(name="responseHeaders") + def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]]: """ - Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - return pulumi.get(self, "default_size_inspection_limit") + return pulumi.get(self, "response_headers") - @default_size_inspection_limit.setter - def default_size_inspection_limit(self, value: pulumi.Input[str]): - pulumi.set(self, "default_size_inspection_limit", value) + @response_headers.setter + def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]]): + pulumi.set(self, "response_headers", value) @pulumi.input_type -class WebAclCaptchaConfigArgs: +class WebAclRuleActionBlockCustomResponseResponseHeaderArgs: def __init__(__self__, *, - immunity_time_property: Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs'] immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - if immunity_time_property is not None: - pulumi.set(__self__, "immunity_time_property", immunity_time_property) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="immunityTimeProperty") - def immunity_time_property(self) -> Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Defines custom immunity time. See `immunity_time_property` below for details. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "immunity_time_property") - - @immunity_time_property.setter - def immunity_time_property(self, value: Optional[pulumi.Input['WebAclCaptchaConfigImmunityTimePropertyArgs']]): - pulumi.set(self, "immunity_time_property", value) - + return pulumi.get(self, "name") -@pulumi.input_type -class WebAclCaptchaConfigImmunityTimePropertyArgs: - def __init__(__self__, *, - immunity_time: Optional[pulumi.Input[int]] = None): - """ - :param pulumi.Input[int] immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - """ - if immunity_time is not None: - pulumi.set(__self__, "immunity_time", immunity_time) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="immunityTime") - def immunity_time(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + Value of the custom header. """ - return pulumi.get(self, "immunity_time") + return pulumi.get(self, "value") - @immunity_time.setter - def immunity_time(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "immunity_time", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclCustomResponseBodyArgs: +class WebAclRuleActionCaptchaArgs: def __init__(__self__, *, - content: pulumi.Input[str], - content_type: pulumi.Input[str], - key: pulumi.Input[str]): + custom_request_handling: Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']] = None): """ - :param pulumi.Input[str] content: Payload of the custom response. - :param pulumi.Input[str] content_type: Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. - :param pulumi.Input[str] key: Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. + :param pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - pulumi.set(__self__, "content", content) - pulumi.set(__self__, "content_type", content_type) - pulumi.set(__self__, "key", key) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter - def content(self) -> pulumi.Input[str]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']]: """ - Payload of the custom response. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "content") + return pulumi.get(self, "custom_request_handling") - @content.setter - def content(self, value: pulumi.Input[str]): - pulumi.set(self, "content", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) - @property - @pulumi.getter(name="contentType") - def content_type(self) -> pulumi.Input[str]: + +@pulumi.input_type +class WebAclRuleActionCaptchaCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]): """ - Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "content_type") - - @content_type.setter - def content_type(self, value: pulumi.Input[str]): - pulumi.set(self, "content_type", value) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter - def key(self) -> pulumi.Input[str]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]: """ - Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "key") + return pulumi.get(self, "insert_headers") - @key.setter - def key(self, value: pulumi.Input[str]): - pulumi.set(self, "key", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) @pulumi.input_type -class WebAclDefaultActionArgs: +class WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, - allow: Optional[pulumi.Input['WebAclDefaultActionAllowArgs']] = None, - block: Optional[pulumi.Input['WebAclDefaultActionBlockArgs']] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input['WebAclDefaultActionAllowArgs'] allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. - :param pulumi.Input['WebAclDefaultActionBlockArgs'] block: Specifies that AWS WAF should block requests by default. See `block` below for details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - if allow is not None: - pulumi.set(__self__, "allow", allow) - if block is not None: - pulumi.set(__self__, "block", block) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def allow(self) -> Optional[pulumi.Input['WebAclDefaultActionAllowArgs']]: + def name(self) -> pulumi.Input[str]: """ - Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "allow") + return pulumi.get(self, "name") - @allow.setter - def allow(self, value: Optional[pulumi.Input['WebAclDefaultActionAllowArgs']]): - pulumi.set(self, "allow", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property @pulumi.getter - def block(self) -> Optional[pulumi.Input['WebAclDefaultActionBlockArgs']]: + def value(self) -> pulumi.Input[str]: """ - Specifies that AWS WAF should block requests by default. See `block` below for details. + Value of the custom header. """ - return pulumi.get(self, "block") + return pulumi.get(self, "value") - @block.setter - def block(self, value: Optional[pulumi.Input['WebAclDefaultActionBlockArgs']]): - pulumi.set(self, "block", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclDefaultActionAllowArgs: +class WebAclRuleActionChallengeArgs: def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']] = None): + custom_request_handling: Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']] = None): """ - :param pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ if custom_request_handling is not None: pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']]: + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']]: """ Defines custom handling for the web request. See `custom_request_handling` below for details. """ return pulumi.get(self, "custom_request_handling") @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingArgs']]): + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']]): pulumi.set(self, "custom_request_handling", value) @pulumi.input_type -class WebAclDefaultActionAllowCustomRequestHandlingArgs: +class WebAclRuleActionChallengeCustomRequestHandlingArgs: def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]): + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ pulumi.set(__self__, "insert_headers", insert_headers) @property @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]: + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]: """ The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ return pulumi.get(self, "insert_headers") @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs']]]): + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]): pulumi.set(self, "insert_headers", value) @pulumi.input_type -class WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str], value: pulumi.Input[str]): @@ -11146,960 +12818,1093 @@ def value(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclDefaultActionBlockArgs: +class WebAclRuleActionCountArgs: def __init__(__self__, *, - custom_response: Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']] = None): + custom_request_handling: Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']] = None): """ - :param pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. + :param pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - if custom_response is not None: - pulumi.set(__self__, "custom_response", custom_response) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']]: """ - Defines a custom response for the web request. See `custom_response` below for details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "custom_response") + return pulumi.get(self, "custom_request_handling") - @custom_response.setter - def custom_response(self, value: Optional[pulumi.Input['WebAclDefaultActionBlockCustomResponseArgs']]): - pulumi.set(self, "custom_response", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) @pulumi.input_type -class WebAclDefaultActionBlockCustomResponseArgs: +class WebAclRuleActionCountCustomRequestHandlingArgs: def __init__(__self__, *, - response_code: pulumi.Input[int], - custom_response_body_key: Optional[pulumi.Input[str]] = None, - response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]] = None): + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]): """ - :param pulumi.Input[int] response_code: The HTTP status code to return to the client. - :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - pulumi.set(__self__, "response_code", response_code) - if custom_response_body_key is not None: - pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) - if response_headers is not None: - pulumi.set(__self__, "response_headers", response_headers) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="responseCode") - def response_code(self) -> pulumi.Input[int]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]: """ - The HTTP status code to return to the client. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "response_code") + return pulumi.get(self, "insert_headers") - @response_code.setter - def response_code(self, value: pulumi.Input[int]): - pulumi.set(self, "response_code", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) + + +@pulumi.input_type +class WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + value: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="customResponseBodyKey") - def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "custom_response_body_key") + return pulumi.get(self, "name") - @custom_response_body_key.setter - def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "custom_response_body_key", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + Value of the custom header. """ - return pulumi.get(self, "response_headers") + return pulumi.get(self, "value") - @response_headers.setter - def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs']]]]): - pulumi.set(self, "response_headers", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclDefaultActionBlockCustomResponseResponseHeaderArgs: +class WebAclRuleCaptchaConfigArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + immunity_time_property: Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']] = None): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs'] immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + if immunity_time_property is not None: + pulumi.set(__self__, "immunity_time_property", immunity_time_property) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="immunityTimeProperty") + def immunity_time_property(self) -> Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']]: + """ + Defines custom immunity time. See `immunity_time_property` below for details. + """ + return pulumi.get(self, "immunity_time_property") + + @immunity_time_property.setter + def immunity_time_property(self, value: Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']]): + pulumi.set(self, "immunity_time_property", value) + + +@pulumi.input_type +class WebAclRuleCaptchaConfigImmunityTimePropertyArgs: + def __init__(__self__, *, + immunity_time: Optional[pulumi.Input[int]] = None): """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[int] immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + if immunity_time is not None: + pulumi.set(__self__, "immunity_time", immunity_time) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="immunityTime") + def immunity_time(self) -> Optional[pulumi.Input[int]]: """ - Value of the custom header. + The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. """ - return pulumi.get(self, "value") + return pulumi.get(self, "immunity_time") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @immunity_time.setter + def immunity_time(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "immunity_time", value) @pulumi.input_type -class WebAclLoggingConfigurationLoggingFilterArgs: +class WebAclRuleOverrideActionArgs: def __init__(__self__, *, - default_behavior: pulumi.Input[str], - filters: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]): + count: Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']] = None, + none: Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']] = None): """ - :param pulumi.Input[str] default_behavior: Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. - :param pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]] filters: Filter(s) that you want to apply to the logs. See Filter below for more details. + :param pulumi.Input['WebAclRuleOverrideActionCountArgs'] count: Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + :param pulumi.Input['WebAclRuleOverrideActionNoneArgs'] none: Don't override the rule action setting. Configured as an empty block `{}`. """ - pulumi.set(__self__, "default_behavior", default_behavior) - pulumi.set(__self__, "filters", filters) + if count is not None: + pulumi.set(__self__, "count", count) + if none is not None: + pulumi.set(__self__, "none", none) @property - @pulumi.getter(name="defaultBehavior") - def default_behavior(self) -> pulumi.Input[str]: + @pulumi.getter + def count(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']]: """ - Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. + Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. """ - return pulumi.get(self, "default_behavior") + return pulumi.get(self, "count") - @default_behavior.setter - def default_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "default_behavior", value) + @count.setter + def count(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']]): + pulumi.set(self, "count", value) @property @pulumi.getter - def filters(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]: + def none(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']]: """ - Filter(s) that you want to apply to the logs. See Filter below for more details. + Don't override the rule action setting. Configured as an empty block `{}`. """ - return pulumi.get(self, "filters") + return pulumi.get(self, "none") - @filters.setter - def filters(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterArgs']]]): - pulumi.set(self, "filters", value) + @none.setter + def none(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']]): + pulumi.set(self, "none", value) @pulumi.input_type -class WebAclLoggingConfigurationLoggingFilterFilterArgs: +class WebAclRuleOverrideActionCountArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleOverrideActionNoneArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleRuleLabelArgs: def __init__(__self__, *, - behavior: pulumi.Input[str], - conditions: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]], - requirement: pulumi.Input[str]): + name: pulumi.Input[str]): """ - :param pulumi.Input[str] behavior: Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. - :param pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]] conditions: Match condition(s) for the filter. See Condition below for more details. - :param pulumi.Input[str] requirement: Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + :param pulumi.Input[str] name: Label string. """ - pulumi.set(__self__, "behavior", behavior) - pulumi.set(__self__, "conditions", conditions) - pulumi.set(__self__, "requirement", requirement) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def behavior(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + Label string. """ - return pulumi.get(self, "behavior") + return pulumi.get(self, "name") - @behavior.setter - def behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "behavior", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) - @property - @pulumi.getter - def conditions(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]]: + +@pulumi.input_type +class WebAclRuleStatementArgs: + def __init__(__self__, *, + and_statement: Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']] = None, + byte_match_statement: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']] = None, + geo_match_statement: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']] = None, + ip_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']] = None, + label_match_statement: Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']] = None, + managed_rule_group_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']] = None, + not_statement: Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']] = None, + or_statement: Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']] = None, + rate_based_statement: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']] = None, + regex_match_statement: Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']] = None, + regex_pattern_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']] = None, + rule_group_reference_statement: Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']] = None, + size_constraint_statement: Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']] = None, + sqli_match_statement: Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']] = None, + xss_match_statement: Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']] = None): """ - Match condition(s) for the filter. See Condition below for more details. + :param pulumi.Input['WebAclRuleStatementAndStatementArgs'] and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementArgs'] byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs'] geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs'] label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs'] managed_rule_group_statement: Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. + :param pulumi.Input['WebAclRuleStatementNotStatementArgs'] not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param pulumi.Input['WebAclRuleStatementOrStatementArgs'] or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementArgs'] rate_based_statement: Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. + :param pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs'] regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + :param pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs'] rule_group_reference_statement: Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. + :param pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs'] size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + :param pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementXssMatchStatementArgs'] xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. """ - return pulumi.get(self, "conditions") - - @conditions.setter - def conditions(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs']]]): - pulumi.set(self, "conditions", value) + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if managed_rule_group_statement is not None: + pulumi.set(__self__, "managed_rule_group_statement", managed_rule_group_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if rate_based_statement is not None: + pulumi.set(__self__, "rate_based_statement", rate_based_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if rule_group_reference_statement is not None: + pulumi.set(__self__, "rule_group_reference_statement", rule_group_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) @property - @pulumi.getter - def requirement(self) -> pulumi.Input[str]: + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']]: """ - Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. """ - return pulumi.get(self, "requirement") - - @requirement.setter - def requirement(self, value: pulumi.Input[str]): - pulumi.set(self, "requirement", value) + return pulumi.get(self, "and_statement") + @and_statement.setter + def and_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']]): + pulumi.set(self, "and_statement", value) -@pulumi.input_type -class WebAclLoggingConfigurationLoggingFilterFilterConditionArgs: - def __init__(__self__, *, - action_condition: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']] = None, - label_name_condition: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']] = None): + @property + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']]: """ - :param pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs'] action_condition: Configuration for a single action condition. See Action Condition below for more details. - :param pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs'] label_name_condition: Condition for a single label name. See Label Name Condition below for more details. + Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. """ - if action_condition is not None: - pulumi.set(__self__, "action_condition", action_condition) - if label_name_condition is not None: - pulumi.set(__self__, "label_name_condition", label_name_condition) + return pulumi.get(self, "byte_match_statement") + + @byte_match_statement.setter + def byte_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']]): + pulumi.set(self, "byte_match_statement", value) @property - @pulumi.getter(name="actionCondition") - def action_condition(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']]: + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']]: """ - Configuration for a single action condition. See Action Condition below for more details. + Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. """ - return pulumi.get(self, "action_condition") + return pulumi.get(self, "geo_match_statement") - @action_condition.setter - def action_condition(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs']]): - pulumi.set(self, "action_condition", value) + @geo_match_statement.setter + def geo_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']]): + pulumi.set(self, "geo_match_statement", value) @property - @pulumi.getter(name="labelNameCondition") - def label_name_condition(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']]: + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']]: """ - Condition for a single label name. See Label Name Condition below for more details. + Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. """ - return pulumi.get(self, "label_name_condition") - - @label_name_condition.setter - def label_name_condition(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs']]): - pulumi.set(self, "label_name_condition", value) + return pulumi.get(self, "ip_set_reference_statement") + @ip_set_reference_statement.setter + def ip_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']]): + pulumi.set(self, "ip_set_reference_statement", value) -@pulumi.input_type -class WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs: - def __init__(__self__, *, - action: pulumi.Input[str]): + @property + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']]: """ - :param pulumi.Input[str] action: Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. """ - pulumi.set(__self__, "action", action) + return pulumi.get(self, "label_match_statement") + + @label_match_statement.setter + def label_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']]): + pulumi.set(self, "label_match_statement", value) @property - @pulumi.getter - def action(self) -> pulumi.Input[str]: + @pulumi.getter(name="managedRuleGroupStatement") + def managed_rule_group_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']]: """ - Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. """ - return pulumi.get(self, "action") - - @action.setter - def action(self, value: pulumi.Input[str]): - pulumi.set(self, "action", value) + return pulumi.get(self, "managed_rule_group_statement") + @managed_rule_group_statement.setter + def managed_rule_group_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']]): + pulumi.set(self, "managed_rule_group_statement", value) -@pulumi.input_type -class WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs: - def __init__(__self__, *, - label_name: pulumi.Input[str]): + @property + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']]: """ - :param pulumi.Input[str] label_name: Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. """ - pulumi.set(__self__, "label_name", label_name) + return pulumi.get(self, "not_statement") + + @not_statement.setter + def not_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']]): + pulumi.set(self, "not_statement", value) @property - @pulumi.getter(name="labelName") - def label_name(self) -> pulumi.Input[str]: + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']]: """ - Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. """ - return pulumi.get(self, "label_name") - - @label_name.setter - def label_name(self, value: pulumi.Input[str]): - pulumi.set(self, "label_name", value) + return pulumi.get(self, "or_statement") + @or_statement.setter + def or_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']]): + pulumi.set(self, "or_statement", value) -@pulumi.input_type -class WebAclLoggingConfigurationRedactedFieldArgs: - def __init__(__self__, *, - method: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']] = None): + @property + @pulumi.getter(name="rateBasedStatement") + def rate_based_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']]: """ - :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs'] method: HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs'] query_string: Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs'] single_header: "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. - :param pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs'] uri_path: Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. """ - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + return pulumi.get(self, "rate_based_statement") + + @rate_based_statement.setter + def rate_based_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']]): + pulumi.set(self, "rate_based_statement", value) @property - @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']]: + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']]: """ - HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. """ - return pulumi.get(self, "method") + return pulumi.get(self, "regex_match_statement") - @method.setter - def method(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldMethodArgs']]): - pulumi.set(self, "method", value) + @regex_match_statement.setter + def regex_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']]): + pulumi.set(self, "regex_match_statement", value) @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']]: + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']]: """ - Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. + Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. """ - return pulumi.get(self, "query_string") + return pulumi.get(self, "regex_pattern_set_reference_statement") - @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldQueryStringArgs']]): - pulumi.set(self, "query_string", value) + @regex_pattern_set_reference_statement.setter + def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']]): + pulumi.set(self, "regex_pattern_set_reference_statement", value) @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']]: + @pulumi.getter(name="ruleGroupReferenceStatement") + def rule_group_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']]: """ - "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. + Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "rule_group_reference_statement") - @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs']]): - pulumi.set(self, "single_header", value) + @rule_group_reference_statement.setter + def rule_group_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']]): + pulumi.set(self, "rule_group_reference_statement", value) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']]: + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']]: """ - Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. """ - return pulumi.get(self, "uri_path") + return pulumi.get(self, "size_constraint_statement") - @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclLoggingConfigurationRedactedFieldUriPathArgs']]): - pulumi.set(self, "uri_path", value) + @size_constraint_statement.setter + def size_constraint_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']]): + pulumi.set(self, "size_constraint_statement", value) + @property + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']]: + """ + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + """ + return pulumi.get(self, "sqli_match_statement") -@pulumi.input_type -class WebAclLoggingConfigurationRedactedFieldMethodArgs: - def __init__(__self__): - pass + @sqli_match_statement.setter + def sqli_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']]): + pulumi.set(self, "sqli_match_statement", value) + @property + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']]: + """ + Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + """ + return pulumi.get(self, "xss_match_statement") -@pulumi.input_type -class WebAclLoggingConfigurationRedactedFieldQueryStringArgs: - def __init__(__self__): - pass + @xss_match_statement.setter + def xss_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']]): + pulumi.set(self, "xss_match_statement", value) @pulumi.input_type -class WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs: +class WebAclRuleStatementAndStatementArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): """ - :param pulumi.Input[str] name: Name of the query header to redact. This setting must be provided in lowercase characters. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "statements", statements) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: """ - Name of the query header to redact. This setting must be provided in lowercase characters. + The statements to combine. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - + return pulumi.get(self, "statements") -@pulumi.input_type -class WebAclLoggingConfigurationRedactedFieldUriPathArgs: - def __init__(__self__): - pass + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + pulumi.set(self, "statements", value) @pulumi.input_type -class WebAclRuleArgs: +class WebAclRuleStatementByteMatchStatementArgs: def __init__(__self__, *, - name: pulumi.Input[str], - priority: pulumi.Input[int], - statement: pulumi.Input['WebAclRuleStatementArgs'], - visibility_config: pulumi.Input['WebAclRuleVisibilityConfigArgs'], - action: Optional[pulumi.Input['WebAclRuleActionArgs']] = None, - captcha_config: Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']] = None, - override_action: Optional[pulumi.Input['WebAclRuleOverrideActionArgs']] = None, - rule_labels: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]] = None): - """ - :param pulumi.Input[str] name: Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. - :param pulumi.Input[int] priority: If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. - :param pulumi.Input['WebAclRuleStatementArgs'] statement: The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. - :param pulumi.Input['WebAclRuleVisibilityConfigArgs'] visibility_config: Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. - :param pulumi.Input['WebAclRuleActionArgs'] action: Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. - :param pulumi.Input['WebAclRuleCaptchaConfigArgs'] captcha_config: Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. - :param pulumi.Input['WebAclRuleOverrideActionArgs'] override_action: Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]] rule_labels: Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. - """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "statement", statement) - pulumi.set(__self__, "visibility_config", visibility_config) - if action is not None: - pulumi.set(__self__, "action", action) - if captcha_config is not None: - pulumi.set(__self__, "captcha_config", captcha_config) - if override_action is not None: - pulumi.set(__self__, "override_action", override_action) - if rule_labels is not None: - pulumi.set(__self__, "rule_labels", rule_labels) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + positional_constraint: pulumi.Input[str], + search_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']] = None): """ - Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. + :param pulumi.Input[str] positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param pulumi.Input[str] search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter - def priority(self) -> pulumi.Input[int]: + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> pulumi.Input[str]: """ - If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "positional_constraint") - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) + @positional_constraint.setter + def positional_constraint(self, value: pulumi.Input[str]): + pulumi.set(self, "positional_constraint", value) @property - @pulumi.getter - def statement(self) -> pulumi.Input['WebAclRuleStatementArgs']: + @pulumi.getter(name="searchString") + def search_string(self) -> pulumi.Input[str]: """ - The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. + String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. """ - return pulumi.get(self, "statement") + return pulumi.get(self, "search_string") - @statement.setter - def statement(self, value: pulumi.Input['WebAclRuleStatementArgs']): - pulumi.set(self, "statement", value) + @search_string.setter + def search_string(self, value: pulumi.Input[str]): + pulumi.set(self, "search_string", value) @property - @pulumi.getter(name="visibilityConfig") - def visibility_config(self) -> pulumi.Input['WebAclRuleVisibilityConfigArgs']: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]]: """ - Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ - return pulumi.get(self, "visibility_config") + return pulumi.get(self, "text_transformations") - @visibility_config.setter - def visibility_config(self, value: pulumi.Input['WebAclRuleVisibilityConfigArgs']): - pulumi.set(self, "visibility_config", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @property - @pulumi.getter - def action(self) -> Optional[pulumi.Input['WebAclRuleActionArgs']]: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']]: """ - Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "action") + return pulumi.get(self, "field_to_match") - @action.setter - def action(self, value: Optional[pulumi.Input['WebAclRuleActionArgs']]): - pulumi.set(self, "action", value) + @field_to_match.setter + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']]): + pulumi.set(self, "field_to_match", value) - @property - @pulumi.getter(name="captchaConfig") - def captcha_config(self) -> Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']]: + +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchArgs: + def __init__(__self__, *, + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): """ - Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "captcha_config") - - @captcha_config.setter - def captcha_config(self, value: Optional[pulumi.Input['WebAclRuleCaptchaConfigArgs']]): - pulumi.set(self, "captcha_config", value) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="overrideAction") - def override_action(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionArgs']]: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ - Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. + Inspect all query arguments. """ - return pulumi.get(self, "override_action") + return pulumi.get(self, "all_query_arguments") - @override_action.setter - def override_action(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionArgs']]): - pulumi.set(self, "override_action", value) + @all_query_arguments.setter + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + pulumi.set(self, "all_query_arguments", value) @property - @pulumi.getter(name="ruleLabels") - def rule_labels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]]: + @pulumi.getter + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']]: """ - Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. + Inspect the request body, which immediately follows the request headers. See `body` below for details. """ - return pulumi.get(self, "rule_labels") - - @rule_labels.setter - def rule_labels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleRuleLabelArgs']]]]): - pulumi.set(self, "rule_labels", value) + return pulumi.get(self, "body") + @body.setter + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']]): + pulumi.set(self, "body", value) -@pulumi.input_type -class WebAclRuleActionArgs: - def __init__(__self__, *, - allow: Optional[pulumi.Input['WebAclRuleActionAllowArgs']] = None, - block: Optional[pulumi.Input['WebAclRuleActionBlockArgs']] = None, - captcha: Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']] = None, - challenge: Optional[pulumi.Input['WebAclRuleActionChallengeArgs']] = None, - count: Optional[pulumi.Input['WebAclRuleActionCountArgs']] = None): + @property + @pulumi.getter + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']]: """ - :param pulumi.Input['WebAclRuleActionAllowArgs'] allow: Instructs AWS WAF to allow the web request. See `allow` below for details. - :param pulumi.Input['WebAclRuleActionBlockArgs'] block: Instructs AWS WAF to block the web request. See `block` below for details. - :param pulumi.Input['WebAclRuleActionCaptchaArgs'] captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - :param pulumi.Input['WebAclRuleActionChallengeArgs'] challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - :param pulumi.Input['WebAclRuleActionCountArgs'] count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Inspect the cookies in the web request. See `cookies` below for details. """ - if allow is not None: - pulumi.set(__self__, "allow", allow) - if block is not None: - pulumi.set(__self__, "block", block) - if captcha is not None: - pulumi.set(__self__, "captcha", captcha) - if challenge is not None: - pulumi.set(__self__, "challenge", challenge) - if count is not None: - pulumi.set(__self__, "count", count) + return pulumi.get(self, "cookies") + + @cookies.setter + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']]): + pulumi.set(self, "cookies", value) @property @pulumi.getter - def allow(self) -> Optional[pulumi.Input['WebAclRuleActionAllowArgs']]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: """ - Instructs AWS WAF to allow the web request. See `allow` below for details. + Inspect the request headers. See `headers` below for details. """ - return pulumi.get(self, "allow") + return pulumi.get(self, "headers") - @allow.setter - def allow(self, value: Optional[pulumi.Input['WebAclRuleActionAllowArgs']]): - pulumi.set(self, "allow", value) + @headers.setter + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): + pulumi.set(self, "headers", value) @property - @pulumi.getter - def block(self) -> Optional[pulumi.Input['WebAclRuleActionBlockArgs']]: + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: """ - Instructs AWS WAF to block the web request. See `block` below for details. + Inspect the request body as JSON. See `json_body` for details. """ - return pulumi.get(self, "block") + return pulumi.get(self, "json_body") - @block.setter - def block(self, value: Optional[pulumi.Input['WebAclRuleActionBlockArgs']]): - pulumi.set(self, "block", value) + @json_body.setter + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): + pulumi.set(self, "json_body", value) @property @pulumi.getter - def captcha(self) -> Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']]: """ - Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ - return pulumi.get(self, "captcha") + return pulumi.get(self, "method") - @captcha.setter - def captcha(self, value: Optional[pulumi.Input['WebAclRuleActionCaptchaArgs']]): - pulumi.set(self, "captcha", value) + @method.setter + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']]): + pulumi.set(self, "method", value) @property - @pulumi.getter - def challenge(self) -> Optional[pulumi.Input['WebAclRuleActionChallengeArgs']]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']]: """ - Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "challenge") + return pulumi.get(self, "query_string") - @challenge.setter - def challenge(self, value: Optional[pulumi.Input['WebAclRuleActionChallengeArgs']]): - pulumi.set(self, "challenge", value) + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']]): + pulumi.set(self, "query_string", value) @property - @pulumi.getter - def count(self) -> Optional[pulumi.Input['WebAclRuleActionCountArgs']]: + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: """ - Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Inspect a single header. See `single_header` below for details. """ - return pulumi.get(self, "count") - - @count.setter - def count(self, value: Optional[pulumi.Input['WebAclRuleActionCountArgs']]): - pulumi.set(self, "count", value) + return pulumi.get(self, "single_header") + @single_header.setter + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): + pulumi.set(self, "single_header", value) -@pulumi.input_type -class WebAclRuleActionAllowArgs: - def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']] = None): + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ - :param pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + Inspect a single query argument. See `single_query_argument` below for details. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + return pulumi.get(self, "single_query_argument") + + @single_query_argument.setter + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + pulumi.set(self, "single_query_argument", value) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']]: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "uri_path") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']]): + pulumi.set(self, "uri_path", value) + + +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleActionAllowCustomRequestHandlingArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]): + oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param pulumi.Input[str] oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "insert_headers") + return pulumi.get(self, "oversize_handling") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "name") + return pulumi.get(self, "match_patterns") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @match_patterns.setter + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + pulumi.set(self, "match_patterns", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - Value of the custom header. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ - return pulumi.get(self, "value") + return pulumi.get(self, "match_scope") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: + """ + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + """ + return pulumi.get(self, "oversize_handling") + + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleActionBlockArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - custom_response: Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']] = None): + all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleActionBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - if custom_response is not None: - pulumi.set(__self__, "custom_response", custom_response) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property - @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']]: + @pulumi.getter + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ - Defines a custom response for the web request. See `custom_response` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_response") + return pulumi.get(self, "all") - @custom_response.setter - def custom_response(self, value: Optional[pulumi.Input['WebAclRuleActionBlockCustomResponseArgs']]): - pulumi.set(self, "custom_response", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + + @property + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "excluded_cookies") + + @excluded_cookies.setter + def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_cookies", value) + + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_cookies") + + @included_cookies.setter + def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_cookies", value) @pulumi.input_type -class WebAclRuleActionBlockCustomResponseArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - response_code: pulumi.Input[int], - custom_response_body_key: Optional[pulumi.Input[str]] = None, - response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]] = None): + match_pattern: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[int] response_code: The HTTP status code to return to the client. - :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "response_code", response_code) - if custom_response_body_key is not None: - pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) - if response_headers is not None: - pulumi.set(__self__, "response_headers", response_headers) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="responseCode") - def response_code(self) -> pulumi.Input[int]: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ - The HTTP status code to return to the client. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - return pulumi.get(self, "response_code") + return pulumi.get(self, "match_pattern") - @response_code.setter - def response_code(self, value: pulumi.Input[int]): - pulumi.set(self, "response_code", value) + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) @property - @pulumi.getter(name="customResponseBodyKey") - def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - return pulumi.get(self, "custom_response_body_key") + return pulumi.get(self, "match_scope") - @custom_response_body_key.setter - def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "custom_response_body_key", value) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: """ - The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "response_headers") + return pulumi.get(self, "oversize_handling") - @response_headers.setter - def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionBlockCustomResponseResponseHeaderArgs']]]]): - pulumi.set(self, "response_headers", value) + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleActionBlockCustomResponseResponseHeaderArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "name") + return pulumi.get(self, "all") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + pulumi.set(self, "all", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Value of the custom header. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - + return pulumi.get(self, "excluded_headers") -@pulumi.input_type -class WebAclRuleActionCaptchaArgs: - def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']] = None): - """ - :param pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. - """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + @excluded_headers.setter + def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_headers", value) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']]: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "included_headers") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) + @included_headers.setter + def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_headers", value) @pulumi.input_type -class WebAclRuleActionCaptchaCustomRequestHandlingArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]): + match_pattern: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_scope: pulumi.Input[str], + invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, + oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "insert_headers") - - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + return pulumi.get(self, "match_pattern") + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) -@pulumi.input_type -class WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs: - def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "match_scope") + + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "name") + return pulumi.get(self, "invalid_fallback_behavior") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @invalid_fallback_behavior.setter + def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "invalid_fallback_behavior", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - Value of the custom header. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "oversize_handling") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleActionChallengeArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']] = None): + all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']]: + @pulumi.getter + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "all") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + + @property + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_paths") + + @included_paths.setter + def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_paths", value) @pulumi.input_type -class WebAclRuleActionChallengeCustomRequestHandlingArgs: - def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + name: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name of the query header to inspect. This setting must be provided as lower case characters. """ return pulumi.get(self, "name") @@ -12107,1415 +13912,1259 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) - @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: - """ - Value of the custom header. - """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - @pulumi.input_type -class WebAclRuleActionCountArgs: +class WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']] = None): + name: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "name") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @pulumi.input_type -class WebAclRuleActionCountCustomRequestHandlingArgs: - def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) - - @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") - - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) +class WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementByteMatchStatementTextTransformationArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def priority(self) -> pulumi.Input[int]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "name") + return pulumi.get(self, "priority") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property @pulumi.getter - def value(self) -> pulumi.Input[str]: + def type(self) -> pulumi.Input[str]: """ - Value of the custom header. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "value") + return pulumi.get(self, "type") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class WebAclRuleCaptchaConfigArgs: +class WebAclRuleStatementGeoMatchStatementArgs: def __init__(__self__, *, - immunity_time_property: Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']] = None): + country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], + forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']] = None): """ - :param pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs'] immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. + :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - if immunity_time_property is not None: - pulumi.set(__self__, "immunity_time_property", immunity_time_property) + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) @property - @pulumi.getter(name="immunityTimeProperty") - def immunity_time_property(self) -> Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']]: + @pulumi.getter(name="countryCodes") + def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - Defines custom immunity time. See `immunity_time_property` below for details. + Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. """ - return pulumi.get(self, "immunity_time_property") - - @immunity_time_property.setter - def immunity_time_property(self, value: Optional[pulumi.Input['WebAclRuleCaptchaConfigImmunityTimePropertyArgs']]): - pulumi.set(self, "immunity_time_property", value) - + return pulumi.get(self, "country_codes") -@pulumi.input_type -class WebAclRuleCaptchaConfigImmunityTimePropertyArgs: - def __init__(__self__, *, - immunity_time: Optional[pulumi.Input[int]] = None): - """ - :param pulumi.Input[int] immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. - """ - if immunity_time is not None: - pulumi.set(__self__, "immunity_time", immunity_time) + @country_codes.setter + def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "country_codes", value) @property - @pulumi.getter(name="immunityTime") - def immunity_time(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']]: """ - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - return pulumi.get(self, "immunity_time") + return pulumi.get(self, "forwarded_ip_config") - @immunity_time.setter - def immunity_time(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "immunity_time", value) + @forwarded_ip_config.setter + def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']]): + pulumi.set(self, "forwarded_ip_config", value) @pulumi.input_type -class WebAclRuleOverrideActionArgs: +class WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs: def __init__(__self__, *, - count: Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']] = None, - none: Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']] = None): + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleOverrideActionCountArgs'] count: Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. - :param pulumi.Input['WebAclRuleOverrideActionNoneArgs'] none: Don't override the rule action setting. Configured as an empty block `{}`. + :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. """ - if count is not None: - pulumi.set(__self__, "count", count) - if none is not None: - pulumi.set(__self__, "none", none) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter - def count(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']]: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: """ - Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "count") + return pulumi.get(self, "fallback_behavior") - @count.setter - def count(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionCountArgs']]): - pulumi.set(self, "count", value) + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) @property - @pulumi.getter - def none(self) -> Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']]: + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: """ - Don't override the rule action setting. Configured as an empty block `{}`. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "none") - - @none.setter - def none(self, value: Optional[pulumi.Input['WebAclRuleOverrideActionNoneArgs']]): - pulumi.set(self, "none", value) - - -@pulumi.input_type -class WebAclRuleOverrideActionCountArgs: - def __init__(__self__): - pass - + return pulumi.get(self, "header_name") -@pulumi.input_type -class WebAclRuleOverrideActionNoneArgs: - def __init__(__self__): - pass + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) @pulumi.input_type -class WebAclRuleRuleLabelArgs: +class WebAclRuleStatementIpSetReferenceStatementArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + arn: pulumi.Input[str], + ip_set_forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): """ - :param pulumi.Input[str] name: Label string. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def arn(self) -> pulumi.Input[str]: """ - Label string. + The Amazon Resource Name (ARN) of the IP Set that this statement references. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - + return pulumi.get(self, "arn") -@pulumi.input_type -class WebAclRuleStatementArgs: - def __init__(__self__, *, - and_statement: Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']] = None, - byte_match_statement: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']] = None, - geo_match_statement: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']] = None, - ip_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']] = None, - label_match_statement: Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']] = None, - managed_rule_group_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']] = None, - not_statement: Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']] = None, - or_statement: Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']] = None, - rate_based_statement: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']] = None, - regex_match_statement: Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']] = None, - regex_pattern_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']] = None, - rule_group_reference_statement: Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']] = None, - size_constraint_statement: Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']] = None, - sqli_match_statement: Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']] = None, - xss_match_statement: Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementAndStatementArgs'] and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementArgs'] byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs'] geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. - :param pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs'] label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs'] managed_rule_group_statement: Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. - :param pulumi.Input['WebAclRuleStatementNotStatementArgs'] not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. - :param pulumi.Input['WebAclRuleStatementOrStatementArgs'] or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. - :param pulumi.Input['WebAclRuleStatementRateBasedStatementArgs'] rate_based_statement: Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. - :param pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs'] regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. - :param pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs'] rule_group_reference_statement: Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. - :param pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs'] size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. - :param pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementXssMatchStatementArgs'] xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. - """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if managed_rule_group_statement is not None: - pulumi.set(__self__, "managed_rule_group_statement", managed_rule_group_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if rate_based_statement is not None: - pulumi.set(__self__, "rate_based_statement", rate_based_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if rule_group_reference_statement is not None: - pulumi.set(__self__, "rule_group_reference_statement", rule_group_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']]: + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: """ - Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "ip_set_forwarded_ip_config") - @and_statement.setter - def and_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementAndStatementArgs']]): - pulumi.set(self, "and_statement", value) + @ip_set_forwarded_ip_config.setter + def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): + pulumi.set(self, "ip_set_forwarded_ip_config", value) - @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: + def __init__(__self__, *, + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str], + position: pulumi.Input[str]): """ - Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. + :param pulumi.Input[str] position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "byte_match_statement") - - @byte_match_statement.setter - def byte_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementArgs']]): - pulumi.set(self, "byte_match_statement", value) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']]: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: """ - Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "geo_match_statement") + return pulumi.get(self, "fallback_behavior") - @geo_match_statement.setter - def geo_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementArgs']]): - pulumi.set(self, "geo_match_statement", value) + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']]: + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: """ - Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "ip_set_reference_statement") + return pulumi.get(self, "header_name") - @ip_set_reference_statement.setter - def ip_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementArgs']]): - pulumi.set(self, "ip_set_reference_statement", value) + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']]: + @pulumi.getter + def position(self) -> pulumi.Input[str]: """ - Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "position") - @label_match_statement.setter - def label_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementLabelMatchStatementArgs']]): - pulumi.set(self, "label_match_statement", value) + @position.setter + def position(self, value: pulumi.Input[str]): + pulumi.set(self, "position", value) - @property - @pulumi.getter(name="managedRuleGroupStatement") - def managed_rule_group_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementLabelMatchStatementArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + scope: pulumi.Input[str]): """ - Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. + :param pulumi.Input[str] key: String to match against. + :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "managed_rule_group_statement") - - @managed_rule_group_statement.setter - def managed_rule_group_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementArgs']]): - pulumi.set(self, "managed_rule_group_statement", value) + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']]: + @pulumi.getter + def key(self) -> pulumi.Input[str]: """ - Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + String to match against. """ - return pulumi.get(self, "not_statement") + return pulumi.get(self, "key") - @not_statement.setter - def not_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementNotStatementArgs']]): - pulumi.set(self, "not_statement", value) + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']]: + @pulumi.getter + def scope(self) -> pulumi.Input[str]: """ - Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "scope") - @or_statement.setter - def or_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementOrStatementArgs']]): - pulumi.set(self, "or_statement", value) + @scope.setter + def scope(self, value: pulumi.Input[str]): + pulumi.set(self, "scope", value) - @property - @pulumi.getter(name="rateBasedStatement") - def rate_based_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + vendor_name: pulumi.Input[str], + managed_rule_group_configs: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]] = None, + rule_action_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]] = None, + scope_down_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']] = None, + version: Optional[pulumi.Input[str]] = None): """ - Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. + :param pulumi.Input[str] name: Name of the managed rule group. + :param pulumi.Input[str] vendor_name: Name of the managed rule group vendor. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]] managed_rule_group_configs: Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]] rule_action_overrides: Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs'] scope_down_statement: Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + :param pulumi.Input[str] version: Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. """ - return pulumi.get(self, "rate_based_statement") - - @rate_based_statement.setter - def rate_based_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementArgs']]): - pulumi.set(self, "rate_based_statement", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "vendor_name", vendor_name) + if managed_rule_group_configs is not None: + pulumi.set(__self__, "managed_rule_group_configs", managed_rule_group_configs) + if rule_action_overrides is not None: + pulumi.set(__self__, "rule_action_overrides", rule_action_overrides) + if scope_down_statement is not None: + pulumi.set(__self__, "scope_down_statement", scope_down_statement) + if version is not None: + pulumi.set(__self__, "version", version) @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + Name of the managed rule group. """ - return pulumi.get(self, "regex_match_statement") + return pulumi.get(self, "name") - @regex_match_statement.setter - def regex_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRegexMatchStatementArgs']]): - pulumi.set(self, "regex_match_statement", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']]: + @pulumi.getter(name="vendorName") + def vendor_name(self) -> pulumi.Input[str]: """ - Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + Name of the managed rule group vendor. """ - return pulumi.get(self, "regex_pattern_set_reference_statement") + return pulumi.get(self, "vendor_name") - @regex_pattern_set_reference_statement.setter - def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRegexPatternSetReferenceStatementArgs']]): - pulumi.set(self, "regex_pattern_set_reference_statement", value) + @vendor_name.setter + def vendor_name(self, value: pulumi.Input[str]): + pulumi.set(self, "vendor_name", value) @property - @pulumi.getter(name="ruleGroupReferenceStatement") - def rule_group_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']]: + @pulumi.getter(name="managedRuleGroupConfigs") + def managed_rule_group_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]]: """ - Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. + Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details """ - return pulumi.get(self, "rule_group_reference_statement") + return pulumi.get(self, "managed_rule_group_configs") - @rule_group_reference_statement.setter - def rule_group_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRuleGroupReferenceStatementArgs']]): - pulumi.set(self, "rule_group_reference_statement", value) + @managed_rule_group_configs.setter + def managed_rule_group_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]]): + pulumi.set(self, "managed_rule_group_configs", value) @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']]: + @pulumi.getter(name="ruleActionOverrides") + def rule_action_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]]: """ - Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. """ - return pulumi.get(self, "size_constraint_statement") + return pulumi.get(self, "rule_action_overrides") - @size_constraint_statement.setter - def size_constraint_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementSizeConstraintStatementArgs']]): - pulumi.set(self, "size_constraint_statement", value) + @rule_action_overrides.setter + def rule_action_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]]): + pulumi.set(self, "rule_action_overrides", value) @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']]: + @pulumi.getter(name="scopeDownStatement") + def scope_down_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']]: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "scope_down_statement") - @sqli_match_statement.setter - def sqli_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementSqliMatchStatementArgs']]): - pulumi.set(self, "sqli_match_statement", value) + @scope_down_statement.setter + def scope_down_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']]): + pulumi.set(self, "scope_down_statement", value) @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']]: + @pulumi.getter + def version(self) -> Optional[pulumi.Input[str]]: """ - Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "version") - @xss_match_statement.setter - def xss_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementXssMatchStatementArgs']]): - pulumi.set(self, "xss_match_statement", value) + @version.setter + def version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "version", value) @pulumi.input_type -class WebAclRuleStatementAndStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + aws_managed_rules_atp_rule_set: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']] = None, + aws_managed_rules_bot_control_rule_set: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']] = None, + login_path: Optional[pulumi.Input[str]] = None, + password_field: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']] = None, + payload_type: Optional[pulumi.Input[str]] = None, + username_field: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs'] aws_managed_rules_atp_rule_set: Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs'] aws_managed_rules_bot_control_rule_set: Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details + :param pulumi.Input[str] login_path: The path of the login endpoint for your application. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs'] password_field: Details about your login page password field. See `password_field` for more details. + :param pulumi.Input[str] payload_type: The payload type for your login endpoint, either JSON or form encoded. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs'] username_field: Details about your login page username field. See `username_field` for more details. """ - pulumi.set(__self__, "statements", statements) + if aws_managed_rules_atp_rule_set is not None: + pulumi.set(__self__, "aws_managed_rules_atp_rule_set", aws_managed_rules_atp_rule_set) + if aws_managed_rules_bot_control_rule_set is not None: + pulumi.set(__self__, "aws_managed_rules_bot_control_rule_set", aws_managed_rules_bot_control_rule_set) + if login_path is not None: + pulumi.set(__self__, "login_path", login_path) + if password_field is not None: + pulumi.set(__self__, "password_field", password_field) + if payload_type is not None: + pulumi.set(__self__, "payload_type", payload_type) + if username_field is not None: + pulumi.set(__self__, "username_field", username_field) @property - @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: + @pulumi.getter(name="awsManagedRulesAtpRuleSet") + def aws_managed_rules_atp_rule_set(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']]: """ - The statements to combine. + Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. """ - return pulumi.get(self, "statements") - - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - pulumi.set(self, "statements", value) - + return pulumi.get(self, "aws_managed_rules_atp_rule_set") -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementArgs: - def __init__(__self__, *, - positional_constraint: pulumi.Input[str], - search_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']] = None): + @aws_managed_rules_atp_rule_set.setter + def aws_managed_rules_atp_rule_set(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']]): + pulumi.set(self, "aws_managed_rules_atp_rule_set", value) + + @property + @pulumi.getter(name="awsManagedRulesBotControlRuleSet") + def aws_managed_rules_bot_control_rule_set(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']]: """ - :param pulumi.Input[str] positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param pulumi.Input[str] search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + return pulumi.get(self, "aws_managed_rules_bot_control_rule_set") + + @aws_managed_rules_bot_control_rule_set.setter + def aws_managed_rules_bot_control_rule_set(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']]): + pulumi.set(self, "aws_managed_rules_bot_control_rule_set", value) @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> pulumi.Input[str]: + @pulumi.getter(name="loginPath") + def login_path(self) -> Optional[pulumi.Input[str]]: """ - Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + The path of the login endpoint for your application. """ - return pulumi.get(self, "positional_constraint") + return pulumi.get(self, "login_path") - @positional_constraint.setter - def positional_constraint(self, value: pulumi.Input[str]): - pulumi.set(self, "positional_constraint", value) + @login_path.setter + def login_path(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "login_path", value) @property - @pulumi.getter(name="searchString") - def search_string(self) -> pulumi.Input[str]: + @pulumi.getter(name="passwordField") + def password_field(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']]: """ - String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + Details about your login page password field. See `password_field` for more details. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "password_field") - @search_string.setter - def search_string(self, value: pulumi.Input[str]): - pulumi.set(self, "search_string", value) + @password_field.setter + def password_field(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']]): + pulumi.set(self, "password_field", value) @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]]: + @pulumi.getter(name="payloadType") + def payload_type(self) -> Optional[pulumi.Input[str]]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + The payload type for your login endpoint, either JSON or form encoded. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "payload_type") - @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementTextTransformationArgs']]]): - pulumi.set(self, "text_transformations", value) + @payload_type.setter + def payload_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "payload_type", value) @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']]: + @pulumi.getter(name="usernameField") + def username_field(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']]: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + Details about your login page username field. See `username_field` for more details. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "username_field") - @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchArgs']]): - pulumi.set(self, "field_to_match", value) + @username_field.setter + def username_field(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']]): + pulumi.set(self, "username_field", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): + login_path: pulumi.Input[str], + enable_regex_in_path: Optional[pulumi.Input[bool]] = None, + request_inspection: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']] = None, + response_inspection: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']] = None): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input[str] login_path: The path of the login endpoint for your application. + :param pulumi.Input[bool] enable_regex_in_path: Whether or not to allow the use of regular expressions in the login page path. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs'] request_inspection: The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs'] response_inspection: The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + pulumi.set(__self__, "login_path", login_path) + if enable_regex_in_path is not None: + pulumi.set(__self__, "enable_regex_in_path", enable_regex_in_path) + if request_inspection is not None: + pulumi.set(__self__, "request_inspection", request_inspection) + if response_inspection is not None: + pulumi.set(__self__, "response_inspection", response_inspection) @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + @pulumi.getter(name="loginPath") + def login_path(self) -> pulumi.Input[str]: """ - Inspect all query arguments. + The path of the login endpoint for your application. """ - return pulumi.get(self, "all_query_arguments") + return pulumi.get(self, "login_path") - @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): - pulumi.set(self, "all_query_arguments", value) + @login_path.setter + def login_path(self, value: pulumi.Input[str]): + pulumi.set(self, "login_path", value) @property - @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']]: + @pulumi.getter(name="enableRegexInPath") + def enable_regex_in_path(self) -> Optional[pulumi.Input[bool]]: """ - Inspect the request body, which immediately follows the request headers. See `body` below for details. + Whether or not to allow the use of regular expressions in the login page path. """ - return pulumi.get(self, "body") + return pulumi.get(self, "enable_regex_in_path") - @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs']]): - pulumi.set(self, "body", value) + @enable_regex_in_path.setter + def enable_regex_in_path(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enable_regex_in_path", value) @property - @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']]: + @pulumi.getter(name="requestInspection") + def request_inspection(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']]: """ - Inspect the cookies in the web request. See `cookies` below for details. + The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. """ - return pulumi.get(self, "cookies") + return pulumi.get(self, "request_inspection") - @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs']]): - pulumi.set(self, "cookies", value) + @request_inspection.setter + def request_inspection(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']]): + pulumi.set(self, "request_inspection", value) @property - @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: + @pulumi.getter(name="responseInspection") + def response_inspection(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']]: """ - Inspect the request headers. See `headers` below for details. + The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. """ - return pulumi.get(self, "headers") + return pulumi.get(self, "response_inspection") - @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): - pulumi.set(self, "headers", value) + @response_inspection.setter + def response_inspection(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']]): + pulumi.set(self, "response_inspection", value) - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs: + def __init__(__self__, *, + password_field: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs'], + payload_type: pulumi.Input[str], + username_field: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']): """ - Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs'] password_field: Details about your login page password field. See `password_field` for more details. + :param pulumi.Input[str] payload_type: The payload type for your login endpoint, either JSON or form encoded. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs'] username_field: Details about your login page username field. See `username_field` for more details. """ - return pulumi.get(self, "json_body") - - @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): - pulumi.set(self, "json_body", value) + pulumi.set(__self__, "password_field", password_field) + pulumi.set(__self__, "payload_type", payload_type) + pulumi.set(__self__, "username_field", username_field) @property - @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']]: + @pulumi.getter(name="passwordField") + def password_field(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs']: """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Details about your login page password field. See `password_field` for more details. """ - return pulumi.get(self, "method") + return pulumi.get(self, "password_field") - @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs']]): - pulumi.set(self, "method", value) + @password_field.setter + def password_field(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs']): + pulumi.set(self, "password_field", value) @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']]: + @pulumi.getter(name="payloadType") + def payload_type(self) -> pulumi.Input[str]: """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + The payload type for your login endpoint, either JSON or form encoded. """ - return pulumi.get(self, "query_string") + return pulumi.get(self, "payload_type") - @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs']]): - pulumi.set(self, "query_string", value) + @payload_type.setter + def payload_type(self, value: pulumi.Input[str]): + pulumi.set(self, "payload_type", value) @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: + @pulumi.getter(name="usernameField") + def username_field(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']: """ - Inspect a single header. See `single_header` below for details. + Details about your login page username field. See `username_field` for more details. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "username_field") - @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): - pulumi.set(self, "single_header", value) + @username_field.setter + def username_field(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']): + pulumi.set(self, "username_field", value) - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs: + def __init__(__self__, *, + identifier: pulumi.Input[str]): """ - Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input[str] identifier: The name of the password field. """ - return pulumi.get(self, "single_query_argument") - - @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): - pulumi.set(self, "single_query_argument", value) + pulumi.set(__self__, "identifier", identifier) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']]: + @pulumi.getter + def identifier(self) -> pulumi.Input[str]: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The name of the password field. """ - return pulumi.get(self, "uri_path") - - @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs']]): - pulumi.set(self, "uri_path", value) - + return pulumi.get(self, "identifier") -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: - def __init__(__self__): - pass + @identifier.setter + def identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "identifier", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs: def __init__(__self__, *, - oversize_handling: Optional[pulumi.Input[str]] = None): + identifier: pulumi.Input[str]): """ - :param pulumi.Input[str] oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param pulumi.Input[str] identifier: The name of the username field. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "identifier", identifier) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def identifier(self) -> pulumi.Input[str]: """ - What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + The name of the username field. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "identifier") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @identifier.setter + def identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "identifier", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + body_contains: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']] = None, + header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']] = None, + json: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']] = None, + status_code: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs'] body_contains: Configures inspection of the response body. See `body_contains` for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs'] header: Configures inspection of the response header.See `header` for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs'] json: Configures inspection of the response JSON. See `json` for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs'] status_code: Configures inspection of the response status code.See `status_code` for more details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + if body_contains is not None: + pulumi.set(__self__, "body_contains", body_contains) + if header is not None: + pulumi.set(__self__, "header", header) + if json is not None: + pulumi.set(__self__, "json", json) + if status_code is not None: + pulumi.set(__self__, "status_code", status_code) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + @pulumi.getter(name="bodyContains") + def body_contains(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']]: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + Configures inspection of the response body. See `body_contains` for more details. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "body_contains") - @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): - pulumi.set(self, "match_patterns", value) + @body_contains.setter + def body_contains(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']]): + pulumi.set(self, "body_contains", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter + def header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']]: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + Configures inspection of the response header.See `header` for more details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "header") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @header.setter + def header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']]): + pulumi.set(self, "header", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter + def json(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']]: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Configures inspection of the response JSON. See `json` for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "json") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @json.setter + def json(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']]): + pulumi.set(self, "json", value) + + @property + @pulumi.getter(name="statusCode") + def status_code(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']]: + """ + Configures inspection of the response status code.See `status_code` for more details. + """ + return pulumi.get(self, "status_code") + + @status_code.setter + def status_code(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']]): + pulumi.set(self, "status_code", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, - excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + failure_strings: pulumi.Input[Sequence[pulumi.Input[str]]], + success_strings: pulumi.Input[Sequence[pulumi.Input[str]]]): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_strings: Strings in the body of the response that indicate a failed login attempt. + :param pulumi.Input[Sequence[pulumi.Input[str]]] success_strings: Strings in the body of the response that indicate a successful login attempt. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "failure_strings", failure_strings) + pulumi.set(__self__, "success_strings", success_strings) @property - @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + @pulumi.getter(name="failureStrings") + def failure_strings(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - An empty configuration block that is used for inspecting all headers. + Strings in the body of the response that indicate a failed login attempt. """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "excluded_cookies") + return pulumi.get(self, "failure_strings") - @excluded_cookies.setter - def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_cookies", value) + @failure_strings.setter + def failure_strings(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "failure_strings", value) @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_cookies") - - @included_cookies.setter - def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_cookies", value) - + @pulumi.getter(name="successStrings") + def success_strings(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + """ + Strings in the body of the response that indicate a successful login attempt. + """ + return pulumi.get(self, "success_strings") -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: - def __init__(__self__): - pass + @success_strings.setter + def success_strings(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "success_strings", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + failure_values: pulumi.Input[Sequence[pulumi.Input[str]]], + name: pulumi.Input[str], + success_values: pulumi.Input[Sequence[pulumi.Input[str]]]): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_values: Values in the response header with the specified name that indicate a failed login attempt. + :param pulumi.Input[str] name: The name of the header to use. + :param pulumi.Input[Sequence[pulumi.Input[str]]] success_values: Values in the response header with the specified name that indicate a successful login attempt. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "failure_values", failure_values) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "success_values", success_values) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: + @pulumi.getter(name="failureValues") + def failure_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + Values in the response header with the specified name that indicate a failed login attempt. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "failure_values") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @failure_values.setter + def failure_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "failure_values", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + The name of the header to use. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "name") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter(name="successValues") + def success_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Values in the response header with the specified name that indicate a successful login attempt. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "success_values") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @success_values.setter + def success_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "success_values", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, - excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + failure_values: pulumi.Input[Sequence[pulumi.Input[str]]], + identifier: pulumi.Input[str], + success_values: pulumi.Input[Sequence[pulumi.Input[str]]]): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_values: Values in the response header with the specified name that indicate a failed login attempt. + :param pulumi.Input[str] identifier: The identifier for the value to match against in the JSON. + :param pulumi.Input[Sequence[pulumi.Input[str]]] success_values: Values in the response header with the specified name that indicate a successful login attempt. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + pulumi.set(__self__, "failure_values", failure_values) + pulumi.set(__self__, "identifier", identifier) + pulumi.set(__self__, "success_values", success_values) @property - @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + @pulumi.getter(name="failureValues") + def failure_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - An empty configuration block that is used for inspecting all headers. + Values in the response header with the specified name that indicate a failed login attempt. """ - return pulumi.get(self, "all") + return pulumi.get(self, "failure_values") - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): - pulumi.set(self, "all", value) + @failure_values.setter + def failure_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "failure_values", value) @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + @pulumi.getter + def identifier(self) -> pulumi.Input[str]: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + The identifier for the value to match against in the JSON. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "identifier") - @excluded_headers.setter - def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_headers", value) + @identifier.setter + def identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "identifier", value) @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + @pulumi.getter(name="successValues") + def success_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Values in the response header with the specified name that indicate a successful login attempt. """ - return pulumi.get(self, "included_headers") - - @included_headers.setter - def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_headers", value) - + return pulumi.get(self, "success_values") -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: - def __init__(__self__): - pass + @success_values.setter + def success_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "success_values", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], - match_scope: pulumi.Input[str], - invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, - oversize_handling: Optional[pulumi.Input[str]] = None): + failure_codes: pulumi.Input[Sequence[pulumi.Input[int]]], + success_codes: pulumi.Input[Sequence[pulumi.Input[int]]]): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param pulumi.Input[Sequence[pulumi.Input[int]]] failure_codes: Status codes in the response that indicate a failed login attempt. + :param pulumi.Input[Sequence[pulumi.Input[int]]] success_codes: Status codes in the response that indicate a successful login attempt. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "failure_codes", failure_codes) + pulumi.set(__self__, "success_codes", success_codes) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + @pulumi.getter(name="failureCodes") + def failure_codes(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + Status codes in the response that indicate a failed login attempt. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "failure_codes") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @failure_codes.setter + def failure_codes(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]): + pulumi.set(self, "failure_codes", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="successCodes") + def success_codes(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + Status codes in the response that indicate a successful login attempt. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "success_codes") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @success_codes.setter + def success_codes(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]): + pulumi.set(self, "success_codes", value) - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs: + def __init__(__self__, *, + inspection_level: pulumi.Input[str]): """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param pulumi.Input[str] inspection_level: The inspection level to use for the Bot Control rule group. """ - return pulumi.get(self, "invalid_fallback_behavior") - - @invalid_fallback_behavior.setter - def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "invalid_fallback_behavior", value) + pulumi.set(__self__, "inspection_level", inspection_level) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="inspectionLevel") + def inspection_level(self) -> pulumi.Input[str]: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + The inspection level to use for the Bot Control rule group. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "inspection_level") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @inspection_level.setter + def inspection_level(self, value: pulumi.Input[str]): + pulumi.set(self, "inspection_level", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, - included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + identifier: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[str] identifier: The name of the password field. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + pulumi.set(__self__, "identifier", identifier) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def identifier(self) -> pulumi.Input[str]: """ - An empty configuration block that is used for inspecting all headers. + The name of the password field. """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_paths") - - @included_paths.setter - def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_paths", value) - - -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs: - def __init__(__self__): - pass - + return pulumi.get(self, "identifier") -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs: - def __init__(__self__): - pass + @identifier.setter + def identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "identifier", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + identifier: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] identifier: The name of the username field. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "identifier", identifier) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def identifier(self) -> pulumi.Input[str]: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + The name of the username field. """ - return pulumi.get(self, "name") + return pulumi.get(self, "identifier") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @identifier.setter + def identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "identifier", value) @pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs: def __init__(__self__, *, + action_to_use: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs'], name: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs'] action_to_use: Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + :param pulumi.Input[str] name: Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. """ + pulumi.set(__self__, "action_to_use", action_to_use) pulumi.set(__self__, "name", name) + @property + @pulumi.getter(name="actionToUse") + def action_to_use(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs']: + """ + Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + """ + return pulumi.get(self, "action_to_use") + + @action_to_use.setter + def action_to_use(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs']): + pulumi.set(self, "action_to_use", value) + @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. """ return pulumi.get(self, "name") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - - -@pulumi.input_type -class WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs: - def __init__(__self__): - pass - + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + @pulumi.input_type -class WebAclRuleStatementByteMatchStatementTextTransformationArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs: def __init__(__self__, *, - priority: pulumi.Input[int], - type: pulumi.Input[str]): + allow: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']] = None, + block: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']] = None, + captcha: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']] = None, + challenge: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']] = None, + count: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']] = None): """ - :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs'] allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs'] block: Specifies that AWS WAF should block requests by default. See `block` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs'] captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs'] challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs'] count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) + if allow is not None: + pulumi.set(__self__, "allow", allow) + if block is not None: + pulumi.set(__self__, "block", block) + if captcha is not None: + pulumi.set(__self__, "captcha", captcha) + if challenge is not None: + pulumi.set(__self__, "challenge", challenge) + if count is not None: + pulumi.set(__self__, "count", count) @property @pulumi.getter - def priority(self) -> pulumi.Input[int]: + def allow(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']]: """ - Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + Specifies that AWS WAF should allow requests by default. See `allow` below for details. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "allow") - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) + @allow.setter + def allow(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']]): + pulumi.set(self, "allow", value) @property @pulumi.getter - def type(self) -> pulumi.Input[str]: + def block(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']]: """ - Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Specifies that AWS WAF should block requests by default. See `block` below for details. """ - return pulumi.get(self, "type") - - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) + return pulumi.get(self, "block") + @block.setter + def block(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']]): + pulumi.set(self, "block", value) -@pulumi.input_type -class WebAclRuleStatementGeoMatchStatementArgs: - def __init__(__self__, *, - country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], - forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']] = None): + @property + @pulumi.getter + def captcha(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']]: """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + return pulumi.get(self, "captcha") + + @captcha.setter + def captcha(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']]): + pulumi.set(self, "captcha", value) @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter + def challenge(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']]: """ - Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. """ - return pulumi.get(self, "country_codes") + return pulumi.get(self, "challenge") - @country_codes.setter - def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "country_codes", value) + @challenge.setter + def challenge(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']]): + pulumi.set(self, "challenge", value) @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']]: + @pulumi.getter + def count(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']]: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + Instructs AWS WAF to count the web request and allow it. See `count` below for details. """ - return pulumi.get(self, "forwarded_ip_config") + return pulumi.get(self, "count") - @forwarded_ip_config.setter - def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs']]): - pulumi.set(self, "forwarded_ip_config", value) + @count.setter + def count(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']]): + pulumi.set(self, "count", value) @pulumi.input_type -class WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs: def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str]): + custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']] = None): """ - :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']]: """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "custom_request_handling") - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]: """ - Name of the HTTP header to use for the IP address. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "insert_headers") - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) @pulumi.input_type -class WebAclRuleStatementIpSetReferenceStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - ip_set_forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "name") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + Value of the custom header. """ - return pulumi.get(self, "ip_set_forwarded_ip_config") + return pulumi.get(self, "value") - @ip_set_forwarded_ip_config.setter - def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): - pulumi.set(self, "ip_set_forwarded_ip_config", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs: def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str], - position: pulumi.Input[str]): + custom_response: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']] = None): """ - :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. - :param pulumi.Input[str] position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) + if custom_response is not None: + pulumi.set(__self__, "custom_response", custom_response) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: + @pulumi.getter(name="customResponse") + def custom_response(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']]: """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + Defines a custom response for the web request. See `custom_response` below for details. """ - return pulumi.get(self, "fallback_behavior") - - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) + return pulumi.get(self, "custom_response") - @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: - """ - Name of the HTTP header to use for the IP address. - """ - return pulumi.get(self, "header_name") + @custom_response.setter + def custom_response(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']]): + pulumi.set(self, "custom_response", value) - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) - @property - @pulumi.getter - def position(self) -> pulumi.Input[str]: +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs: + def __init__(__self__, *, + response_code: pulumi.Input[int], + custom_response_body_key: Optional[pulumi.Input[str]] = None, + response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]] = None): """ - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + :param pulumi.Input[int] response_code: The HTTP status code to return to the client. + :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - return pulumi.get(self, "position") - - @position.setter - def position(self, value: pulumi.Input[str]): - pulumi.set(self, "position", value) - + pulumi.set(__self__, "response_code", response_code) + if custom_response_body_key is not None: + pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) + if response_headers is not None: + pulumi.set(__self__, "response_headers", response_headers) -@pulumi.input_type -class WebAclRuleStatementLabelMatchStatementArgs: - def __init__(__self__, *, - key: pulumi.Input[str], - scope: pulumi.Input[str]): + @property + @pulumi.getter(name="responseCode") + def response_code(self) -> pulumi.Input[int]: """ - :param pulumi.Input[str] key: String to match against. - :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + The HTTP status code to return to the client. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + return pulumi.get(self, "response_code") + + @response_code.setter + def response_code(self, value: pulumi.Input[int]): + pulumi.set(self, "response_code", value) @property - @pulumi.getter - def key(self) -> pulumi.Input[str]: + @pulumi.getter(name="customResponseBodyKey") + def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: """ - String to match against. + References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. """ - return pulumi.get(self, "key") + return pulumi.get(self, "custom_response_body_key") - @key.setter - def key(self, value: pulumi.Input[str]): - pulumi.set(self, "key", value) + @custom_response_body_key.setter + def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "custom_response_body_key", value) @property - @pulumi.getter - def scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="responseHeaders") + def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]]: """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - return pulumi.get(self, "scope") + return pulumi.get(self, "response_headers") - @scope.setter - def scope(self, value: pulumi.Input[str]): - pulumi.set(self, "scope", value) + @response_headers.setter + def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]]): + pulumi.set(self, "response_headers", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str], - vendor_name: pulumi.Input[str], - managed_rule_group_configs: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]] = None, - rule_action_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]] = None, - scope_down_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']] = None, - version: Optional[pulumi.Input[str]] = None): + value: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the managed rule group. - :param pulumi.Input[str] vendor_name: Name of the managed rule group vendor. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]] managed_rule_group_configs: Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]] rule_action_overrides: Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs'] scope_down_statement: Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. - :param pulumi.Input[str] version: Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ pulumi.set(__self__, "name", name) - pulumi.set(__self__, "vendor_name", vendor_name) - if managed_rule_group_configs is not None: - pulumi.set(__self__, "managed_rule_group_configs", managed_rule_group_configs) - if rule_action_overrides is not None: - pulumi.set(__self__, "rule_action_overrides", rule_action_overrides) - if scope_down_statement is not None: - pulumi.set(__self__, "scope_down_statement", scope_down_statement) - if version is not None: - pulumi.set(__self__, "version", version) + pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - Name of the managed rule group. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ return pulumi.get(self, "name") @@ -13524,1114 +15173,1125 @@ def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) @property - @pulumi.getter(name="vendorName") - def vendor_name(self) -> pulumi.Input[str]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Name of the managed rule group vendor. + Value of the custom header. """ - return pulumi.get(self, "vendor_name") + return pulumi.get(self, "value") - @vendor_name.setter - def vendor_name(self, value: pulumi.Input[str]): - pulumi.set(self, "vendor_name", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) - @property - @pulumi.getter(name="managedRuleGroupConfigs") - def managed_rule_group_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs: + def __init__(__self__, *, + custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']] = None): """ - Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "managed_rule_group_configs") - - @managed_rule_group_configs.setter - def managed_rule_group_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs']]]]): - pulumi.set(self, "managed_rule_group_configs", value) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="ruleActionOverrides") - def rule_action_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']]: """ - Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "rule_action_overrides") + return pulumi.get(self, "custom_request_handling") - @rule_action_overrides.setter - def rule_action_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs']]]]): - pulumi.set(self, "rule_action_overrides", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) - @property - @pulumi.getter(name="scopeDownStatement") - def scope_down_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]): """ - Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "scope_down_statement") - - @scope_down_statement.setter - def scope_down_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs']]): - pulumi.set(self, "scope_down_statement", value) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter - def version(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]: """ - Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "version") + return pulumi.get(self, "insert_headers") - @version.setter - def version(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "version", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, - aws_managed_rules_atp_rule_set: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']] = None, - aws_managed_rules_bot_control_rule_set: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']] = None, - login_path: Optional[pulumi.Input[str]] = None, - password_field: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']] = None, - payload_type: Optional[pulumi.Input[str]] = None, - username_field: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs'] aws_managed_rules_atp_rule_set: Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs'] aws_managed_rules_bot_control_rule_set: Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details - :param pulumi.Input[str] login_path: The path of the login endpoint for your application. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs'] password_field: Details about your login page password field. See `password_field` for more details. - :param pulumi.Input[str] payload_type: The payload type for your login endpoint, either JSON or form encoded. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs'] username_field: Details about your login page username field. See `username_field` for more details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - if aws_managed_rules_atp_rule_set is not None: - pulumi.set(__self__, "aws_managed_rules_atp_rule_set", aws_managed_rules_atp_rule_set) - if aws_managed_rules_bot_control_rule_set is not None: - pulumi.set(__self__, "aws_managed_rules_bot_control_rule_set", aws_managed_rules_bot_control_rule_set) - if login_path is not None: - pulumi.set(__self__, "login_path", login_path) - if password_field is not None: - pulumi.set(__self__, "password_field", password_field) - if payload_type is not None: - pulumi.set(__self__, "payload_type", payload_type) - if username_field is not None: - pulumi.set(__self__, "username_field", username_field) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="awsManagedRulesAtpRuleSet") - def aws_managed_rules_atp_rule_set(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "aws_managed_rules_atp_rule_set") + return pulumi.get(self, "name") - @aws_managed_rules_atp_rule_set.setter - def aws_managed_rules_atp_rule_set(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs']]): - pulumi.set(self, "aws_managed_rules_atp_rule_set", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="awsManagedRulesBotControlRuleSet") - def aws_managed_rules_bot_control_rule_set(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details + Value of the custom header. """ - return pulumi.get(self, "aws_managed_rules_bot_control_rule_set") + return pulumi.get(self, "value") - @aws_managed_rules_bot_control_rule_set.setter - def aws_managed_rules_bot_control_rule_set(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs']]): - pulumi.set(self, "aws_managed_rules_bot_control_rule_set", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) - @property - @pulumi.getter(name="loginPath") - def login_path(self) -> Optional[pulumi.Input[str]]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs: + def __init__(__self__, *, + custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']] = None): """ - The path of the login endpoint for your application. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "login_path") - - @login_path.setter - def login_path(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "login_path", value) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="passwordField") - def password_field(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']]: """ - Details about your login page password field. See `password_field` for more details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "password_field") + return pulumi.get(self, "custom_request_handling") - @password_field.setter - def password_field(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs']]): - pulumi.set(self, "password_field", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) - @property - @pulumi.getter(name="payloadType") - def payload_type(self) -> Optional[pulumi.Input[str]]: - """ - The payload type for your login endpoint, either JSON or form encoded. - """ - return pulumi.get(self, "payload_type") - @payload_type.setter - def payload_type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "payload_type", value) +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs: + def __init__(__self__, *, + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="usernameField") - def username_field(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]: """ - Details about your login page username field. See `username_field` for more details. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "username_field") + return pulumi.get(self, "insert_headers") - @username_field.setter - def username_field(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs']]): - pulumi.set(self, "username_field", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs: def __init__(__self__, *, - login_path: pulumi.Input[str], - enable_regex_in_path: Optional[pulumi.Input[bool]] = None, - request_inspection: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']] = None, - response_inspection: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']] = None): + name: pulumi.Input[str], + value: pulumi.Input[str]): """ - :param pulumi.Input[str] login_path: The path of the login endpoint for your application. - :param pulumi.Input[bool] enable_regex_in_path: Whether or not to allow the use of regular expressions in the login page path. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs'] request_inspection: The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs'] response_inspection: The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. """ - pulumi.set(__self__, "login_path", login_path) - if enable_regex_in_path is not None: - pulumi.set(__self__, "enable_regex_in_path", enable_regex_in_path) - if request_inspection is not None: - pulumi.set(__self__, "request_inspection", request_inspection) - if response_inspection is not None: - pulumi.set(__self__, "response_inspection", response_inspection) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="loginPath") - def login_path(self) -> pulumi.Input[str]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - The path of the login endpoint for your application. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "login_path") + return pulumi.get(self, "name") - @login_path.setter - def login_path(self, value: pulumi.Input[str]): - pulumi.set(self, "login_path", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="enableRegexInPath") - def enable_regex_in_path(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Whether or not to allow the use of regular expressions in the login page path. + Value of the custom header. """ - return pulumi.get(self, "enable_regex_in_path") + return pulumi.get(self, "value") - @enable_regex_in_path.setter - def enable_regex_in_path(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enable_regex_in_path", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) - @property - @pulumi.getter(name="requestInspection") - def request_inspection(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs: + def __init__(__self__, *, + custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']] = None): """ - The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "request_inspection") - - @request_inspection.setter - def request_inspection(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs']]): - pulumi.set(self, "request_inspection", value) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="responseInspection") - def response_inspection(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']]: """ - The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "response_inspection") + return pulumi.get(self, "custom_request_handling") - @response_inspection.setter - def response_inspection(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs']]): - pulumi.set(self, "response_inspection", value) + @custom_request_handling.setter + def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']]): + pulumi.set(self, "custom_request_handling", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs: +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs: def __init__(__self__, *, - password_field: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs'], - payload_type: pulumi.Input[str], - username_field: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']): + insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs'] password_field: Details about your login page password field. See `password_field` for more details. - :param pulumi.Input[str] payload_type: The payload type for your login endpoint, either JSON or form encoded. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs'] username_field: Details about your login page username field. See `username_field` for more details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - pulumi.set(__self__, "password_field", password_field) - pulumi.set(__self__, "payload_type", payload_type) - pulumi.set(__self__, "username_field", username_field) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="passwordField") - def password_field(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs']: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]: """ - Details about your login page password field. See `password_field` for more details. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "password_field") + return pulumi.get(self, "insert_headers") - @password_field.setter - def password_field(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs']): - pulumi.set(self, "password_field", value) + @insert_headers.setter + def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]): + pulumi.set(self, "insert_headers", value) + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + value: pulumi.Input[str]): + """ + :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param pulumi.Input[str] value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property - @pulumi.getter(name="payloadType") - def payload_type(self) -> pulumi.Input[str]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - The payload type for your login endpoint, either JSON or form encoded. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "payload_type") + return pulumi.get(self, "name") - @payload_type.setter - def payload_type(self, value: pulumi.Input[str]): - pulumi.set(self, "payload_type", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="usernameField") - def username_field(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']: + @pulumi.getter + def value(self) -> pulumi.Input[str]: """ - Details about your login page username field. See `username_field` for more details. + Value of the custom header. """ - return pulumi.get(self, "username_field") + return pulumi.get(self, "value") - @username_field.setter - def username_field(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs']): - pulumi.set(self, "username_field", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs: def __init__(__self__, *, - identifier: pulumi.Input[str]): + and_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']] = None, + byte_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']] = None, + geo_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']] = None, + ip_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']] = None, + label_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']] = None, + not_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']] = None, + or_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']] = None, + regex_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']] = None, + regex_pattern_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']] = None, + size_constraint_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']] = None, + sqli_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']] = None, + xss_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']] = None): """ - :param pulumi.Input[str] identifier: The name of the password field. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs'] and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs'] byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs'] geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs'] label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs'] not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs'] or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs'] regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs'] size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs'] xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. """ - pulumi.set(__self__, "identifier", identifier) + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) @property - @pulumi.getter - def identifier(self) -> pulumi.Input[str]: + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']]: """ - The name of the password field. + Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "and_statement") - @identifier.setter - def identifier(self, value: pulumi.Input[str]): - pulumi.set(self, "identifier", value) + @and_statement.setter + def and_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']]): + pulumi.set(self, "and_statement", value) + + @property + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']]: + """ + Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + """ + return pulumi.get(self, "byte_match_statement") + @byte_match_statement.setter + def byte_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']]): + pulumi.set(self, "byte_match_statement", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs: - def __init__(__self__, *, - identifier: pulumi.Input[str]): + @property + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']]: """ - :param pulumi.Input[str] identifier: The name of the username field. + Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. """ - pulumi.set(__self__, "identifier", identifier) + return pulumi.get(self, "geo_match_statement") + + @geo_match_statement.setter + def geo_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']]): + pulumi.set(self, "geo_match_statement", value) @property - @pulumi.getter - def identifier(self) -> pulumi.Input[str]: + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']]: """ - The name of the username field. + Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. """ - return pulumi.get(self, "identifier") - - @identifier.setter - def identifier(self, value: pulumi.Input[str]): - pulumi.set(self, "identifier", value) + return pulumi.get(self, "ip_set_reference_statement") + @ip_set_reference_statement.setter + def ip_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']]): + pulumi.set(self, "ip_set_reference_statement", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs: - def __init__(__self__, *, - body_contains: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']] = None, - header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']] = None, - json: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']] = None, - status_code: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']] = None): + @property + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']]: """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs'] body_contains: Configures inspection of the response body. See `body_contains` for more details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs'] header: Configures inspection of the response header.See `header` for more details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs'] json: Configures inspection of the response JSON. See `json` for more details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs'] status_code: Configures inspection of the response status code.See `status_code` for more details. + Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. """ - if body_contains is not None: - pulumi.set(__self__, "body_contains", body_contains) - if header is not None: - pulumi.set(__self__, "header", header) - if json is not None: - pulumi.set(__self__, "json", json) - if status_code is not None: - pulumi.set(__self__, "status_code", status_code) + return pulumi.get(self, "label_match_statement") + + @label_match_statement.setter + def label_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']]): + pulumi.set(self, "label_match_statement", value) @property - @pulumi.getter(name="bodyContains") - def body_contains(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']]: + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']]: """ - Configures inspection of the response body. See `body_contains` for more details. + Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. """ - return pulumi.get(self, "body_contains") + return pulumi.get(self, "not_statement") - @body_contains.setter - def body_contains(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs']]): - pulumi.set(self, "body_contains", value) + @not_statement.setter + def not_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']]): + pulumi.set(self, "not_statement", value) @property - @pulumi.getter - def header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']]: + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']]: """ - Configures inspection of the response header.See `header` for more details. + Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. """ - return pulumi.get(self, "header") + return pulumi.get(self, "or_statement") - @header.setter - def header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs']]): - pulumi.set(self, "header", value) + @or_statement.setter + def or_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']]): + pulumi.set(self, "or_statement", value) @property - @pulumi.getter - def json(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']]: + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']]: """ - Configures inspection of the response JSON. See `json` for more details. + Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. """ - return pulumi.get(self, "json") + return pulumi.get(self, "regex_match_statement") - @json.setter - def json(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs']]): - pulumi.set(self, "json", value) + @regex_match_statement.setter + def regex_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']]): + pulumi.set(self, "regex_match_statement", value) @property - @pulumi.getter(name="statusCode") - def status_code(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']]: + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]: """ - Configures inspection of the response status code.See `status_code` for more details. + Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. """ - return pulumi.get(self, "status_code") - - @status_code.setter - def status_code(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs']]): - pulumi.set(self, "status_code", value) + return pulumi.get(self, "regex_pattern_set_reference_statement") + @regex_pattern_set_reference_statement.setter + def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]): + pulumi.set(self, "regex_pattern_set_reference_statement", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs: - def __init__(__self__, *, - failure_strings: pulumi.Input[Sequence[pulumi.Input[str]]], - success_strings: pulumi.Input[Sequence[pulumi.Input[str]]]): + @property + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']]: """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_strings: Strings in the body of the response that indicate a failed login attempt. - :param pulumi.Input[Sequence[pulumi.Input[str]]] success_strings: Strings in the body of the response that indicate a successful login attempt. + Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. """ - pulumi.set(__self__, "failure_strings", failure_strings) - pulumi.set(__self__, "success_strings", success_strings) + return pulumi.get(self, "size_constraint_statement") + + @size_constraint_statement.setter + def size_constraint_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']]): + pulumi.set(self, "size_constraint_statement", value) @property - @pulumi.getter(name="failureStrings") - def failure_strings(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']]: """ - Strings in the body of the response that indicate a failed login attempt. + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. """ - return pulumi.get(self, "failure_strings") + return pulumi.get(self, "sqli_match_statement") - @failure_strings.setter - def failure_strings(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "failure_strings", value) + @sqli_match_statement.setter + def sqli_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']]): + pulumi.set(self, "sqli_match_statement", value) @property - @pulumi.getter(name="successStrings") - def success_strings(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']]: """ - Strings in the body of the response that indicate a successful login attempt. + Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. """ - return pulumi.get(self, "success_strings") + return pulumi.get(self, "xss_match_statement") - @success_strings.setter - def success_strings(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "success_strings", value) + @xss_match_statement.setter + def xss_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']]): + pulumi.set(self, "xss_match_statement", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs: def __init__(__self__, *, - failure_values: pulumi.Input[Sequence[pulumi.Input[str]]], - name: pulumi.Input[str], - success_values: pulumi.Input[Sequence[pulumi.Input[str]]]): + statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_values: Values in the response header with the specified name that indicate a failed login attempt. - :param pulumi.Input[str] name: The name of the header to match against. The name must be an exact match, including case. - :param pulumi.Input[Sequence[pulumi.Input[str]]] success_values: Values in the response header with the specified name that indicate a successful login attempt. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. """ - pulumi.set(__self__, "failure_values", failure_values) - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "success_values", success_values) + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="failureValues") - def failure_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: """ - Values in the response header with the specified name that indicate a failed login attempt. + The statements to combine. """ - return pulumi.get(self, "failure_values") + return pulumi.get(self, "statements") - @failure_values.setter - def failure_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "failure_values", value) + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + pulumi.set(self, "statements", value) - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs: + def __init__(__self__, *, + positional_constraint: pulumi.Input[str], + search_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']] = None): """ - The name of the header to match against. The name must be an exact match, including case. + :param pulumi.Input[str] positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param pulumi.Input[str] search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="successValues") - def success_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> pulumi.Input[str]: """ - Values in the response header with the specified name that indicate a successful login attempt. + Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. """ - return pulumi.get(self, "success_values") - - @success_values.setter - def success_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "success_values", value) - + return pulumi.get(self, "positional_constraint") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs: - def __init__(__self__, *, - failure_values: pulumi.Input[Sequence[pulumi.Input[str]]], - identifier: pulumi.Input[str], - success_values: pulumi.Input[Sequence[pulumi.Input[str]]]): - """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] failure_values: Values in the response header with the specified name that indicate a failed login attempt. - :param pulumi.Input[str] identifier: The identifier for the value to match against in the JSON. - :param pulumi.Input[Sequence[pulumi.Input[str]]] success_values: Values in the response header with the specified name that indicate a successful login attempt. - """ - pulumi.set(__self__, "failure_values", failure_values) - pulumi.set(__self__, "identifier", identifier) - pulumi.set(__self__, "success_values", success_values) + @positional_constraint.setter + def positional_constraint(self, value: pulumi.Input[str]): + pulumi.set(self, "positional_constraint", value) @property - @pulumi.getter(name="failureValues") - def failure_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="searchString") + def search_string(self) -> pulumi.Input[str]: """ - Values in the response header with the specified name that indicate a failed login attempt. + String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. """ - return pulumi.get(self, "failure_values") + return pulumi.get(self, "search_string") - @failure_values.setter - def failure_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "failure_values", value) + @search_string.setter + def search_string(self, value: pulumi.Input[str]): + pulumi.set(self, "search_string", value) @property - @pulumi.getter - def identifier(self) -> pulumi.Input[str]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]: """ - The identifier for the value to match against in the JSON. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "text_transformations") - @identifier.setter - def identifier(self, value: pulumi.Input[str]): - pulumi.set(self, "identifier", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @property - @pulumi.getter(name="successValues") - def success_values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]: """ - Values in the response header with the specified name that indicate a successful login attempt. + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "success_values") + return pulumi.get(self, "field_to_match") - @success_values.setter - def success_values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "success_values", value) + @field_to_match.setter + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]): + pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs: def __init__(__self__, *, - failure_codes: pulumi.Input[Sequence[pulumi.Input[int]]], - success_codes: pulumi.Input[Sequence[pulumi.Input[int]]]): + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input[int]]] failure_codes: Status codes in the response that indicate a failed login attempt. - :param pulumi.Input[Sequence[pulumi.Input[int]]] success_codes: Status codes in the response that indicate a successful login attempt. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - pulumi.set(__self__, "failure_codes", failure_codes) - pulumi.set(__self__, "success_codes", success_codes) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="failureCodes") - def failure_codes(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ - Status codes in the response that indicate a failed login attempt. + Inspect all query arguments. """ - return pulumi.get(self, "failure_codes") + return pulumi.get(self, "all_query_arguments") - @failure_codes.setter - def failure_codes(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]): - pulumi.set(self, "failure_codes", value) + @all_query_arguments.setter + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + pulumi.set(self, "all_query_arguments", value) @property - @pulumi.getter(name="successCodes") - def success_codes(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]: + @pulumi.getter + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]: """ - Status codes in the response that indicate a successful login attempt. + Inspect the request body, which immediately follows the request headers. See `body` below for details. """ - return pulumi.get(self, "success_codes") - - @success_codes.setter - def success_codes(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]): - pulumi.set(self, "success_codes", value) + return pulumi.get(self, "body") + @body.setter + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]): + pulumi.set(self, "body", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs: - def __init__(__self__, *, - inspection_level: pulumi.Input[str]): + @property + @pulumi.getter + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]: """ - :param pulumi.Input[str] inspection_level: The inspection level to use for the Bot Control rule group. + Inspect the cookies in the web request. See `cookies` below for details. """ - pulumi.set(__self__, "inspection_level", inspection_level) + return pulumi.get(self, "cookies") + + @cookies.setter + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]): + pulumi.set(self, "cookies", value) @property - @pulumi.getter(name="inspectionLevel") - def inspection_level(self) -> pulumi.Input[str]: + @pulumi.getter + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: """ - The inspection level to use for the Bot Control rule group. + Inspect the request headers. See `headers` below for details. """ - return pulumi.get(self, "inspection_level") - - @inspection_level.setter - def inspection_level(self, value: pulumi.Input[str]): - pulumi.set(self, "inspection_level", value) + return pulumi.get(self, "headers") + @headers.setter + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): + pulumi.set(self, "headers", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs: - def __init__(__self__, *, - identifier: pulumi.Input[str]): + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: """ - :param pulumi.Input[str] identifier: The name of the password field. + Inspect the request body as JSON. See `json_body` for details. """ - pulumi.set(__self__, "identifier", identifier) + return pulumi.get(self, "json_body") + + @json_body.setter + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): + pulumi.set(self, "json_body", value) @property @pulumi.getter - def identifier(self) -> pulumi.Input[str]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]: """ - The name of the password field. + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ - return pulumi.get(self, "identifier") - - @identifier.setter - def identifier(self, value: pulumi.Input[str]): - pulumi.set(self, "identifier", value) - + return pulumi.get(self, "method") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs: - def __init__(__self__, *, - identifier: pulumi.Input[str]): - """ - :param pulumi.Input[str] identifier: The name of the username field. - """ - pulumi.set(__self__, "identifier", identifier) + @method.setter + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]): + pulumi.set(self, "method", value) @property - @pulumi.getter - def identifier(self) -> pulumi.Input[str]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]: """ - The name of the username field. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "identifier") - - @identifier.setter - def identifier(self, value: pulumi.Input[str]): - pulumi.set(self, "identifier", value) + return pulumi.get(self, "query_string") + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]): + pulumi.set(self, "query_string", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs: - def __init__(__self__, *, - action_to_use: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs'], - name: pulumi.Input[str]): + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs'] action_to_use: Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. - :param pulumi.Input[str] name: Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + Inspect a single header. See `single_header` below for details. """ - pulumi.set(__self__, "action_to_use", action_to_use) - pulumi.set(__self__, "name", name) + return pulumi.get(self, "single_header") + + @single_header.setter + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): + pulumi.set(self, "single_header", value) @property - @pulumi.getter(name="actionToUse") - def action_to_use(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs']: + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ - Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + Inspect a single query argument. See `single_query_argument` below for details. """ - return pulumi.get(self, "action_to_use") + return pulumi.get(self, "single_query_argument") - @action_to_use.setter - def action_to_use(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs']): - pulumi.set(self, "action_to_use", value) + @single_query_argument.setter + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + pulumi.set(self, "single_query_argument", value) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]: """ - Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "name") + return pulumi.get(self, "uri_path") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]): + pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, - allow: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']] = None, - block: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']] = None, - captcha: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']] = None, - challenge: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']] = None, - count: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs'] allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs'] block: Specifies that AWS WAF should block requests by default. See `block` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs'] captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs'] challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs'] count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + oversize_handling: Optional[pulumi.Input[str]] = None): """ - if allow is not None: - pulumi.set(__self__, "allow", allow) - if block is not None: - pulumi.set(__self__, "block", block) - if captcha is not None: - pulumi.set(__self__, "captcha", captcha) - if challenge is not None: - pulumi.set(__self__, "challenge", challenge) - if count is not None: - pulumi.set(__self__, "count", count) + :param pulumi.Input[str] oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def allow(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - Specifies that AWS WAF should allow requests by default. See `allow` below for details. + What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "allow") + return pulumi.get(self, "oversize_handling") - @allow.setter - def allow(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs']]): - pulumi.set(self, "allow", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) - @property - @pulumi.getter - def block(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs: + def __init__(__self__, *, + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): """ - Specifies that AWS WAF should block requests by default. See `block` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "block") - - @block.setter - def block(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs']]): - pulumi.set(self, "block", value) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def captcha(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']]: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ - Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "captcha") + return pulumi.get(self, "match_patterns") - @captcha.setter - def captcha(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs']]): - pulumi.set(self, "captcha", value) + @match_patterns.setter + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + pulumi.set(self, "match_patterns", value) @property - @pulumi.getter - def challenge(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ - return pulumi.get(self, "challenge") + return pulumi.get(self, "match_scope") - @challenge.setter - def challenge(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs']]): - pulumi.set(self, "challenge", value) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter - def count(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: """ - Instructs AWS WAF to count the web request and allow it. See `count` below for details. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "count") + return pulumi.get(self, "oversize_handling") - @count.setter - def count(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs']]): - pulumi.set(self, "count", value) + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']] = None): + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']]: + @pulumi.getter + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "all") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + pulumi.set(self, "all", value) + @property + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "excluded_cookies") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs: - def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) + @excluded_cookies.setter + def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_cookies", value) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_cookies") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + @included_cookies.setter + def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_cookies", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_scope: pulumi.Input[str], + oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - return pulumi.get(self, "name") + return pulumi.get(self, "match_pattern") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - Value of the custom header. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - + return pulumi.get(self, "match_scope") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs: - def __init__(__self__, *, - custom_response: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs'] custom_response: Defines a custom response for the web request. See `custom_response` below for details. - """ - if custom_response is not None: - pulumi.set(__self__, "custom_response", custom_response) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> pulumi.Input[str]: """ - Defines a custom response for the web request. See `custom_response` below for details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "custom_response") + return pulumi.get(self, "oversize_handling") - @custom_response.setter - def custom_response(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs']]): - pulumi.set(self, "custom_response", value) + @oversize_handling.setter + def oversize_handling(self, value: pulumi.Input[str]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - response_code: pulumi.Input[int], - custom_response_body_key: Optional[pulumi.Input[str]] = None, - response_headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]] = None): + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[int] response_code: The HTTP status code to return to the client. - :param pulumi.Input[str] custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - pulumi.set(__self__, "response_code", response_code) - if custom_response_body_key is not None: - pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) - if response_headers is not None: - pulumi.set(__self__, "response_headers", response_headers) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property - @pulumi.getter(name="responseCode") - def response_code(self) -> pulumi.Input[int]: + @pulumi.getter + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ - The HTTP status code to return to the client. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "response_code") + return pulumi.get(self, "all") - @response_code.setter - def response_code(self, value: pulumi.Input[int]): - pulumi.set(self, "response_code", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + pulumi.set(self, "all", value) @property - @pulumi.getter(name="customResponseBodyKey") - def custom_response_body_key(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "custom_response_body_key") + return pulumi.get(self, "excluded_headers") - @custom_response_body_key.setter - def custom_response_body_key(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "custom_response_body_key", value) + @excluded_headers.setter + def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "excluded_headers", value) @property - @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]]: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "response_headers") + return pulumi.get(self, "included_headers") - @response_headers.setter - def response_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs']]]]): - pulumi.set(self, "response_headers", value) + @included_headers.setter + def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_headers", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_scope: pulumi.Input[str], + invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, + oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "match_pattern") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @match_pattern.setter + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + pulumi.set(self, "match_pattern", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - Value of the custom header. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - + return pulumi.get(self, "match_scope") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs: - def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. - """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']]: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "custom_request_handling") - - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) - + return pulumi.get(self, "invalid_fallback_behavior") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs: - def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) + @invalid_fallback_behavior.setter + def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "invalid_fallback_behavior", value) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "insert_headers") + return pulumi.get(self, "oversize_handling") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "name") + return pulumi.get(self, "all") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + pulumi.set(self, "all", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: - """ - Value of the custom header. - """ - return pulumi.get(self, "value") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_paths") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @included_paths.setter + def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_paths", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs: - def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. - """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']]: - """ - Defines custom handling for the web request. See `custom_request_handling` below for details. - """ - return pulumi.get(self, "custom_request_handling") - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]): + name: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - pulumi.set(__self__, "insert_headers", insert_headers) + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "insert_headers") + return pulumi.get(self, "name") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + name: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Name of the query header to inspect. This setting must be provided as lower case characters. """ return pulumi.get(self, "name") @@ -14639,302 +16299,276 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) - @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: - """ - Value of the custom header. - """ - return pulumi.get(self, "value") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs: def __init__(__self__, *, - custom_request_handling: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']] = None): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs'] custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']]: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "custom_request_handling") - - @custom_request_handling.setter - def custom_request_handling(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs']]): - pulumi.set(self, "custom_request_handling", value) - + return pulumi.get(self, "priority") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs: - def __init__(__self__, *, - insert_headers: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]: + @pulumi.getter + def type(self) -> pulumi.Input[str]: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "insert_headers") + return pulumi.get(self, "type") - @insert_headers.setter - def insert_headers(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs']]]): - pulumi.set(self, "insert_headers", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs: def __init__(__self__, *, - name: pulumi.Input[str], - value: pulumi.Input[str]): + country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], + forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']] = None): """ - :param pulumi.Input[str] name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param pulumi.Input[str] value: Value of the custom header. + :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: + @pulumi.getter(name="countryCodes") + def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. """ - return pulumi.get(self, "name") + return pulumi.get(self, "country_codes") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @country_codes.setter + def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "country_codes", value) @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]: """ - Value of the custom header. + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - return pulumi.get(self, "value") + return pulumi.get(self, "forwarded_ip_config") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @forwarded_ip_config.setter + def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]): + pulumi.set(self, "forwarded_ip_config", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs: def __init__(__self__, *, - and_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']] = None, - byte_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']] = None, - geo_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']] = None, - ip_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']] = None, - label_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']] = None, - not_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']] = None, - or_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']] = None, - regex_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']] = None, - regex_pattern_set_reference_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']] = None, - size_constraint_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']] = None, - sqli_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']] = None, - xss_match_statement: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']] = None): + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs'] and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs'] byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs'] geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs'] ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs'] label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs'] not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs'] or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs'] regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs'] regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs'] size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs'] sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs'] xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']]: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: """ - Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "fallback_behavior") - @and_statement.setter - def and_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs']]): - pulumi.set(self, "and_statement", value) + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']]: + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: """ - Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "byte_match_statement") + return pulumi.get(self, "header_name") - @byte_match_statement.setter - def byte_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs']]): - pulumi.set(self, "byte_match_statement", value) + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) - @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs: + def __init__(__self__, *, + arn: pulumi.Input[str], + ip_set_forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): """ - Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - return pulumi.get(self, "geo_match_statement") - - @geo_match_statement.setter - def geo_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs']]): - pulumi.set(self, "geo_match_statement", value) + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']]: + @pulumi.getter + def arn(self) -> pulumi.Input[str]: """ - Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + The Amazon Resource Name (ARN) of the IP Set that this statement references. """ - return pulumi.get(self, "ip_set_reference_statement") + return pulumi.get(self, "arn") - @ip_set_reference_statement.setter - def ip_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs']]): - pulumi.set(self, "ip_set_reference_statement", value) + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']]: + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: """ - Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "ip_set_forwarded_ip_config") + + @ip_set_forwarded_ip_config.setter + def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): + pulumi.set(self, "ip_set_forwarded_ip_config", value) - @label_match_statement.setter - def label_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs']]): - pulumi.set(self, "label_match_statement", value) + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: + def __init__(__self__, *, + fallback_behavior: pulumi.Input[str], + header_name: pulumi.Input[str], + position: pulumi.Input[str]): + """ + :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. + :param pulumi.Input[str] position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + """ + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']]: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> pulumi.Input[str]: """ - Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "not_statement") + return pulumi.get(self, "fallback_behavior") - @not_statement.setter - def not_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs']]): - pulumi.set(self, "not_statement", value) + @fallback_behavior.setter + def fallback_behavior(self, value: pulumi.Input[str]): + pulumi.set(self, "fallback_behavior", value) @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']]: + @pulumi.getter(name="headerName") + def header_name(self) -> pulumi.Input[str]: """ - Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "header_name") - @or_statement.setter - def or_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs']]): - pulumi.set(self, "or_statement", value) + @header_name.setter + def header_name(self, value: pulumi.Input[str]): + pulumi.set(self, "header_name", value) @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']]: + @pulumi.getter + def position(self) -> pulumi.Input[str]: """ - Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "regex_match_statement") + return pulumi.get(self, "position") - @regex_match_statement.setter - def regex_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs']]): - pulumi.set(self, "regex_match_statement", value) + @position.setter + def position(self, value: pulumi.Input[str]): + pulumi.set(self, "position", value) - @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + scope: pulumi.Input[str]): """ - Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + :param pulumi.Input[str] key: String to match against. + :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "regex_pattern_set_reference_statement") - - @regex_pattern_set_reference_statement.setter - def regex_pattern_set_reference_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs']]): - pulumi.set(self, "regex_pattern_set_reference_statement", value) + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']]: + @pulumi.getter + def key(self) -> pulumi.Input[str]: """ - Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + String to match against. """ - return pulumi.get(self, "size_constraint_statement") + return pulumi.get(self, "key") - @size_constraint_statement.setter - def size_constraint_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs']]): - pulumi.set(self, "size_constraint_statement", value) + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']]: + @pulumi.getter + def scope(self) -> pulumi.Input[str]: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "scope") - @sqli_match_statement.setter - def sqli_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs']]): - pulumi.set(self, "sqli_match_statement", value) + @scope.setter + def scope(self, value: pulumi.Input[str]): + pulumi.set(self, "scope", value) + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs: + def __init__(__self__, *, + statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + """ + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']]: + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: """ - Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + The statements to combine. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "statements") - @xss_match_statement.setter - def xss_match_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs']]): - pulumi.set(self, "xss_match_statement", value) + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + pulumi.set(self, "statements", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs: def __init__(__self__, *, statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): """ @@ -14956,97 +16590,82 @@ def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatem @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs: def __init__(__self__, *, - positional_constraint: pulumi.Input[str], - search_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']] = None): + regex_string: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param pulumi.Input[str] search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param pulumi.Input[str] regex_string: String representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "regex_string", regex_string) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> pulumi.Input[str]: - """ - Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - """ - return pulumi.get(self, "positional_constraint") - - @positional_constraint.setter - def positional_constraint(self, value: pulumi.Input[str]): - pulumi.set(self, "positional_constraint", value) - - @property - @pulumi.getter(name="searchString") - def search_string(self) -> pulumi.Input[str]: + @pulumi.getter(name="regexString") + def regex_string(self) -> pulumi.Input[str]: """ - String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + String representing the regular expression. Minimum of `1` and maximum of `512` characters. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "regex_string") - @search_string.setter - def search_string(self, value: pulumi.Input[str]): - pulumi.set(self, "search_string", value) + @regex_string.setter + def regex_string(self, value: pulumi.Input[str]): + pulumi.set(self, "regex_string", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -15071,133 +16690,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See `cookies` below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See `headers` below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See `json_body` for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See `single_header` below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See `single_query_argument` below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -15220,13 +16839,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -15236,14 +16855,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -15272,13 +16891,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -15289,14 +16908,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -15319,19 +16938,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -15341,14 +16960,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -15377,13 +16996,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -15396,14 +17015,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -15432,20 +17051,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -15459,516 +17078,270 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: - """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - """ - return pulumi.get(self, "match_scope") - - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) - - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: - """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "invalid_fallback_behavior") - - @invalid_fallback_behavior.setter - def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "invalid_fallback_behavior", value) - - @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: - """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "oversize_handling") - - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs: - def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, - included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) - - @property - @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: - """ - An empty configuration block that is used for inspecting all headers. - """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_paths") - - @included_paths.setter - def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_paths", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs: - def __init__(__self__, *, - name: pulumi.Input[str]): - """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs: - def __init__(__self__, *, - name: pulumi.Input[str]): - """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs: - def __init__(__self__): - pass - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs: - def __init__(__self__, *, - priority: pulumi.Input[int], - type: pulumi.Input[str]): - """ - :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) - - @property - @pulumi.getter - def priority(self) -> pulumi.Input[int]: - """ - Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - """ - return pulumi.get(self, "priority") - - @priority.setter - def priority(self, value: pulumi.Input[int]): - pulumi.set(self, "priority", value) - - @property - @pulumi.getter - def type(self) -> pulumi.Input[str]: - """ - Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - return pulumi.get(self, "type") - - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs: - def __init__(__self__, *, - country_codes: pulumi.Input[Sequence[pulumi.Input[str]]], - forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']] = None): - """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. - """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) - - @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: - """ - Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - """ - return pulumi.get(self, "country_codes") - - @country_codes.setter - def country_codes(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "country_codes", value) - - @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]: - """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. - """ - return pulumi.get(self, "forwarded_ip_config") - - @forwarded_ip_config.setter - def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs']]): - pulumi.set(self, "forwarded_ip_config", value) - - -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs: - def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str]): + @pulumi.getter(name="matchScope") + def match_scope(self) -> pulumi.Input[str]: """ - :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + return pulumi.get(self, "match_scope") + + @match_scope.setter + def match_scope(self, value: pulumi.Input[str]): + pulumi.set(self, "match_scope", value) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "invalid_fallback_behavior") - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) + @invalid_fallback_behavior.setter + def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "invalid_fallback_behavior", value) @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[pulumi.Input[str]]: """ - Name of the HTTP header to use for the IP address. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "oversize_handling") - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + @oversize_handling.setter + def oversize_handling(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "oversize_handling", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - ip_set_forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']] = None): + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs'] ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "all") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @all.setter + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + pulumi.set(self, "all", value) @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]: - """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. - """ - return pulumi.get(self, "ip_set_forwarded_ip_config") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "included_paths") - @ip_set_forwarded_ip_config.setter - def ip_set_forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs']]): - pulumi.set(self, "ip_set_forwarded_ip_config", value) + @included_paths.setter + def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "included_paths", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs: - def __init__(__self__, *, - fallback_behavior: pulumi.Input[str], - header_name: pulumi.Input[str], - position: pulumi.Input[str]): - """ - :param pulumi.Input[str] fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param pulumi.Input[str] header_name: Name of the HTTP header to use for the IP address. - :param pulumi.Input[str] position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> pulumi.Input[str]: - """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - """ - return pulumi.get(self, "fallback_behavior") - @fallback_behavior.setter - def fallback_behavior(self, value: pulumi.Input[str]): - pulumi.set(self, "fallback_behavior", value) +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs: + def __init__(__self__): + pass - @property - @pulumi.getter(name="headerName") - def header_name(self) -> pulumi.Input[str]: + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): """ - Name of the HTTP header to use for the IP address. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "header_name") - - @header_name.setter - def header_name(self, value: pulumi.Input[str]): - pulumi.set(self, "header_name", value) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def position(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "position") + return pulumi.get(self, "name") - @position.setter - def position(self, value: pulumi.Input[str]): - pulumi.set(self, "position", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, - key: pulumi.Input[str], - scope: pulumi.Input[str]): + name: pulumi.Input[str]): """ - :param pulumi.Input[str] key: String to match against. - :param pulumi.Input[str] scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def key(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[str]: """ - String to match against. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "key") + return pulumi.get(self, "name") - @key.setter - def key(self, value: pulumi.Input[str]): - pulumi.set(self, "key", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) - @property - @pulumi.getter - def scope(self) -> pulumi.Input[str]: - """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - """ - return pulumi.get(self, "scope") - @scope.setter - def scope(self, value: pulumi.Input[str]): - pulumi.set(self, "scope", value) +@pulumi.input_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs: + def __init__(__self__): + pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: + def priority(self) -> pulumi.Input[int]: """ - The statements to combine. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "statements") - - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - pulumi.set(self, "statements", value) - + return pulumi.get(self, "priority") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs: - def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. - """ - pulumi.set(__self__, "statements", statements) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: + def type(self) -> pulumi.Input[str]: """ - The statements to combine. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "type") - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - pulumi.set(self, "statements", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs: def __init__(__self__, *, - regex_string: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']] = None): + arn: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] regex_string: String representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs'] field_to_match: The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "arn", arn) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="regexString") - def regex_string(self) -> pulumi.Input[str]: + @pulumi.getter + def arn(self) -> pulumi.Input[str]: """ - String representing the regular expression. Minimum of `1` and maximum of `512` characters. + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "regex_string") - - @regex_string.setter - def regex_string(self, value: pulumi.Input[str]): - pulumi.set(self, "regex_string", value) + return pulumi.get(self, "arn") + + @arn.setter + def arn(self, value: pulumi.Input[str]): + pulumi.set(self, "arn", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: """ - The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -15993,133 +17366,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See `cookies` below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See `headers` below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See `json_body` for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See `single_header` below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See `single_query_argument` below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -16142,13 +17515,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -16158,14 +17531,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -16194,13 +17567,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -16211,14 +17584,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -16241,19 +17614,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -16263,14 +17636,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -16299,13 +17672,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -16318,14 +17691,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -16354,20 +17727,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -16381,14 +17754,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -16429,12 +17802,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -16443,14 +17816,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -16464,25 +17837,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -16504,7 +17877,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -16526,13 +17899,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -16569,82 +17942,97 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs: def __init__(__self__, *, - arn: pulumi.Input[str], - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']] = None): + comparison_operator: pulumi.Input[str], + size: pulumi.Input[int], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param pulumi.Input[str] comparison_operator: Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param pulumi.Input[int] size: Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> pulumi.Input[str]: + """ + Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + + @comparison_operator.setter + def comparison_operator(self, value: pulumi.Input[str]): + pulumi.set(self, "comparison_operator", value) + @property @pulumi.getter - def arn(self) -> pulumi.Input[str]: + def size(self) -> pulumi.Input[int]: """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "size") - @arn.setter - def arn(self, value: pulumi.Input[str]): - pulumi.set(self, "arn", value) + @size.setter + def size(self, value: pulumi.Input[int]): + pulumi.set(self, "size", value) @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): + """ + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -16669,133 +18057,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See `cookies` below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See `headers` below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See `json_body` for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See `single_header` below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See `single_query_argument` below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -16818,13 +18206,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -16834,14 +18222,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -16870,13 +18258,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -16887,14 +18275,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -16917,19 +18305,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -16939,14 +18327,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -16975,13 +18363,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -16994,14 +18382,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -17030,20 +18418,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -17057,14 +18445,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -17105,12 +18493,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17119,14 +18507,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -17140,25 +18528,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -17180,7 +18568,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -17202,13 +18590,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -17245,97 +18633,67 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs: def __init__(__self__, *, - comparison_operator: pulumi.Input[str], - size: pulumi.Input[int], - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[str] comparison_operator: Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param pulumi.Input[int] size: Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> pulumi.Input[str]: - """ - Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - """ - return pulumi.get(self, "comparison_operator") - - @comparison_operator.setter - def comparison_operator(self, value: pulumi.Input[str]): - pulumi.set(self, "comparison_operator", value) - - @property - @pulumi.getter - def size(self) -> pulumi.Input[int]: - """ - Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - """ - return pulumi.get(self, "size") - - @size.setter - def size(self, value: pulumi.Input[int]): - pulumi.set(self, "size", value) - @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -17360,133 +18718,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See `cookies` below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See `headers` below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See `json_body` for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See `single_header` below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See `single_query_argument` below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -17509,13 +18867,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -17525,14 +18883,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -17561,13 +18919,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17578,14 +18936,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -17608,19 +18966,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -17630,14 +18988,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -17666,13 +19024,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -17685,14 +19043,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -17721,20 +19079,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -17748,14 +19106,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -17796,12 +19154,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17810,14 +19168,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -17831,25 +19189,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -17871,7 +19229,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -17893,13 +19251,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -17936,13 +19294,13 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]], + field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -17950,53 +19308,53 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]: + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ return pulumi.get(self, "text_transformations") @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs']]]): + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]): pulumi.set(self, "text_transformations", value) @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]: + def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs']]): + def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]): pulumi.set(self, "field_to_match", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']] = None): + all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, + body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']] = None, + cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, + json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, + method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, + single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, + single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -18021,133 +19379,133 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]: + def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: """ Inspect all query arguments. """ return pulumi.get(self, "all_query_arguments") @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs']]): + def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): pulumi.set(self, "all_query_arguments", value) @property @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]: + def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ return pulumi.get(self, "body") @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs']]): + def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]): pulumi.set(self, "body", value) @property @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]: + def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]: """ Inspect the cookies in the web request. See `cookies` below for details. """ return pulumi.get(self, "cookies") @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs']]): + def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]): pulumi.set(self, "cookies", value) @property @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]: + def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: """ Inspect the request headers. See `headers` below for details. """ return pulumi.get(self, "headers") @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs']]]]): + def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): pulumi.set(self, "headers", value) @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]: + def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: """ Inspect the request body as JSON. See `json_body` for details. """ return pulumi.get(self, "json_body") @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs']]): + def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): pulumi.set(self, "json_body", value) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]: + def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ return pulumi.get(self, "method") @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs']]): + def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]): pulumi.set(self, "method", value) @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]: + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ return pulumi.get(self, "query_string") @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs']]): + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]): pulumi.set(self, "query_string", value) @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]: + def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: """ Inspect a single header. See `single_header` below for details. """ return pulumi.get(self, "single_header") @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs']]): + def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): pulumi.set(self, "single_header", value) @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]: + def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: """ Inspect a single query argument. See `single_query_argument` below for details. """ return pulumi.get(self, "single_query_argument") @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs']]): + def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): pulumi.set(self, "single_query_argument", value) @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]: + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ return pulumi.get(self, "uri_path") @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs']]): + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]): pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs: def __init__(__self__, *, oversize_handling: Optional[pulumi.Input[str]] = None): """ @@ -18170,13 +19528,13 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs: def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]], + match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -18186,14 +19544,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ return pulumi.get(self, "match_patterns") @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): + def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): pulumi.set(self, "match_patterns", value) @property @@ -18222,13 +19580,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -18239,14 +19597,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -18269,19 +19627,19 @@ def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], match_scope: pulumi.Input[str], oversize_handling: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -18291,14 +19649,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -18327,13 +19685,13 @@ def oversize_handling(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -18346,14 +19704,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -18382,20 +19740,20 @@ def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[st @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], + match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], match_scope: pulumi.Input[str], invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, oversize_handling: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -18409,14 +19767,14 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ return pulumi.get(self, "match_pattern") @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): + def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): pulumi.set(self, "match_pattern", value) @property @@ -18457,12 +19815,12 @@ def oversize_handling(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, + all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -18471,14 +19829,14 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): + def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): pulumi.set(self, "all", value) @property @@ -18492,25 +19850,25 @@ def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str] @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -18532,7 +19890,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: def __init__(__self__, *, name: pulumi.Input[str]): """ @@ -18554,13 +19912,13 @@ def name(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs: +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -18597,615 +19955,491 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs: +class WebAclRuleStatementNotStatementArgs: def __init__(__self__, *, - text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]], - field_to_match: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']] = None): - """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs'] field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. - """ - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) - - @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]: + statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. """ - return pulumi.get(self, "text_transformations") - - @text_transformations.setter - def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs']]]): - pulumi.set(self, "text_transformations", value) + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]: + @pulumi.getter + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + The statements to combine. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "statements") - @field_to_match.setter - def field_to_match(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs']]): - pulumi.set(self, "field_to_match", value) + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + pulumi.set(self, "statements", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs: +class WebAclRuleStatementOrStatementArgs: def __init__(__self__, *, - all_query_arguments: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']] = None, - body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']] = None, - cookies: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]] = None, - json_body: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']] = None, - method: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']] = None, - query_string: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']] = None, - single_header: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']] = None, - single_query_argument: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']] = None, - uri_path: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs'] all_query_arguments: Inspect all query arguments. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs'] body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs'] cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]] headers: Inspect the request headers. See `headers` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs'] json_body: Inspect the request body as JSON. See `json_body` for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs'] method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs'] query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs'] single_header: Inspect a single header. See `single_header` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs'] single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs'] uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]: - """ - Inspect all query arguments. - """ - return pulumi.get(self, "all_query_arguments") - - @all_query_arguments.setter - def all_query_arguments(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs']]): - pulumi.set(self, "all_query_arguments", value) - - @property - @pulumi.getter - def body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]: - """ - Inspect the request body, which immediately follows the request headers. See `body` below for details. - """ - return pulumi.get(self, "body") - - @body.setter - def body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs']]): - pulumi.set(self, "body", value) - - @property - @pulumi.getter - def cookies(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]: - """ - Inspect the cookies in the web request. See `cookies` below for details. - """ - return pulumi.get(self, "cookies") - - @cookies.setter - def cookies(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs']]): - pulumi.set(self, "cookies", value) - - @property - @pulumi.getter - def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]: - """ - Inspect the request headers. See `headers` below for details. - """ - return pulumi.get(self, "headers") - - @headers.setter - def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs']]]]): - pulumi.set(self, "headers", value) - - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]: + statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): """ - Inspect the request body as JSON. See `json_body` for details. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. """ - return pulumi.get(self, "json_body") - - @json_body.setter - def json_body(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs']]): - pulumi.set(self, "json_body", value) + pulumi.set(__self__, "statements", statements) @property @pulumi.getter - def method(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - - @method.setter - def method(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs']]): - pulumi.set(self, "method", value) - - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]: - """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") - - @query_string.setter - def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs']]): - pulumi.set(self, "query_string", value) - - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]: - """ - Inspect a single header. See `single_header` below for details. - """ - return pulumi.get(self, "single_header") - - @single_header.setter - def single_header(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs']]): - pulumi.set(self, "single_header", value) - - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]: - """ - Inspect a single query argument. See `single_query_argument` below for details. - """ - return pulumi.get(self, "single_query_argument") - - @single_query_argument.setter - def single_query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs']]): - pulumi.set(self, "single_query_argument", value) - - @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]: + def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The statements to combine. """ - return pulumi.get(self, "uri_path") - - @uri_path.setter - def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs']]): - pulumi.set(self, "uri_path", value) - + return pulumi.get(self, "statements") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs: - def __init__(__self__): - pass + @statements.setter + def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + pulumi.set(self, "statements", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs: +class WebAclRuleStatementRateBasedStatementArgs: def __init__(__self__, *, - oversize_handling: Optional[pulumi.Input[str]] = None): + limit: pulumi.Input[int], + aggregate_key_type: Optional[pulumi.Input[str]] = None, + custom_keys: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyArgs']]]] = None, + forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']] = None, + scope_down_statement: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']] = None): """ - :param pulumi.Input[str] oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param pulumi.Input[int] limit: Limit on requests per 5-minute period for a single originating IP address. + :param pulumi.Input[str] aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyArgs']]] custom_keys: Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs'] scope_down_statement: Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "limit", limit) + if aggregate_key_type is not None: + pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) + if custom_keys is not None: + pulumi.set(__self__, "custom_keys", custom_keys) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + if scope_down_statement is not None: + pulumi.set(__self__, "scope_down_statement", scope_down_statement) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def limit(self) -> pulumi.Input[int]: """ - What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Limit on requests per 5-minute period for a single originating IP address. """ - return pulumi.get(self, "oversize_handling") - - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + return pulumi.get(self, "limit") + @limit.setter + def limit(self, value: pulumi.Input[int]): + pulumi.set(self, "limit", value) -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs: - def __init__(__self__, *, - match_patterns: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + @property + @pulumi.getter(name="aggregateKeyType") + def aggregate_key_type(self) -> Optional[pulumi.Input[str]]: """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param pulumi.Input[str] match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param pulumi.Input[str] oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + return pulumi.get(self, "aggregate_key_type") + + @aggregate_key_type.setter + def aggregate_key_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "aggregate_key_type", value) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]: + @pulumi.getter(name="customKeys") + def custom_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyArgs']]]]: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "custom_keys") - @match_patterns.setter - def match_patterns(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs']]]): - pulumi.set(self, "match_patterns", value) + @custom_keys.setter + def custom_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyArgs']]]]): + pulumi.set(self, "custom_keys", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']]: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "forwarded_ip_config") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @forwarded_ip_config.setter + def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']]): + pulumi.set(self, "forwarded_ip_config", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter(name="scopeDownStatement") + def scope_down_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']]: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "scope_down_statement") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @scope_down_statement.setter + def scope_down_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']]): + pulumi.set(self, "scope_down_statement", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs: - def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']] = None, - excluded_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_cookies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): - """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) +class WebAclRuleStatementRateBasedStatementCustomKeyArgs: + def __init__(__self__, *, + cookie: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs']] = None, + forwarded_ip: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']] = None, + header: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs']] = None, + http_method: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']] = None, + ip: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyIpArgs']] = None, + label_namespace: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']] = None, + query_argument: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']] = None, + query_string: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs']] = None, + uri_path: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs']] = None): + """ + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs'] cookie: Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs'] forwarded_ip: Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs'] header: Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs'] http_method: Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyIpArgs'] ip: Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs'] label_namespace: Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs'] query_argument: Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs'] query_string: Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + :param pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs'] uri_path: Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + """ + if cookie is not None: + pulumi.set(__self__, "cookie", cookie) + if forwarded_ip is not None: + pulumi.set(__self__, "forwarded_ip", forwarded_ip) + if header is not None: + pulumi.set(__self__, "header", header) + if http_method is not None: + pulumi.set(__self__, "http_method", http_method) + if ip is not None: + pulumi.set(__self__, "ip", ip) + if label_namespace is not None: + pulumi.set(__self__, "label_namespace", label_namespace) + if query_argument is not None: + pulumi.set(__self__, "query_argument", query_argument) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]: + def cookie(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs']]: """ - An empty configuration block that is used for inspecting all headers. + Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. """ - return pulumi.get(self, "all") + return pulumi.get(self, "cookie") - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs']]): - pulumi.set(self, "all", value) + @cookie.setter + def cookie(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs']]): + pulumi.set(self, "cookie", value) @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "excluded_cookies") + @pulumi.getter(name="forwardedIp") + def forwarded_ip(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']]: + """ + Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + """ + return pulumi.get(self, "forwarded_ip") - @excluded_cookies.setter - def excluded_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_cookies", value) + @forwarded_ip.setter + def forwarded_ip(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs']]): + pulumi.set(self, "forwarded_ip", value) @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_cookies") + @pulumi.getter + def header(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs']]: + """ + Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + """ + return pulumi.get(self, "header") - @included_cookies.setter - def included_cookies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_cookies", value) + @header.setter + def header(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs']]): + pulumi.set(self, "header", value) + @property + @pulumi.getter(name="httpMethod") + def http_method(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']]: + """ + Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + """ + return pulumi.get(self, "http_method") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs: - def __init__(__self__): - pass + @http_method.setter + def http_method(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs']]): + pulumi.set(self, "http_method", value) + @property + @pulumi.getter + def ip(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyIpArgs']]: + """ + Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + """ + return pulumi.get(self, "ip") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs: - def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'], - match_scope: pulumi.Input[str], - oversize_handling: pulumi.Input[str]): + @ip.setter + def ip(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyIpArgs']]): + pulumi.set(self, "ip", value) + + @property + @pulumi.getter(name="labelNamespace") + def label_namespace(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']]: """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs'] match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param pulumi.Input[str] match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param pulumi.Input[str] oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + return pulumi.get(self, "label_namespace") + + @label_namespace.setter + def label_namespace(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs']]): + pulumi.set(self, "label_namespace", value) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']: + @pulumi.getter(name="queryArgument") + def query_argument(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']]: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "query_argument") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @query_argument.setter + def query_argument(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs']]): + pulumi.set(self, "query_argument", value) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs']]: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "query_string") - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + @query_string.setter + def query_string(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs']]): + pulumi.set(self, "query_string", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> pulumi.Input[str]: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs']]: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "uri_path") - @oversize_handling.setter - def oversize_handling(self, value: pulumi.Input[str]): - pulumi.set(self, "oversize_handling", value) + @uri_path.setter + def uri_path(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs']]): + pulumi.set(self, "uri_path", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']] = None, - excluded_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - included_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. - :param pulumi.Input[Sequence[pulumi.Input[str]]] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param pulumi.Input[Sequence[pulumi.Input[str]]] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param pulumi.Input[str] name: The name of the cookie to use. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]: - """ - An empty configuration block that is used for inspecting all headers. - """ - return pulumi.get(self, "all") - - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs']]): - pulumi.set(self, "all", value) - - @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def name(self) -> pulumi.Input[str]: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + The name of the cookie to use. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "name") - @excluded_headers.setter - def excluded_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "excluded_headers", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "included_headers") - - @included_headers.setter - def included_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_headers", value) - + return pulumi.get(self, "text_transformations") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs: - def __init__(__self__): - pass + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs: def __init__(__self__, *, - match_pattern: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'], - match_scope: pulumi.Input[str], - invalid_fallback_behavior: Optional[pulumi.Input[str]] = None, - oversize_handling: Optional[pulumi.Input[str]] = None): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs'] match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param pulumi.Input[str] match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param pulumi.Input[str] invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param pulumi.Input[str] oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: + """ + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + """ + return pulumi.get(self, "priority") + + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "type") - @match_pattern.setter - def match_pattern(self, value: pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs']): - pulumi.set(self, "match_pattern", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) - @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> pulumi.Input[str]: + +@pulumi.input_type +class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs: + def __init__(__self__): + pass + + +@pulumi.input_type +class WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]): """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param pulumi.Input[str] name: The name of the header to use. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "match_scope") - - @match_scope.setter - def match_scope(self, value: pulumi.Input[str]): - pulumi.set(self, "match_scope", value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def name(self) -> pulumi.Input[str]: """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + The name of the header to use. """ - return pulumi.get(self, "invalid_fallback_behavior") + return pulumi.get(self, "name") - @invalid_fallback_behavior.setter - def invalid_fallback_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "invalid_fallback_behavior", value) + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "text_transformations") - @oversize_handling.setter - def oversize_handling(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "oversize_handling", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs: def __init__(__self__, *, - all: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']] = None, - included_paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs'] all: An empty configuration block that is used for inspecting all headers. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def all(self) -> Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]: + def priority(self) -> pulumi.Input[int]: """ - An empty configuration block that is used for inspecting all headers. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "all") + return pulumi.get(self, "priority") - @all.setter - def all(self, value: Optional[pulumi.Input['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs']]): - pulumi.set(self, "all", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - return pulumi.get(self, "included_paths") - - @included_paths.setter - def included_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "included_paths", value) - + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs: - def __init__(__self__): - pass + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyIpArgs: def __init__(__self__): pass @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + namespace: pulumi.Input[str]): """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] namespace: The namespace to use for aggregation """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "namespace", namespace) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def namespace(self) -> pulumi.Input[str]: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + The namespace to use for aggregation """ - return pulumi.get(self, "name") + return pulumi.get(self, "namespace") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @namespace.setter + def namespace(self, value: pulumi.Input[str]): + pulumi.set(self, "namespace", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs: def __init__(__self__, *, - name: pulumi.Input[str]): + name: pulumi.Input[str], + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]): """ - :param pulumi.Input[str] name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param pulumi.Input[str] name: The name of the query argument to use. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + The name of the query argument to use. """ return pulumi.get(self, "name") @@ -19213,15 +20447,21 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + """ + return pulumi.get(self, "text_transformations") -@pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs: - def __init__(__self__): - pass + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs: def __init__(__self__, *, priority: pulumi.Input[int], type: pulumi.Input[str]): @@ -19258,117 +20498,121 @@ def type(self, value: pulumi.Input[str]): @pulumi.input_type -class WebAclRuleStatementNotStatementArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]: """ - The statements to combine. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "text_transformations") - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - pulumi.set(self, "statements", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) @pulumi.input_type -class WebAclRuleStatementOrStatementArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs: def __init__(__self__, *, - statements: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]] statements: The statements to combine. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]: + def priority(self) -> pulumi.Input[int]: """ - The statements to combine. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "priority") - @statements.setter - def statements(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementArgs']]]): - pulumi.set(self, "statements", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) + + @property + @pulumi.getter + def type(self) -> pulumi.Input[str]: + """ + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type -class WebAclRuleStatementRateBasedStatementArgs: +class WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs: def __init__(__self__, *, - limit: pulumi.Input[int], - aggregate_key_type: Optional[pulumi.Input[str]] = None, - forwarded_ip_config: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']] = None, - scope_down_statement: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']] = None): + text_transformations: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]): """ - :param pulumi.Input[int] limit: Limit on requests per 5-minute period for a single originating IP address. - :param pulumi.Input[str] aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. - :param pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs'] forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. - :param pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs'] scope_down_statement: Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. + :param pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - pulumi.set(__self__, "limit", limit) - if aggregate_key_type is not None: - pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) - if scope_down_statement is not None: - pulumi.set(__self__, "scope_down_statement", scope_down_statement) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def limit(self) -> pulumi.Input[int]: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]: """ - Limit on requests per 5-minute period for a single originating IP address. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "limit") + return pulumi.get(self, "text_transformations") - @limit.setter - def limit(self, value: pulumi.Input[int]): - pulumi.set(self, "limit", value) + @text_transformations.setter + def text_transformations(self, value: pulumi.Input[Sequence[pulumi.Input['WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs']]]): + pulumi.set(self, "text_transformations", value) - @property - @pulumi.getter(name="aggregateKeyType") - def aggregate_key_type(self) -> Optional[pulumi.Input[str]]: + +@pulumi.input_type +class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs: + def __init__(__self__, *, + priority: pulumi.Input[int], + type: pulumi.Input[str]): """ - Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param pulumi.Input[int] priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param pulumi.Input[str] type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "aggregate_key_type") - - @aggregate_key_type.setter - def aggregate_key_type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "aggregate_key_type", value) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']]: + @pulumi.getter + def priority(self) -> pulumi.Input[int]: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "forwarded_ip_config") + return pulumi.get(self, "priority") - @forwarded_ip_config.setter - def forwarded_ip_config(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs']]): - pulumi.set(self, "forwarded_ip_config", value) + @priority.setter + def priority(self, value: pulumi.Input[int]): + pulumi.set(self, "priority", value) @property - @pulumi.getter(name="scopeDownStatement") - def scope_down_statement(self) -> Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']]: + @pulumi.getter + def type(self) -> pulumi.Input[str]: """ - Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "scope_down_statement") + return pulumi.get(self, "type") - @scope_down_statement.setter - def scope_down_statement(self, value: Optional[pulumi.Input['WebAclRuleStatementRateBasedStatementScopeDownStatementArgs']]): - pulumi.set(self, "scope_down_statement", value) + @type.setter + def type(self, value: pulumi.Input[str]): + pulumi.set(self, "type", value) @pulumi.input_type diff --git a/sdk/python/pulumi_aws/wafv2/outputs.py b/sdk/python/pulumi_aws/wafv2/outputs.py index 44f94db7d7c..bd92a2f6a57 100644 --- a/sdk/python/pulumi_aws/wafv2/outputs.py +++ b/sdk/python/pulumi_aws/wafv2/outputs.py @@ -62,6 +62,21 @@ 'RuleGroupRuleStatementNotStatement', 'RuleGroupRuleStatementOrStatement', 'RuleGroupRuleStatementRateBasedStatement', + 'RuleGroupRuleStatementRateBasedStatementCustomKey', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyCookie', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHeader', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyIp', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath', + 'RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation', 'RuleGroupRuleStatementRateBasedStatementForwardedIpConfig', 'RuleGroupRuleStatementRateBasedStatementScopeDownStatement', 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement', @@ -512,6 +527,21 @@ 'WebAclRuleStatementNotStatement', 'WebAclRuleStatementOrStatement', 'WebAclRuleStatementRateBasedStatement', + 'WebAclRuleStatementRateBasedStatementCustomKey', + 'WebAclRuleStatementRateBasedStatementCustomKeyCookie', + 'WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation', + 'WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp', + 'WebAclRuleStatementRateBasedStatementCustomKeyHeader', + 'WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation', + 'WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod', + 'WebAclRuleStatementRateBasedStatementCustomKeyIp', + 'WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryString', + 'WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation', + 'WebAclRuleStatementRateBasedStatementCustomKeyUriPath', + 'WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation', 'WebAclRuleStatementRateBasedStatementForwardedIpConfig', 'WebAclRuleStatementRateBasedStatementScopeDownStatement', 'WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement', @@ -2869,6 +2899,8 @@ def __key_warning(key: str): suggest = None if key == "aggregateKeyType": suggest = "aggregate_key_type" + elif key == "customKeys": + suggest = "custom_keys" elif key == "forwardedIpConfig": suggest = "forwarded_ip_config" elif key == "scopeDownStatement": @@ -2888,17 +2920,21 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, limit: int, aggregate_key_type: Optional[str] = None, + custom_keys: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKey']] = None, forwarded_ip_config: Optional['outputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfig'] = None, scope_down_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatement'] = None): """ :param int limit: The limit on requests per 5-minute period for a single originating IP address. - :param str aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param str aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyArgs'] custom_keys: Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. :param 'RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs' forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementArgs' scope_down_statement: An optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See Statement above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. """ pulumi.set(__self__, "limit", limit) if aggregate_key_type is not None: pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) + if custom_keys is not None: + pulumi.set(__self__, "custom_keys", custom_keys) if forwarded_ip_config is not None: pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) if scope_down_statement is not None: @@ -2916,10 +2952,18 @@ def limit(self) -> int: @pulumi.getter(name="aggregateKeyType") def aggregate_key_type(self) -> Optional[str]: """ - Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP` or `IP`. Default: `IP`. """ return pulumi.get(self, "aggregate_key_type") + @property + @pulumi.getter(name="customKeys") + def custom_keys(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKey']]: + """ + Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + """ + return pulumi.get(self, "custom_keys") + @property @pulumi.getter(name="forwardedIpConfig") def forwarded_ip_config(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfig']: @@ -2938,1574 +2982,1357 @@ def scope_down_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBa @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementForwardedIpConfig(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKey(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" + if key == "forwardedIp": + suggest = "forwarded_ip" + elif key == "httpMethod": + suggest = "http_method" + elif key == "labelNamespace": + suggest = "label_namespace" + elif key == "queryArgument": + suggest = "query_argument" + elif key == "queryString": + suggest = "query_string" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKey. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementForwardedIpConfig.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKey.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementForwardedIpConfig.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKey.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - fallback_behavior: str, - header_name: str): + cookie: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie'] = None, + forwarded_ip: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp'] = None, + header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader'] = None, + http_method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod'] = None, + ip: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIp'] = None, + label_namespace: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace'] = None, + query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath'] = None): """ - :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: The name of the HTTP header to use for the IP address. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyCookieArgs' cookie: (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIpArgs' forwarded_ip: (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderArgs' header: (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethodArgs' http_method: (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyIpArgs' ip: (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs' label_namespace: (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs' query_argument: (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + if cookie is not None: + pulumi.set(__self__, "cookie", cookie) + if forwarded_ip is not None: + pulumi.set(__self__, "forwarded_ip", forwarded_ip) + if header is not None: + pulumi.set(__self__, "header", header) + if http_method is not None: + pulumi.set(__self__, "http_method", http_method) + if ip is not None: + pulumi.set(__self__, "ip", ip) + if label_namespace is not None: + pulumi.set(__self__, "label_namespace", label_namespace) + if query_argument is not None: + pulumi.set(__self__, "query_argument", query_argument) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: + @pulumi.getter + def cookie(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookie']: """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + (Optional) Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "cookie") @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: - """ - The name of the HTTP header to use for the IP address. - """ - return pulumi.get(self, "header_name") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatement(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "andStatement": - suggest = "and_statement" - elif key == "byteMatchStatement": - suggest = "byte_match_statement" - elif key == "geoMatchStatement": - suggest = "geo_match_statement" - elif key == "ipSetReferenceStatement": - suggest = "ip_set_reference_statement" - elif key == "labelMatchStatement": - suggest = "label_match_statement" - elif key == "notStatement": - suggest = "not_statement" - elif key == "orStatement": - suggest = "or_statement" - elif key == "regexMatchStatement": - suggest = "regex_match_statement" - elif key == "regexPatternSetReferenceStatement": - suggest = "regex_pattern_set_reference_statement" - elif key == "sizeConstraintStatement": - suggest = "size_constraint_statement" - elif key == "sqliMatchStatement": - suggest = "sqli_match_statement" - elif key == "xssMatchStatement": - suggest = "xss_match_statement" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatement. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatement.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatement.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - and_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement'] = None, - byte_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement'] = None, - geo_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement'] = None, - ip_set_reference_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement'] = None, - label_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement'] = None, - not_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement'] = None, - or_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement'] = None, - regex_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement'] = None, - regex_pattern_set_reference_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement'] = None, - size_constraint_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement'] = None, - sqli_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement'] = None, - xss_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement'] = None): + @pulumi.getter(name="forwardedIp") + def forwarded_ip(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp']: """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs' and_statement: A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs' byte_match_statement: A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs' geo_match_statement: A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs' ip_set_reference_statement: A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs' label_match_statement: A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs' not_statement: A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs' or_statement: A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs' regex_match_statement: A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs' size_constraint_statement: A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs' xss_match_statement: A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + (Optional) Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + return pulumi.get(self, "forwarded_ip") @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement']: + @pulumi.getter + def header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader']: """ - A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + (Optional) Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "header") @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement']: + @pulumi.getter(name="httpMethod") + def http_method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod']: """ - A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + (Optional) Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. """ - return pulumi.get(self, "byte_match_statement") + return pulumi.get(self, "http_method") @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement']: + @pulumi.getter + def ip(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyIp']: """ - A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + (Optional) Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. """ - return pulumi.get(self, "geo_match_statement") + return pulumi.get(self, "ip") @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement']: + @pulumi.getter(name="labelNamespace") + def label_namespace(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace']: """ - A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + (Optional) Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. """ - return pulumi.get(self, "ip_set_reference_statement") + return pulumi.get(self, "label_namespace") @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement']: + @pulumi.getter(name="queryArgument") + def query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument']: """ - A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + (Optional) Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "query_argument") @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement']: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString']: """ - A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "not_statement") + return pulumi.get(self, "query_string") @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement']: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath']: """ - A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "uri_path") - @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement']: - """ - A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. - """ - return pulumi.get(self, "regex_match_statement") - @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement']: - """ - A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. - """ - return pulumi.get(self, "regex_pattern_set_reference_statement") +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyCookie(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "textTransformations": + suggest = "text_transformations" - @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement']: + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKeyCookie. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementCustomKeyCookie.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + name: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation']): """ - A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + :param str name: A friendly name of the rule group. + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "size_constraint_statement") + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement']: + @pulumi.getter + def name(self) -> str: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + A friendly name of the rule group. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "name") @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement']: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation']: """ - A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "text_transformations") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKeyCookieTextTransformation(dict): def __init__(__self__, *, - statements: Sequence['outputs.RuleGroupRuleStatement']): + priority: int, + type: str): """ - :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: + def priority(self) -> int: """ - The statements to combine. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "priority") + + @property + @pulumi.getter + def type(self) -> str: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKeyForwardedIp(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "positionalConstraint": - suggest = "positional_constraint" - elif key == "searchString": - suggest = "search_string" - elif key == "textTransformations": + if key == "textTransformations": suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKeyHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - positional_constraint: str, - search_string: str, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch'] = None): + name: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation']): """ - :param str positional_constraint: The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param str search_string: A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param str name: A friendly name of the rule group. + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "name", name) pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) - - @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> str: - """ - The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - """ - return pulumi.get(self, "positional_constraint") @property - @pulumi.getter(name="searchString") - def search_string(self) -> str: + @pulumi.getter + def name(self) -> str: """ - A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + A friendly name of the rule group. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "name") @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ return pulumi.get(self, "text_transformations") - @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch']: - """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - """ - return pulumi.get(self, "field_to_match") - @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) - return super().get(key, default) - +class RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation(dict): def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath'] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments']: + priority: int, + type: str): """ - Inspect all query arguments. + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "all_query_arguments") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody']: + def priority(self) -> int: """ - Inspect the request body, which immediately follows the request headers. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "body") + return pulumi.get(self, "priority") @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies']: + def type(self) -> str: """ - Inspect the cookies in the web request. See Cookies below for details. + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "cookies") + return pulumi.get(self, "type") - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See Headers below for details. - """ - return pulumi.get(self, "headers") - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody']: - """ - Inspect the request body as JSON. See JSON Body for details. - """ - return pulumi.get(self, "json_body") +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyHttpMethod(dict): + def __init__(__self__): + pass - @property - @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod']: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString']: - """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyIp(dict): + def __init__(__self__): + pass - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader']: - """ - Inspect a single header. See Single Header below for details. - """ - return pulumi.get(self, "single_header") - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument']: +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyLabelNamespace(dict): + def __init__(__self__, *, + namespace: str): """ - Inspect a single query argument. See Single Query Argument below for details. + :param str namespace: The namespace to use for aggregation """ - return pulumi.get(self, "single_query_argument") + pulumi.set(__self__, "namespace", namespace) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath']: + @pulumi.getter + def namespace(self) -> str: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The namespace to use for aggregation """ - return pulumi.get(self, "uri_path") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): - def __init__(__self__): - pass + return pulumi.get(self, "namespace") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgument.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - oversize_handling: Optional[str] = None): - """ - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + name: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation']): """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + :param str name: A friendly name of the rule group. + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def name(self) -> str: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + A friendly name of the rule group. """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) - return super().get(key, default) + return pulumi.get(self, "name") - def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation']: """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + return pulumi.get(self, "text_transformations") - @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "match_patterns") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter + def priority(self) -> int: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def type(self) -> str: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "type") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyQueryString.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation']): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation']: """ - An empty configuration block that is used for inspecting all headers. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "all") - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") - - @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass + return pulumi.get(self, "text_transformations") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) - return super().get(key, default) - +class RuleGroupRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation(dict): def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern': + priority: int, + type: str): """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "match_pattern") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter + def priority(self) -> int: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def type(self) -> str: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "type") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementCustomKeyUriPath.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, - excluded_headers: Optional[Sequence[str]] = None, - included_headers: Optional[Sequence[str]] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation']): """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + :param Sequence['RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + """ + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation']: """ - An empty configuration block that is used for inspecting all headers. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "all") + return pulumi.get(self, "text_transformations") - @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[Sequence[str]]: + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "excluded_headers") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter + def priority(self) -> int: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "included_headers") - + return pulumi.get(self, "priority") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter + def type(self) -> str: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "invalidFallbackBehavior": - suggest = "invalid_fallback_behavior" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', - match_scope: str, - invalid_fallback_behavior: Optional[str] = None, - oversize_handling: Optional[str] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': - """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - """ - return pulumi.get(self, "match_pattern") - - @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + fallback_behavior: str, + header_name: str): """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: The name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "match_scope") + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "invalid_fallback_behavior") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + The name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "header_name") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "includedPaths": - suggest = "included_paths" + if key == "andStatement": + suggest = "and_statement" + elif key == "byteMatchStatement": + suggest = "byte_match_statement" + elif key == "geoMatchStatement": + suggest = "geo_match_statement" + elif key == "ipSetReferenceStatement": + suggest = "ip_set_reference_statement" + elif key == "labelMatchStatement": + suggest = "label_match_statement" + elif key == "notStatement": + suggest = "not_statement" + elif key == "orStatement": + suggest = "or_statement" + elif key == "regexMatchStatement": + suggest = "regex_match_statement" + elif key == "regexPatternSetReferenceStatement": + suggest = "regex_pattern_set_reference_statement" + elif key == "sizeConstraintStatement": + suggest = "size_constraint_statement" + elif key == "sqliMatchStatement": + suggest = "sqli_match_statement" + elif key == "xssMatchStatement": + suggest = "xss_match_statement" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): + and_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement'] = None, + byte_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement'] = None, + geo_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement'] = None, + ip_set_reference_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement'] = None, + label_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement'] = None, + not_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement'] = None, + or_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement'] = None, + regex_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement'] = None, + regex_pattern_set_reference_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement'] = None, + size_constraint_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement'] = None, + sqli_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement'] = None, + xss_match_statement: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatementArgs' and_statement: A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs' byte_match_statement: A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementArgs' geo_match_statement: A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementArgs' ip_set_reference_statement: A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatementArgs' label_match_statement: A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs' not_statement: A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatementArgs' or_statement: A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementArgs' regex_match_statement: A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementArgs' size_constraint_statement: A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementArgs' xss_match_statement: A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement']: """ - An empty configuration block that is used for inspecting all headers. + A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. """ - return pulumi.get(self, "all") + return pulumi.get(self, "and_statement") @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement']: + """ + A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. + """ + return pulumi.get(self, "byte_match_statement") + @property + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement']: + """ + A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. + """ + return pulumi.get(self, "geo_match_statement") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement']: + """ + A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. + """ + return pulumi.get(self, "ip_set_reference_statement") + @property + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement']: + """ + A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. + """ + return pulumi.get(self, "label_match_statement") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(dict): - def __init__(__self__, *, - name: str): + @property + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement']: """ - :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. + A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. """ - pulumi.set(__self__, "name", name) + return pulumi.get(self, "not_statement") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement']: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "or_statement") + @property + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement']: + """ + A rule statement used to search web request components for a match against a single regular expression. See Regex Match Statement below for details. + """ + return pulumi.get(self, "regex_match_statement") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): - def __init__(__self__, *, - name: str): + @property + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement']: """ - :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. + A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. """ - pulumi.set(__self__, "name", name) + return pulumi.get(self, "regex_pattern_set_reference_statement") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement']: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "size_constraint_statement") + @property + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement']: + """ + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. + """ + return pulumi.get(self, "sqli_match_statement") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement']: + """ + A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. + """ + return pulumi.get(self, "xss_match_statement") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementAndStatement(dict): def __init__(__self__, *, - priority: int, - type: str): - """ - :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) - - @property - @pulumi.getter - def priority(self) -> int: + statements: Sequence['outputs.RuleGroupRuleStatement']): """ - The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. """ - return pulumi.get(self, "priority") + pulumi.set(__self__, "statements", statements) @property @pulumi.getter - def type(self) -> str: + def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: """ - The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + The statements to combine. """ - return pulumi.get(self, "type") + return pulumi.get(self, "statements") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "countryCodes": - suggest = "country_codes" - elif key == "forwardedIpConfig": - suggest = "forwarded_ip_config" + if key == "positionalConstraint": + suggest = "positional_constraint" + elif key == "searchString": + suggest = "search_string" + elif key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - country_codes: Sequence[str], - forwarded_ip_config: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig'] = None): + positional_constraint: str, + search_string: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch'] = None): """ - :param Sequence[str] country_codes: An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. + :param str positional_constraint: The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param str search_string: A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> Sequence[str]: + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> str: """ - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. """ - return pulumi.get(self, "country_codes") + return pulumi.get(self, "positional_constraint") @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig']: - """ - The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. - """ - return pulumi.get(self, "forwarded_ip_config") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - fallback_behavior: str, - header_name: str): + @pulumi.getter(name="searchString") + def search_string(self) -> str: """ - :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: The name of the HTTP header to use for the IP address. + A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + return pulumi.get(self, "search_string") @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation']: """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch']: """ - The name of the HTTP header to use for the IP address. + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "ipSetForwardedIpConfig": - suggest = "ip_set_forwarded_ip_config" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - ip_set_forwarded_ip_config: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): - """ - :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. - """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) - - @property - @pulumi.getter - def arn(self) -> str: + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath'] = None): """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "arn") + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig']: - """ - The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. - """ - return pulumi.get(self, "ip_set_forwarded_ip_config") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - fallback_behavior: str, - header_name: str, - position: str): + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments']: """ - :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: The name of the HTTP header to use for the IP address. - :param str position: The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Inspect all query arguments. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) + return pulumi.get(self, "all_query_arguments") @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: + @pulumi.getter + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody']: """ - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + Inspect the request body, which immediately follows the request headers. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "body") @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: + @pulumi.getter + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies']: """ - The name of the HTTP header to use for the IP address. + Inspect the cookies in the web request. See Cookies below for details. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "cookies") @property @pulumi.getter - def position(self) -> str: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']]: """ - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Inspect the request headers. See Headers below for details. """ - return pulumi.get(self, "position") - + return pulumi.get(self, "headers") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement(dict): - def __init__(__self__, *, - key: str, - scope: str): + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody']: """ - :param str key: The string to match against. - :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Inspect the request body as JSON. See JSON Body for details. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + return pulumi.get(self, "json_body") @property @pulumi.getter - def key(self) -> str: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod']: """ - The string to match against. + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ - return pulumi.get(self, "key") + return pulumi.get(self, "method") @property - @pulumi.getter - def scope(self) -> str: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString']: """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "scope") + return pulumi.get(self, "query_string") + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader']: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement(dict): - def __init__(__self__, *, - statements: Sequence['outputs.RuleGroupRuleStatement']): + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument']: """ - :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. + Inspect a single query argument. See Single Query Argument below for details. """ - pulumi.set(__self__, "statements", statements) + return pulumi.get(self, "single_query_argument") @property - @pulumi.getter - def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath']: """ - The statements to combine. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "uri_path") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - statements: Sequence['outputs.RuleGroupRuleStatement']): + oversize_handling: Optional[str] = None): """ - :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "statements", statements) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - The statements to combine. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "regexString": - suggest = "regex_string" - elif key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" + if key == "matchPatterns": + suggest = "match_patterns" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - regex_string: str, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch'] = None): + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], + match_scope: str, + oversize_handling: str): """ - :param str regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ - pulumi.set(__self__, "regex_string", regex_string) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="regexString") - def regex_string(self) -> str: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: """ - The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "regex_string") + return pulumi.get(self, "match_patterns") @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation']: - """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - return pulumi.get(self, "text_transformations") + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + """ + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath'] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments']: - """ - Inspect all query arguments. - """ - return pulumi.get(self, "all_query_arguments") - - @property - @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody']: - """ - Inspect the request body, which immediately follows the request headers. - """ - return pulumi.get(self, "body") - - @property - @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies']: - """ - Inspect the cookies in the web request. See Cookies below for details. - """ - return pulumi.get(self, "cookies") - - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See Headers below for details. - """ - return pulumi.get(self, "headers") - - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody']: + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "json_body") + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod']: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString']: - """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") - - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: """ - Inspect a single header. See Single Header below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "all") @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: - """ - Inspect a single query argument. See Single Query Argument below for details. - """ - return pulumi.get(self, "single_query_argument") + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath']: - """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - return pulumi.get(self, "uri_path") + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - oversize_handling: Optional[str] = None): - """ - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: - """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPatterns": - suggest = "match_patterns" + if key == "matchPattern": + suggest = "match_pattern" elif key == "matchScope": suggest = "match_scope" elif key == "oversizeHandling": suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_pattern", match_pattern) pulumi.set(__self__, "match_scope", match_scope) pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern': """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "match_pattern") @property @pulumi.getter(name="matchScope") def match_scope(self) -> str: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ return pulumi.get(self, "match_scope") @@ -4513,159 +4340,38 @@ def match_scope(self) -> str: @pulumi.getter(name="oversizeHandling") def oversize_handling(self) -> str: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) - - @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: - """ - An empty configuration block that is used for inspecting all headers. - """ - return pulumi.get(self, "all") - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") - - @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': - """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - """ - return pulumi.get(self, "match_pattern") - - @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: - """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - """ - return pulumi.get(self, "match_scope") - - @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: - """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. - """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -4678,7 +4384,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -4702,13 +4408,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -4722,23 +4428,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -4752,7 +4458,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -4784,7 +4490,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -4792,21 +4498,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -4815,7 +4521,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -4828,25 +4534,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -4864,7 +4570,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -4882,13 +4588,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -4917,1098 +4623,1355 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" + if key == "countryCodes": + suggest = "country_codes" + elif key == "forwardedIpConfig": + suggest = "forwarded_ip_config" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): - """ - :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. - """ - pulumi.set(__self__, "arn", arn) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) - - @property - @pulumi.getter - def arn(self) -> str: + country_codes: Sequence[str], + forwarded_ip_config: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig'] = None): """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param Sequence[str] country_codes: An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. """ - return pulumi.get(self, "arn") + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation']: + @pulumi.getter(name="countryCodes") + def country_codes(self) -> Sequence[str]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. + An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "country_codes") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch']: + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig']: """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "forwarded_ip_config") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: - """ - Inspect all query arguments. - """ - return pulumi.get(self, "all_query_arguments") - - @property - @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody']: - """ - Inspect the request body, which immediately follows the request headers. - """ - return pulumi.get(self, "body") - - @property - @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: - """ - Inspect the cookies in the web request. See Cookies below for details. - """ - return pulumi.get(self, "cookies") - - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See Headers below for details. - """ - return pulumi.get(self, "headers") - - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: - """ - Inspect the request body as JSON. See JSON Body for details. - """ - return pulumi.get(self, "json_body") - - @property - @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: - """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") - - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: + fallback_behavior: str, + header_name: str): """ - Inspect a single header. See Single Header below for details. + :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: The name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "single_header") + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - Inspect a single query argument. See Single Query Argument below for details. + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "single_query_argument") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "uri_path") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): - def __init__(__self__): - pass + return pulumi.get(self, "header_name") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" + if key == "ipSetForwardedIpConfig": + suggest = "ip_set_forwarded_ip_config" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - oversize_handling: Optional[str] = None): + arn: str, + ip_set_forwarded_ip_config: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): """ - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def arn(self) -> str: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + The Amazon Resource Name (ARN) of the IP Set that this statement references. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "arn") + + @property + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig']: + """ + The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. + """ + return pulumi.get(self, "ip_set_forwarded_ip_config") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): + fallback_behavior: str, + header_name: str, + position: str): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + :param str fallback_behavior: The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: The name of the HTTP header to use for the IP address. + :param str position: The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + The name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "header_name") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def position(self) -> str: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "position") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) - return super().get(key, default) - +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement(dict): def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + key: str, + scope: str): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param str key: The string to match against. + :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: + def key(self) -> str: """ - An empty configuration block that is used for inspecting all headers. + The string to match against. """ - return pulumi.get(self, "all") + return pulumi.get(self, "key") @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") + @pulumi.getter + def scope(self) -> str: + """ + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + """ + return pulumi.get(self, "scope") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementNotStatement(dict): + def __init__(__self__, *, + statements: Sequence['outputs.RuleGroupRuleStatement']): + """ + :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") + @pulumi.getter + def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementOrStatement(dict): + def __init__(__self__, *, + statements: Sequence['outputs.RuleGroupRuleStatement']): + """ + :param Sequence['RuleGroupRuleStatementArgs'] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) + + @property + @pulumi.getter + def statements(self) -> Sequence['outputs.RuleGroupRuleStatement']: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "regexString": + suggest = "regex_string" + elif key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): + regex_string: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param str regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': + @pulumi.getter(name="regexString") + def regex_string(self) -> str: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + The string representing the regular expression. Minimum of `1` and maximum of `512` characters. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "regex_string") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation']: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch']: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, - excluded_headers: Optional[Sequence[str]] = None, - included_headers: Optional[Sequence[str]] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments']: """ - An empty configuration block that is used for inspecting all headers. + Inspect all query arguments. """ - return pulumi.get(self, "all") + return pulumi.get(self, "all_query_arguments") @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody']: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + Inspect the request body, which immediately follows the request headers. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "body") @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies']: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Inspect the cookies in the web request. See Cookies below for details. """ - return pulumi.get(self, "included_headers") - + return pulumi.get(self, "cookies") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']]: + """ + Inspect the request headers. See Headers below for details. + """ + return pulumi.get(self, "headers") + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody']: + """ + Inspect the request body as JSON. See JSON Body for details. + """ + return pulumi.get(self, "json_body") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): - @staticmethod + @property + @pulumi.getter + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod']: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") + + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString']: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader']: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") + + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: + """ + Inspect a single query argument. See Single Query Argument below for details. + """ + return pulumi.get(self, "single_query_argument") + + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath']: + """ + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody(dict): + @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" + if key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + oversize_handling: Optional[str] = None): + """ + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: + """ + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPatterns": + suggest = "match_patterns" elif key == "matchScope": suggest = "match_scope" - elif key == "invalidFallbackBehavior": - suggest = "invalid_fallback_behavior" elif key == "oversizeHandling": suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, - invalid_fallback_behavior: Optional[str] = None, - oversize_handling: Optional[str] = None): + oversize_handling: str): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ - pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_patterns", match_patterns) pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "match_patterns") @property @pulumi.getter(name="matchScope") def match_scope(self) -> str: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ return pulumi.get(self, "match_scope") - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: - """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "invalid_fallback_behavior") - @property @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + def oversize_handling(self) -> str: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "includedPaths": - suggest = "included_paths" + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") + + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): - def __init__(__self__): - pass +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): - def __init__(__self__): - pass + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + return super().__getitem__(key) + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + return super().get(key, default) -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, - name: str): + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', + match_scope: str, + oversize_handling: str): """ - :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': """ - The name of the query header to inspect. This setting must be provided as lower case characters. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - return pulumi.get(self, "name") - + return pulumi.get(self, "match_pattern") -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): - def __init__(__self__, *, - name: str): + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - pulumi.set(__self__, "name", name) + return pulumi.get(self, "match_scope") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - The name of the query header to inspect. This setting must be provided as lower case characters. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(dict): - def __init__(__self__, *, - priority: int, - type: str): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + excluded_headers: Optional[Sequence[str]] = None, + included_headers: Optional[Sequence[str]] = None): """ - :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property @pulumi.getter - def priority(self) -> int: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: """ - The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "all") @property - @pulumi.getter - def type(self) -> str: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[Sequence[str]]: """ - The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "type") + return pulumi.get(self, "excluded_headers") + + @property + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[Sequence[str]]: + """ + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + """ + return pulumi.get(self, "included_headers") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "comparisonOperator": - suggest = "comparison_operator" - elif key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "invalidFallbackBehavior": + suggest = "invalid_fallback_behavior" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - comparison_operator: str, - size: int, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch'] = None): + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', + match_scope: str, + invalid_fallback_behavior: Optional[str] = None, + oversize_handling: Optional[str] = None): """ - :param str comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param int size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> str: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': """ - The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "comparison_operator") + return pulumi.get(self, "match_pattern") @property - @pulumi.getter - def size(self) -> int: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "size") + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation']: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. - At least one required. - See Text Transformation below for details. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "invalid_fallback_behavior") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "includedPaths": + suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath'] = None): - """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "all_query_arguments") + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - Inspect the request body, which immediately follows the request headers. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "body") + return pulumi.get(self, "all") @property - @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies']: - """ - Inspect the cookies in the web request. See Cookies below for details. - """ - return pulumi.get(self, "cookies") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See Headers below for details. - """ - return pulumi.get(self, "headers") - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody']: - """ - Inspect the request body as JSON. See JSON Body for details. - """ - return pulumi.get(self, "json_body") +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass - @property - @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod']: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString']: +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader(dict): + def __init__(__self__, *, + name: str): """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "query_string") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader']: + @pulumi.getter + def name(self) -> str: """ - Inspect a single header. See Single Header below for details. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): + def __init__(__self__, *, + name: str): """ - Inspect a single query argument. See Single Query Argument below for details. + :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "single_query_argument") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath']: + @pulumi.getter + def name(self) -> str: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "uri_path") + return pulumi.get(self, "name") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) - return super().get(key, default) - +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexMatchStatementTextTransformation(dict): def __init__(__self__, *, - oversize_handling: Optional[str] = None): + priority: int, + type: str): """ - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def priority(self) -> int: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "priority") + + @property + @pulumi.getter + def type(self) -> str: + """ + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): + arn: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: + @pulumi.getter + def arn(self) -> str: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "arn") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation']: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch']: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: """ - An empty configuration block that is used for inspecting all headers. + Inspect all query arguments. + """ + return pulumi.get(self, "all_query_arguments") + + @property + @pulumi.getter + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody']: + """ + Inspect the request body, which immediately follows the request headers. + """ + return pulumi.get(self, "body") + + @property + @pulumi.getter + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: + """ + Inspect the cookies in the web request. See Cookies below for details. + """ + return pulumi.get(self, "cookies") + + @property + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: + """ + Inspect the request headers. See Headers below for details. + """ + return pulumi.get(self, "headers") + + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: + """ + Inspect the request body as JSON. See JSON Body for details. + """ + return pulumi.get(self, "json_body") + + @property + @pulumi.getter + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") + + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") + + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: + """ + Inspect a single query argument. See Single Query Argument below for details. + """ + return pulumi.get(self, "single_query_argument") + + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: + """ + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + oversize_handling: Optional[str] = None): + """ + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: + """ + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + """ + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPatterns": + suggest = "match_patterns" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], + match_scope: str, + oversize_handling: str): + """ + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + """ + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: + """ + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + """ + return pulumi.get(self, "match_patterns") + + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: + """ + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + """ + return pulumi.get(self, "match_scope") + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: + """ + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + """ + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): + """ + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + """ + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) + + @property + @pulumi.getter + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: + """ + An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @@ -6024,13 +5987,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6042,22 +6005,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -6067,7 +6030,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -6091,7 +6054,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6101,22 +6064,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -6129,7 +6092,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -6153,13 +6116,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6173,23 +6136,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -6203,7 +6166,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -6235,7 +6198,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6243,21 +6206,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -6266,7 +6229,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -6279,25 +6242,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -6315,7 +6278,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -6333,13 +6296,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -6368,42 +6331,66 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "textTransformations": + if key == "comparisonOperator": + suggest = "comparison_operator" + elif key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch'] = None): + comparison_operator: str, + size: int, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch'] = None): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param str comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param int size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> str: + """ + The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + + @property + @pulumi.getter + def size(self) -> int: + """ + The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + """ + return pulumi.get(self, "size") + @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -6413,7 +6400,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBa @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -6421,7 +6408,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedSta @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6439,38 +6426,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -6495,7 +6482,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -6503,7 +6490,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBas @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -6511,7 +6498,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScop @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -6519,7 +6506,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementS @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -6527,7 +6514,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedS @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -6535,7 +6522,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatemen @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -6543,7 +6530,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementSc @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -6551,7 +6538,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedState @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -6559,7 +6546,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStat @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -6567,7 +6554,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateB @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -6575,13 +6562,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatement @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6589,14 +6576,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -6617,7 +6604,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6629,22 +6616,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -6654,7 +6641,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -6678,7 +6665,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6688,22 +6675,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -6714,7 +6701,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -6732,13 +6719,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6750,22 +6737,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -6775,7 +6762,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -6799,7 +6786,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6809,22 +6796,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -6837,7 +6824,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -6861,13 +6848,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6881,23 +6868,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -6911,7 +6898,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -6943,7 +6930,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -6951,21 +6938,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -6974,7 +6961,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -6987,25 +6974,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -7023,7 +7010,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -7041,13 +7028,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -7076,7 +7063,7 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7086,24 +7073,24 @@ def __key_warning(key: str): suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch'] = None): + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch'] = None): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -7111,7 +7098,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -7121,7 +7108,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBa @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -7129,7 +7116,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedSta @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7147,38 +7134,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -7203,7 +7190,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -7211,7 +7198,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBas @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -7219,7 +7206,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScop @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -7227,7 +7214,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementS @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -7235,7 +7222,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedS @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -7243,7 +7230,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatemen @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -7251,7 +7238,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementSc @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -7259,7 +7246,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedState @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -7267,7 +7254,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStat @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -7275,7 +7262,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateB @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -7283,13 +7270,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatement @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7297,14 +7284,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -7325,7 +7312,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7337,22 +7324,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -7362,7 +7349,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -7386,7 +7373,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7396,22 +7383,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7422,7 +7409,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -7440,13 +7427,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7458,22 +7445,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -7483,7 +7470,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -7507,7 +7494,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7517,22 +7504,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -7545,7 +7532,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -7569,13 +7556,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7589,23 +7576,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -7619,7 +7606,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -7651,7 +7638,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7659,21 +7646,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -7682,7 +7669,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -7695,25 +7682,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -7731,7 +7718,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -7749,13 +7736,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -7784,55 +7771,42 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatement(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "regexString": - suggest = "regex_string" - elif key == "textTransformations": + if key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatement.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - regex_string: str, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatch'] = None): + text_transformations: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch'] = None): """ - :param str regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param Sequence['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "regex_string", regex_string) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="regexString") - def regex_string(self) -> str: - """ - The string representing the regular expression. Minimum of `1` and maximum of `512` characters. - """ - return pulumi.get(self, "regex_string") - @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -7842,7 +7816,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexM @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -7850,7 +7824,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchSt @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -7868,38 +7842,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -7924,7 +7898,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -7932,7 +7906,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexMa @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -7940,7 +7914,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFie @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -7948,7 +7922,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatement @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -7956,7 +7930,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexMatch @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -7964,7 +7938,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStateme @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -7972,7 +7946,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementF @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -7980,7 +7954,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStat @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -7988,7 +7962,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchSta @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -7996,7 +7970,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegex @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -8004,13 +7978,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatemen @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8018,14 +7992,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -8046,7 +8020,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8058,22 +8032,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -8083,7 +8057,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -8107,7 +8081,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8117,22 +8091,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -8143,7 +8117,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -8161,13 +8135,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8179,22 +8153,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -8204,7 +8178,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -8228,7 +8202,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8238,22 +8212,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -8266,7 +8240,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -8290,13 +8264,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8310,23 +8284,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -8340,7 +8314,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -8372,7 +8346,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8380,21 +8354,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -8403,7 +8377,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -8416,25 +8390,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -8452,7 +8426,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -8470,13 +8444,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -8505,53 +8479,55 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatement(dict): +class RuleGroupRuleStatementRegexMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "textTransformations": + if key == "regexString": + suggest = "regex_string" + elif key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatement.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - text_transformations: Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): + regex_string: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatch'] = None): """ - :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param str regex_string: The string representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param Sequence['RuleGroupRuleStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "regex_string", regex_string) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter - def arn(self) -> str: + @pulumi.getter(name="regexString") + def regex_string(self) -> str: """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + The string representing the regular expression. Minimum of `1` and maximum of `512` characters. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "regex_string") @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -8561,7 +8537,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexP @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -8569,7 +8545,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexPattern @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8587,38 +8563,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -8643,7 +8619,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -8651,7 +8627,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexPa @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -8659,7 +8635,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferen @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -8667,7 +8643,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetRefe @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -8675,7 +8651,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexPatte @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -8683,7 +8659,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetRe @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -8691,7 +8667,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetRefer @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -8699,7 +8675,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSe @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -8707,7 +8683,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternS @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -8715,7 +8691,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegex @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -8723,13 +8699,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetRef @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8737,14 +8713,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -8765,7 +8741,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8777,22 +8753,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -8802,7 +8778,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -8826,7 +8802,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8836,22 +8812,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -8862,7 +8838,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -8880,13 +8856,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8898,22 +8874,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -8923,7 +8899,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -8947,7 +8923,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -8957,22 +8933,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -8985,7 +8961,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -9009,13 +8985,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9029,23 +9005,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -9059,7 +9035,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -9091,7 +9067,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9099,21 +9075,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9122,7 +9098,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -9135,25 +9111,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -9171,7 +9147,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -9189,13 +9165,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRegexMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation(dict): +class RuleGroupRuleStatementRegexMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -9224,66 +9200,53 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatement(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "comparisonOperator": - suggest = "comparison_operator" - elif key == "textTransformations": + if key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatement.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatement.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - comparison_operator: str, - size: int, - text_transformations: Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatch'] = None): + arn: str, + text_transformations: Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): """ - :param str comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param int size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param Sequence['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) + pulumi.set(__self__, "arn", arn) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> str: - """ - The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - """ - return pulumi.get(self, "comparison_operator") - @property @pulumi.getter - def size(self) -> int: + def arn(self) -> str: """ - The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "size") + return pulumi.get(self, "arn") @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -9293,7 +9256,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSizeCo @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -9301,7 +9264,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstrai @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatch(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9319,38 +9282,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -9375,7 +9338,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -9383,7 +9346,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSizeCon @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -9391,7 +9354,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatemen @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -9399,7 +9362,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintState @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -9407,7 +9370,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSizeConstr @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -9415,7 +9378,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintSta @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -9423,7 +9386,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatem @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -9431,7 +9394,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraint @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -9439,7 +9402,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstrain @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -9447,7 +9410,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSizeC @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -9455,13 +9418,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStat @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9469,14 +9432,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -9497,7 +9460,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9509,22 +9472,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -9534,7 +9497,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -9558,7 +9521,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9568,22 +9531,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9594,7 +9557,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -9612,13 +9575,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9630,22 +9593,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -9655,7 +9618,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -9679,7 +9642,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9689,22 +9652,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -9717,7 +9680,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -9741,13 +9704,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9761,23 +9724,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -9791,7 +9754,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -9823,7 +9786,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -9831,21 +9794,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -9854,7 +9817,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -9867,25 +9830,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -9903,7 +9866,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -9921,13 +9884,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSizeConstraintStatementTextTransformation(dict): +class RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -9956,42 +9919,66 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatement(dict): +class RuleGroupRuleStatementSizeConstraintStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "textTransformations": + if key == "comparisonOperator": + suggest = "comparison_operator" + elif key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatement.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatement.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - text_transformations: Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatch'] = None): + comparison_operator: str, + size: int, + text_transformations: Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatch'] = None): """ - :param Sequence['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param str comparison_operator: The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param int size: The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param Sequence['RuleGroupRuleStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> str: + """ + The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + + @property + @pulumi.getter + def size(self) -> int: + """ + The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + """ + return pulumi.get(self, "size") + @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -10001,7 +9988,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSqliMa @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -10009,7 +9996,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchSta @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10027,38 +10014,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -10083,7 +10070,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -10091,7 +10078,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSqliMat @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -10099,7 +10086,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFiel @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -10107,7 +10094,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementF @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -10115,7 +10102,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSqliMatchS @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -10123,7 +10110,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatemen @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -10131,7 +10118,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFi @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -10139,7 +10126,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchState @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -10147,7 +10134,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStat @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -10155,7 +10142,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSqliM @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -10163,13 +10150,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatement @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10177,14 +10164,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -10205,7 +10192,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10217,22 +10204,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -10242,7 +10229,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -10266,7 +10253,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10276,22 +10263,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -10302,7 +10289,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -10320,13 +10307,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10338,22 +10325,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -10363,7 +10350,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -10387,7 +10374,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10397,22 +10384,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -10425,7 +10412,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -10449,13 +10436,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10469,23 +10456,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -10499,7 +10486,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -10531,7 +10518,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10539,21 +10526,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -10562,7 +10549,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -10575,25 +10562,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -10611,7 +10598,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -10629,13 +10616,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementSqliMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementSizeConstraintStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -10664,7 +10651,7 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatement(dict): +class RuleGroupRuleStatementSqliMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10674,24 +10661,24 @@ def __key_warning(key: str): suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatement.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatement.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - text_transformations: Sequence['outputs.RuleGroupRuleStatementXssMatchStatementTextTransformation'], - field_to_match: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatch'] = None): + text_transformations: Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatch'] = None): """ - :param Sequence['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + :param Sequence['RuleGroupRuleStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. See Text Transformation below for details. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -10699,7 +10686,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementXssMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one required. @@ -10709,7 +10696,7 @@ def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementXssMat @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatch']: """ The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ @@ -10717,7 +10704,7 @@ def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStat @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatch(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10735,38 +10722,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatch.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath'] = None): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. - :param Sequence['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -10791,7 +10778,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -10799,7 +10786,7 @@ def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementXssMatc @property @pulumi.getter - def body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. """ @@ -10807,7 +10794,7 @@ def body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementField @property @pulumi.getter - def cookies(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See Cookies below for details. """ @@ -10815,7 +10802,7 @@ def cookies(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFi @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See Headers below for details. """ @@ -10823,7 +10810,7 @@ def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementXssMatchSt @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See JSON Body for details. """ @@ -10831,7 +10818,7 @@ def json_body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatement @property @pulumi.getter - def method(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -10839,7 +10826,7 @@ def method(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFie @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -10847,7 +10834,7 @@ def query_string(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatem @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See Single Header below for details. """ @@ -10855,7 +10842,7 @@ def single_header(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchState @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See Single Query Argument below for details. """ @@ -10863,7 +10850,7 @@ def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementXssMa @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -10871,13 +10858,13 @@ def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementF @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchBody(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10885,14 +10872,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -10913,7 +10900,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10925,22 +10912,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ @@ -10950,7 +10937,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -10974,7 +10961,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -10984,22 +10971,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -11010,7 +10997,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -11028,13 +11015,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -11046,22 +11033,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -11071,7 +11058,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -11095,7 +11082,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -11105,22 +11092,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -11133,7 +11120,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -11157,13 +11144,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -11177,23 +11164,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -11207,7 +11194,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -11239,7 +11226,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -11247,21 +11234,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -11270,7 +11257,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -11283,25 +11270,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -11319,7 +11306,7 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -11337,13 +11324,13 @@ def name(self) -> str: @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath(dict): +class RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class RuleGroupRuleStatementXssMatchStatementTextTransformation(dict): +class RuleGroupRuleStatementSqliMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -11372,1097 +11359,1087 @@ def type(self) -> str: @pulumi.output_type -class RuleGroupRuleVisibilityConfig(dict): +class RuleGroupRuleStatementXssMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "cloudwatchMetricsEnabled": - suggest = "cloudwatch_metrics_enabled" - elif key == "metricName": - suggest = "metric_name" - elif key == "sampledRequestsEnabled": - suggest = "sampled_requests_enabled" + if key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleVisibilityConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupRuleVisibilityConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupRuleVisibilityConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - cloudwatch_metrics_enabled: bool, - metric_name: str, - sampled_requests_enabled: bool): - """ - :param bool cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - :param str metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - :param bool sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. - """ - pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) - pulumi.set(__self__, "metric_name", metric_name) - pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) - - @property - @pulumi.getter(name="cloudwatchMetricsEnabled") - def cloudwatch_metrics_enabled(self) -> bool: + text_transformations: Sequence['outputs.RuleGroupRuleStatementXssMatchStatementTextTransformation'], + field_to_match: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatch'] = None): """ - A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param Sequence['RuleGroupRuleStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - return pulumi.get(self, "cloudwatch_metrics_enabled") + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="metricName") - def metric_name(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.RuleGroupRuleStatementXssMatchStatementTextTransformation']: """ - A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. + At least one required. + See Text Transformation below for details. """ - return pulumi.get(self, "metric_name") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter(name="sampledRequestsEnabled") - def sampled_requests_enabled(self) -> bool: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatch']: """ - A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. """ - return pulumi.get(self, "sampled_requests_enabled") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class RuleGroupVisibilityConfig(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "cloudwatchMetricsEnabled": - suggest = "cloudwatch_metrics_enabled" - elif key == "metricName": - suggest = "metric_name" - elif key == "sampledRequestsEnabled": - suggest = "sampled_requests_enabled" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in RuleGroupVisibilityConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - RuleGroupVisibilityConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - RuleGroupVisibilityConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - cloudwatch_metrics_enabled: bool, - metric_name: str, - sampled_requests_enabled: bool): + all_query_arguments: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath'] = None): """ - :param bool cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). - :param str metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. - :param bool sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See Cookies below for details. + :param Sequence['RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See Headers below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See JSON Body for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See Single Header below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See Single Query Argument below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) - pulumi.set(__self__, "metric_name", metric_name) - pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="cloudwatchMetricsEnabled") - def cloudwatch_metrics_enabled(self) -> bool: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments']: """ - A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + Inspect all query arguments. """ - return pulumi.get(self, "cloudwatch_metrics_enabled") + return pulumi.get(self, "all_query_arguments") @property - @pulumi.getter(name="metricName") - def metric_name(self) -> str: + @pulumi.getter + def body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchBody']: """ - A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + Inspect the request body, which immediately follows the request headers. """ - return pulumi.get(self, "metric_name") + return pulumi.get(self, "body") @property - @pulumi.getter(name="sampledRequestsEnabled") - def sampled_requests_enabled(self) -> bool: + @pulumi.getter + def cookies(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies']: """ - A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + Inspect the cookies in the web request. See Cookies below for details. """ - return pulumi.get(self, "sampled_requests_enabled") - - -@pulumi.output_type -class WebAclAssociationConfig(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "requestBodies": - suggest = "request_bodies" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclAssociationConfig. Access the value via the '{suggest}' property getter instead.") + return pulumi.get(self, "cookies") - def __getitem__(self, key: str) -> Any: - WebAclAssociationConfig.__key_warning(key) - return super().__getitem__(key) + @property + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader']]: + """ + Inspect the request headers. See Headers below for details. + """ + return pulumi.get(self, "headers") - def get(self, key: str, default = None) -> Any: - WebAclAssociationConfig.__key_warning(key) - return super().get(key, default) + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody']: + """ + Inspect the request body as JSON. See JSON Body for details. + """ + return pulumi.get(self, "json_body") - def __init__(__self__, *, - request_bodies: Optional[Sequence['outputs.WebAclAssociationConfigRequestBody']] = None): + @property + @pulumi.getter + def method(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod']: """ - :param Sequence['WebAclAssociationConfigRequestBodyArgs'] request_bodies: Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ - if request_bodies is not None: - pulumi.set(__self__, "request_bodies", request_bodies) + return pulumi.get(self, "method") @property - @pulumi.getter(name="requestBodies") - def request_bodies(self) -> Optional[Sequence['outputs.WebAclAssociationConfigRequestBody']]: + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString']: """ - Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - return pulumi.get(self, "request_bodies") + return pulumi.get(self, "query_string") + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader']: + """ + Inspect a single header. See Single Header below for details. + """ + return pulumi.get(self, "single_header") -@pulumi.output_type -class WebAclAssociationConfigRequestBody(dict): - def __init__(__self__, *, - cloudfronts: Optional[Sequence['outputs.WebAclAssociationConfigRequestBodyCloudfront']] = None): + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument']: """ - :param Sequence['WebAclAssociationConfigRequestBodyCloudfrontArgs'] cloudfronts: Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + Inspect a single query argument. See Single Query Argument below for details. """ - if cloudfronts is not None: - pulumi.set(__self__, "cloudfronts", cloudfronts) + return pulumi.get(self, "single_query_argument") @property - @pulumi.getter - def cloudfronts(self) -> Optional[Sequence['outputs.WebAclAssociationConfigRequestBodyCloudfront']]: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath']: """ - Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "cloudfronts") + return pulumi.get(self, "uri_path") @pulumi.output_type -class WebAclAssociationConfigRequestBodyCloudfront(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "defaultSizeInspectionLimit": - suggest = "default_size_inspection_limit" +class RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchBody(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclAssociationConfigRequestBodyCloudfront. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclAssociationConfigRequestBodyCloudfront.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclAssociationConfigRequestBodyCloudfront.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - default_size_inspection_limit: str): + oversize_handling: Optional[str] = None): """ - :param str default_size_inspection_limit: Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "default_size_inspection_limit", default_size_inspection_limit) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="defaultSizeInspectionLimit") - def default_size_inspection_limit(self) -> str: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "default_size_inspection_limit") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclCaptchaConfig(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "immunityTimeProperty": - suggest = "immunity_time_property" + if key == "matchPatterns": + suggest = "match_patterns" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclCaptchaConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclCaptchaConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclCaptchaConfig.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - immunity_time_property: Optional['outputs.WebAclCaptchaConfigImmunityTimeProperty'] = None): + match_patterns: Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], + match_scope: str, + oversize_handling: str): """ - :param 'WebAclCaptchaConfigImmunityTimePropertyArgs' immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. + :param Sequence['RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` """ - if immunity_time_property is not None: - pulumi.set(__self__, "immunity_time_property", immunity_time_property) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="immunityTimeProperty") - def immunity_time_property(self) -> Optional['outputs.WebAclCaptchaConfigImmunityTimeProperty']: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: """ - Defines custom immunity time. See `immunity_time_property` below for details. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "immunity_time_property") + return pulumi.get(self, "match_patterns") + + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: + """ + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + """ + return pulumi.get(self, "match_scope") + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: + """ + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH` + """ + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclCaptchaConfigImmunityTimeProperty(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "immunityTime": - suggest = "immunity_time" + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclCaptchaConfigImmunityTimeProperty. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclCaptchaConfigImmunityTimeProperty.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclCaptchaConfigImmunityTimeProperty.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - immunity_time: Optional[int] = None): + all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - :param int immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - if immunity_time is not None: - pulumi.set(__self__, "immunity_time", immunity_time) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property - @pulumi.getter(name="immunityTime") - def immunity_time(self) -> Optional[int]: + @pulumi.getter + def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: """ - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "immunity_time") + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") + + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") @pulumi.output_type -class WebAclCustomResponseBody(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "contentType": - suggest = "content_type" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclCustomResponseBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclCustomResponseBody.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclCustomResponseBody.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - content: str, - content_type: str, - key: str): - """ - :param str content: Payload of the custom response. - :param str content_type: Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. - :param str key: Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. - """ - pulumi.set(__self__, "content", content) - pulumi.set(__self__, "content_type", content_type) - pulumi.set(__self__, "key", key) - - @property - @pulumi.getter - def content(self) -> str: - """ - Payload of the custom response. - """ - return pulumi.get(self, "content") - - @property - @pulumi.getter(name="contentType") - def content_type(self) -> str: + match_pattern: 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern', + match_scope: str, + oversize_handling: str): """ - Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "content_type") + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def key(self) -> str: - """ - Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. - """ - return pulumi.get(self, "key") - - -@pulumi.output_type -class WebAclDefaultAction(dict): - def __init__(__self__, *, - allow: Optional['outputs.WebAclDefaultActionAllow'] = None, - block: Optional['outputs.WebAclDefaultActionBlock'] = None): + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern': """ - :param 'WebAclDefaultActionAllowArgs' allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. - :param 'WebAclDefaultActionBlockArgs' block: Specifies that AWS WAF should block requests by default. See `block` below for details. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - if allow is not None: - pulumi.set(__self__, "allow", allow) - if block is not None: - pulumi.set(__self__, "block", block) + return pulumi.get(self, "match_pattern") @property - @pulumi.getter - def allow(self) -> Optional['outputs.WebAclDefaultActionAllow']: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Specifies that AWS WAF should allow requests by default. See `allow` below for details. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - return pulumi.get(self, "allow") + return pulumi.get(self, "match_scope") @property - @pulumi.getter - def block(self) -> Optional['outputs.WebAclDefaultActionBlock']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Specifies that AWS WAF should block requests by default. See `block` below for details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "block") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclDefaultActionAllow(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionAllow. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclDefaultActionAllow.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclDefaultActionAllow.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclDefaultActionAllowCustomRequestHandling'] = None): + all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + excluded_headers: Optional[Sequence[str]] = None, + included_headers: Optional[Sequence[str]] = None): """ - :param 'WebAclDefaultActionAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) - - @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclDefaultActionAllowCustomRequestHandling']: + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) + + @property + @pulumi.getter + def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[Sequence[str]]: + """ + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + """ + return pulumi.get(self, "excluded_headers") + + @property + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[Sequence[str]]: + """ + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + """ + return pulumi.get(self, "included_headers") @pulumi.output_type -class WebAclDefaultActionAllowCustomRequestHandling(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "invalidFallbackBehavior": + suggest = "invalid_fallback_behavior" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclDefaultActionAllowCustomRequestHandling.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclDefaultActionAllowCustomRequestHandling.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclDefaultActionAllowCustomRequestHandlingInsertHeader']): + match_pattern: 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', + match_scope: str, + invalid_fallback_behavior: Optional[str] = None, + oversize_handling: Optional[str] = None): """ - :param Sequence['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclDefaultActionAllowCustomRequestHandlingInsertHeader']: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "insert_headers") - + return pulumi.get(self, "match_pattern") -@pulumi.output_type -class WebAclDefaultActionAllowCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "match_scope") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "name") + return pulumi.get(self, "invalid_fallback_behavior") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - Value of the custom header. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclDefaultActionBlock(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customResponse": - suggest = "custom_response" + if key == "includedPaths": + suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionBlock. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclDefaultActionBlock.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclDefaultActionBlock.__key_warning(key) + RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_response: Optional['outputs.WebAclDefaultActionBlockCustomResponse'] = None): + all: Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - :param 'WebAclDefaultActionBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. + :param 'RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - if custom_response is not None: - pulumi.set(__self__, "custom_response", custom_response) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property - @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional['outputs.WebAclDefaultActionBlockCustomResponse']: + @pulumi.getter + def all(self) -> Optional['outputs.RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - Defines a custom response for the web request. See `custom_response` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_response") + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") @pulumi.output_type -class WebAclDefaultActionBlockCustomResponse(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "responseCode": - suggest = "response_code" - elif key == "customResponseBodyKey": - suggest = "custom_response_body_key" - elif key == "responseHeaders": - suggest = "response_headers" +class RuleGroupRuleStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") - def __getitem__(self, key: str) -> Any: - WebAclDefaultActionBlockCustomResponse.__key_warning(key) - return super().__getitem__(key) +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass - def get(self, key: str, default = None) -> Any: - WebAclDefaultActionBlockCustomResponse.__key_warning(key) - return super().get(key, default) +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, - response_code: int, - custom_response_body_key: Optional[str] = None, - response_headers: Optional[Sequence['outputs.WebAclDefaultActionBlockCustomResponseResponseHeader']] = None): + name: str): """ - :param int response_code: The HTTP status code to return to the client. - :param str custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param Sequence['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - pulumi.set(__self__, "response_code", response_code) - if custom_response_body_key is not None: - pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) - if response_headers is not None: - pulumi.set(__self__, "response_headers", response_headers) + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="responseCode") - def response_code(self) -> int: + @pulumi.getter + def name(self) -> str: """ - The HTTP status code to return to the client. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "response_code") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="customResponseBodyKey") - def custom_response_body_key(self) -> Optional[str]: + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): + def __init__(__self__, *, + name: str): """ - References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param str name: The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "custom_response_body_key") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[Sequence['outputs.WebAclDefaultActionBlockCustomResponseResponseHeader']]: + @pulumi.getter + def name(self) -> str: """ - The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + The name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "response_headers") + return pulumi.get(self, "name") @pulumi.output_type -class WebAclDefaultActionBlockCustomResponseResponseHeader(dict): +class RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class RuleGroupRuleStatementXssMatchStatementTextTransformation(dict): def __init__(__self__, *, - name: str, - value: str): + priority: int, + type: str): """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + :param int priority: The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def name(self) -> str: + def priority(self) -> int: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "name") + return pulumi.get(self, "priority") @property @pulumi.getter - def value(self) -> str: + def type(self) -> str: """ - Value of the custom header. + The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "value") + return pulumi.get(self, "type") @pulumi.output_type -class WebAclLoggingConfigurationLoggingFilter(dict): +class RuleGroupRuleVisibilityConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "defaultBehavior": - suggest = "default_behavior" + if key == "cloudwatchMetricsEnabled": + suggest = "cloudwatch_metrics_enabled" + elif key == "metricName": + suggest = "metric_name" + elif key == "sampledRequestsEnabled": + suggest = "sampled_requests_enabled" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilter. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in RuleGroupRuleVisibilityConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclLoggingConfigurationLoggingFilter.__key_warning(key) + RuleGroupRuleVisibilityConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclLoggingConfigurationLoggingFilter.__key_warning(key) + RuleGroupRuleVisibilityConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - default_behavior: str, - filters: Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilter']): + cloudwatch_metrics_enabled: bool, + metric_name: str, + sampled_requests_enabled: bool): """ - :param str default_behavior: Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. - :param Sequence['WebAclLoggingConfigurationLoggingFilterFilterArgs'] filters: Filter(s) that you want to apply to the logs. See Filter below for more details. + :param bool cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param str metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + :param bool sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. """ - pulumi.set(__self__, "default_behavior", default_behavior) - pulumi.set(__self__, "filters", filters) + pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) + pulumi.set(__self__, "metric_name", metric_name) + pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) @property - @pulumi.getter(name="defaultBehavior") - def default_behavior(self) -> str: + @pulumi.getter(name="cloudwatchMetricsEnabled") + def cloudwatch_metrics_enabled(self) -> bool: """ - Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. + A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). """ - return pulumi.get(self, "default_behavior") + return pulumi.get(self, "cloudwatch_metrics_enabled") @property - @pulumi.getter - def filters(self) -> Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilter']: + @pulumi.getter(name="metricName") + def metric_name(self) -> str: """ - Filter(s) that you want to apply to the logs. See Filter below for more details. + A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. """ - return pulumi.get(self, "filters") + return pulumi.get(self, "metric_name") + + @property + @pulumi.getter(name="sampledRequestsEnabled") + def sampled_requests_enabled(self) -> bool: + """ + A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. + """ + return pulumi.get(self, "sampled_requests_enabled") @pulumi.output_type -class WebAclLoggingConfigurationLoggingFilterFilter(dict): +class RuleGroupVisibilityConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "cloudwatchMetricsEnabled": + suggest = "cloudwatch_metrics_enabled" + elif key == "metricName": + suggest = "metric_name" + elif key == "sampledRequestsEnabled": + suggest = "sampled_requests_enabled" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RuleGroupVisibilityConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RuleGroupVisibilityConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RuleGroupVisibilityConfig.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - behavior: str, - conditions: Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilterCondition'], - requirement: str): + cloudwatch_metrics_enabled: bool, + metric_name: str, + sampled_requests_enabled: bool): """ - :param str behavior: Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. - :param Sequence['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs'] conditions: Match condition(s) for the filter. See Condition below for more details. - :param str requirement: Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + :param bool cloudwatch_metrics_enabled: A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). + :param str metric_name: A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. + :param bool sampled_requests_enabled: A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. """ - pulumi.set(__self__, "behavior", behavior) - pulumi.set(__self__, "conditions", conditions) - pulumi.set(__self__, "requirement", requirement) + pulumi.set(__self__, "cloudwatch_metrics_enabled", cloudwatch_metrics_enabled) + pulumi.set(__self__, "metric_name", metric_name) + pulumi.set(__self__, "sampled_requests_enabled", sampled_requests_enabled) @property - @pulumi.getter - def behavior(self) -> str: + @pulumi.getter(name="cloudwatchMetricsEnabled") + def cloudwatch_metrics_enabled(self) -> bool: """ - Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). """ - return pulumi.get(self, "behavior") + return pulumi.get(self, "cloudwatch_metrics_enabled") @property - @pulumi.getter - def conditions(self) -> Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilterCondition']: + @pulumi.getter(name="metricName") + def metric_name(self) -> str: """ - Match condition(s) for the filter. See Condition below for more details. + A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. """ - return pulumi.get(self, "conditions") + return pulumi.get(self, "metric_name") @property - @pulumi.getter - def requirement(self) -> str: + @pulumi.getter(name="sampledRequestsEnabled") + def sampled_requests_enabled(self) -> bool: """ - Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. + A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. """ - return pulumi.get(self, "requirement") + return pulumi.get(self, "sampled_requests_enabled") @pulumi.output_type -class WebAclLoggingConfigurationLoggingFilterFilterCondition(dict): +class WebAclAssociationConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "actionCondition": - suggest = "action_condition" - elif key == "labelNameCondition": - suggest = "label_name_condition" + if key == "requestBodies": + suggest = "request_bodies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilterFilterCondition. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclAssociationConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclLoggingConfigurationLoggingFilterFilterCondition.__key_warning(key) + WebAclAssociationConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclLoggingConfigurationLoggingFilterFilterCondition.__key_warning(key) + WebAclAssociationConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - action_condition: Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition'] = None, - label_name_condition: Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition'] = None): - """ - :param 'WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs' action_condition: Configuration for a single action condition. See Action Condition below for more details. - :param 'WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs' label_name_condition: Condition for a single label name. See Label Name Condition below for more details. - """ - if action_condition is not None: - pulumi.set(__self__, "action_condition", action_condition) - if label_name_condition is not None: - pulumi.set(__self__, "label_name_condition", label_name_condition) - - @property - @pulumi.getter(name="actionCondition") - def action_condition(self) -> Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition']: + request_bodies: Optional[Sequence['outputs.WebAclAssociationConfigRequestBody']] = None): """ - Configuration for a single action condition. See Action Condition below for more details. + :param Sequence['WebAclAssociationConfigRequestBodyArgs'] request_bodies: Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. """ - return pulumi.get(self, "action_condition") + if request_bodies is not None: + pulumi.set(__self__, "request_bodies", request_bodies) @property - @pulumi.getter(name="labelNameCondition") - def label_name_condition(self) -> Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition']: + @pulumi.getter(name="requestBodies") + def request_bodies(self) -> Optional[Sequence['outputs.WebAclAssociationConfigRequestBody']]: """ - Condition for a single label name. See Label Name Condition below for more details. + Customizes the request body that your protected resource forward to AWS WAF for inspection. See `request_body` below for details. """ - return pulumi.get(self, "label_name_condition") + return pulumi.get(self, "request_bodies") @pulumi.output_type -class WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition(dict): +class WebAclAssociationConfigRequestBody(dict): def __init__(__self__, *, - action: str): + cloudfronts: Optional[Sequence['outputs.WebAclAssociationConfigRequestBodyCloudfront']] = None): """ - :param str action: Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + :param Sequence['WebAclAssociationConfigRequestBodyCloudfrontArgs'] cloudfronts: Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. """ - pulumi.set(__self__, "action", action) + if cloudfronts is not None: + pulumi.set(__self__, "cloudfronts", cloudfronts) @property @pulumi.getter - def action(self) -> str: + def cloudfronts(self) -> Optional[Sequence['outputs.WebAclAssociationConfigRequestBodyCloudfront']]: """ - Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. + Customizes the request body that your protected CloudFront distributions forward to AWS WAF for inspection. See `cloudfront` below for details. """ - return pulumi.get(self, "action") + return pulumi.get(self, "cloudfronts") @pulumi.output_type -class WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition(dict): +class WebAclAssociationConfigRequestBodyCloudfront(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "labelName": - suggest = "label_name" + if key == "defaultSizeInspectionLimit": + suggest = "default_size_inspection_limit" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclAssociationConfigRequestBodyCloudfront. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition.__key_warning(key) + WebAclAssociationConfigRequestBodyCloudfront.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition.__key_warning(key) + WebAclAssociationConfigRequestBodyCloudfront.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - label_name: str): + default_size_inspection_limit: str): """ - :param str label_name: Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + :param str default_size_inspection_limit: Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. """ - pulumi.set(__self__, "label_name", label_name) + pulumi.set(__self__, "default_size_inspection_limit", default_size_inspection_limit) @property - @pulumi.getter(name="labelName") - def label_name(self) -> str: + @pulumi.getter(name="defaultSizeInspectionLimit") + def default_size_inspection_limit(self) -> str: """ - Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. + Specifies the maximum size of the web request body component that an associated CloudFront distribution should send to AWS WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body. Valid values are `KB_16`, `KB_32`, `KB_48` and `KB_64`. """ - return pulumi.get(self, "label_name") + return pulumi.get(self, "default_size_inspection_limit") @pulumi.output_type -class WebAclLoggingConfigurationRedactedField(dict): +class WebAclCaptchaConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "uriPath": - suggest = "uri_path" + if key == "immunityTimeProperty": + suggest = "immunity_time_property" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationRedactedField. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclCaptchaConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclLoggingConfigurationRedactedField.__key_warning(key) + WebAclCaptchaConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclLoggingConfigurationRedactedField.__key_warning(key) + WebAclCaptchaConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - method: Optional['outputs.WebAclLoggingConfigurationRedactedFieldMethod'] = None, - query_string: Optional['outputs.WebAclLoggingConfigurationRedactedFieldQueryString'] = None, - single_header: Optional['outputs.WebAclLoggingConfigurationRedactedFieldSingleHeader'] = None, - uri_path: Optional['outputs.WebAclLoggingConfigurationRedactedFieldUriPath'] = None): + immunity_time_property: Optional['outputs.WebAclCaptchaConfigImmunityTimeProperty'] = None): """ - :param 'WebAclLoggingConfigurationRedactedFieldMethodArgs' method: HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclLoggingConfigurationRedactedFieldQueryStringArgs' query_string: Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. - :param 'WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs' single_header: "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. - :param 'WebAclLoggingConfigurationRedactedFieldUriPathArgs' uri_path: Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. + :param 'WebAclCaptchaConfigImmunityTimePropertyArgs' immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. """ - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + if immunity_time_property is not None: + pulumi.set(__self__, "immunity_time_property", immunity_time_property) @property - @pulumi.getter - def method(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldMethod']: + @pulumi.getter(name="immunityTimeProperty") + def immunity_time_property(self) -> Optional['outputs.WebAclCaptchaConfigImmunityTimeProperty']: """ - HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + Defines custom immunity time. See `immunity_time_property` below for details. """ - return pulumi.get(self, "method") - - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldQueryString']: - """ - Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") - - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldSingleHeader']: - """ - "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. - """ - return pulumi.get(self, "single_header") - - @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldUriPath']: - """ - Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. - """ - return pulumi.get(self, "uri_path") + return pulumi.get(self, "immunity_time_property") @pulumi.output_type -class WebAclLoggingConfigurationRedactedFieldMethod(dict): - def __init__(__self__): - pass +class WebAclCaptchaConfigImmunityTimeProperty(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "immunityTime": + suggest = "immunity_time" + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclCaptchaConfigImmunityTimeProperty. Access the value via the '{suggest}' property getter instead.") -@pulumi.output_type -class WebAclLoggingConfigurationRedactedFieldQueryString(dict): - def __init__(__self__): - pass + def __getitem__(self, key: str) -> Any: + WebAclCaptchaConfigImmunityTimeProperty.__key_warning(key) + return super().__getitem__(key) + def get(self, key: str, default = None) -> Any: + WebAclCaptchaConfigImmunityTimeProperty.__key_warning(key) + return super().get(key, default) -@pulumi.output_type -class WebAclLoggingConfigurationRedactedFieldSingleHeader(dict): def __init__(__self__, *, - name: str): + immunity_time: Optional[int] = None): """ - :param str name: Name of the query header to redact. This setting must be provided in lowercase characters. + :param int immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. """ - pulumi.set(__self__, "name", name) + if immunity_time is not None: + pulumi.set(__self__, "immunity_time", immunity_time) @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="immunityTime") + def immunity_time(self) -> Optional[int]: """ - Name of the query header to redact. This setting must be provided in lowercase characters. + The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class WebAclLoggingConfigurationRedactedFieldUriPath(dict): - def __init__(__self__): - pass + return pulumi.get(self, "immunity_time") @pulumi.output_type -class WebAclRule(dict): +class WebAclCustomResponseBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "visibilityConfig": - suggest = "visibility_config" - elif key == "captchaConfig": - suggest = "captcha_config" - elif key == "overrideAction": - suggest = "override_action" - elif key == "ruleLabels": - suggest = "rule_labels" + if key == "contentType": + suggest = "content_type" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRule. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclCustomResponseBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRule.__key_warning(key) + WebAclCustomResponseBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRule.__key_warning(key) + WebAclCustomResponseBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - name: str, - priority: int, - statement: 'outputs.WebAclRuleStatement', - visibility_config: 'outputs.WebAclRuleVisibilityConfig', - action: Optional['outputs.WebAclRuleAction'] = None, - captcha_config: Optional['outputs.WebAclRuleCaptchaConfig'] = None, - override_action: Optional['outputs.WebAclRuleOverrideAction'] = None, - rule_labels: Optional[Sequence['outputs.WebAclRuleRuleLabel']] = None): - """ - :param str name: Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. - :param int priority: If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. - :param 'WebAclRuleStatementArgs' statement: The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. - :param 'WebAclRuleVisibilityConfigArgs' visibility_config: Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. - :param 'WebAclRuleActionArgs' action: Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. - :param 'WebAclRuleCaptchaConfigArgs' captcha_config: Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. - :param 'WebAclRuleOverrideActionArgs' override_action: Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. - :param Sequence['WebAclRuleRuleLabelArgs'] rule_labels: Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. - """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "statement", statement) - pulumi.set(__self__, "visibility_config", visibility_config) - if action is not None: - pulumi.set(__self__, "action", action) - if captcha_config is not None: - pulumi.set(__self__, "captcha_config", captcha_config) - if override_action is not None: - pulumi.set(__self__, "override_action", override_action) - if rule_labels is not None: - pulumi.set(__self__, "rule_labels", rule_labels) - - @property - @pulumi.getter - def name(self) -> str: - """ - Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def priority(self) -> int: + content: str, + content_type: str, + key: str): """ - If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + :param str content: Payload of the custom response. + :param str content_type: Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. + :param str key: Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. """ - return pulumi.get(self, "priority") + pulumi.set(__self__, "content", content) + pulumi.set(__self__, "content_type", content_type) + pulumi.set(__self__, "key", key) @property @pulumi.getter - def statement(self) -> 'outputs.WebAclRuleStatement': + def content(self) -> str: """ - The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. + Payload of the custom response. """ - return pulumi.get(self, "statement") + return pulumi.get(self, "content") @property - @pulumi.getter(name="visibilityConfig") - def visibility_config(self) -> 'outputs.WebAclRuleVisibilityConfig': + @pulumi.getter(name="contentType") + def content_type(self) -> str: """ - Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. + Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. """ - return pulumi.get(self, "visibility_config") + return pulumi.get(self, "content_type") @property @pulumi.getter - def action(self) -> Optional['outputs.WebAclRuleAction']: - """ - Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. - """ - return pulumi.get(self, "action") - - @property - @pulumi.getter(name="captchaConfig") - def captcha_config(self) -> Optional['outputs.WebAclRuleCaptchaConfig']: - """ - Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. - """ - return pulumi.get(self, "captcha_config") - - @property - @pulumi.getter(name="overrideAction") - def override_action(self) -> Optional['outputs.WebAclRuleOverrideAction']: - """ - Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. - """ - return pulumi.get(self, "override_action") - - @property - @pulumi.getter(name="ruleLabels") - def rule_labels(self) -> Optional[Sequence['outputs.WebAclRuleRuleLabel']]: + def key(self) -> str: """ - Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. + Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the `custom_response` block. """ - return pulumi.get(self, "rule_labels") + return pulumi.get(self, "key") @pulumi.output_type -class WebAclRuleAction(dict): +class WebAclDefaultAction(dict): def __init__(__self__, *, - allow: Optional['outputs.WebAclRuleActionAllow'] = None, - block: Optional['outputs.WebAclRuleActionBlock'] = None, - captcha: Optional['outputs.WebAclRuleActionCaptcha'] = None, - challenge: Optional['outputs.WebAclRuleActionChallenge'] = None, - count: Optional['outputs.WebAclRuleActionCount'] = None): + allow: Optional['outputs.WebAclDefaultActionAllow'] = None, + block: Optional['outputs.WebAclDefaultActionBlock'] = None): """ - :param 'WebAclRuleActionAllowArgs' allow: Instructs AWS WAF to allow the web request. See `allow` below for details. - :param 'WebAclRuleActionBlockArgs' block: Instructs AWS WAF to block the web request. See `block` below for details. - :param 'WebAclRuleActionCaptchaArgs' captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - :param 'WebAclRuleActionChallengeArgs' challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - :param 'WebAclRuleActionCountArgs' count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + :param 'WebAclDefaultActionAllowArgs' allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. + :param 'WebAclDefaultActionBlockArgs' block: Specifies that AWS WAF should block requests by default. See `block` below for details. """ if allow is not None: pulumi.set(__self__, "allow", allow) if block is not None: pulumi.set(__self__, "block", block) - if captcha is not None: - pulumi.set(__self__, "captcha", captcha) - if challenge is not None: - pulumi.set(__self__, "challenge", challenge) - if count is not None: - pulumi.set(__self__, "count", count) @property @pulumi.getter - def allow(self) -> Optional['outputs.WebAclRuleActionAllow']: + def allow(self) -> Optional['outputs.WebAclDefaultActionAllow']: """ - Instructs AWS WAF to allow the web request. See `allow` below for details. + Specifies that AWS WAF should allow requests by default. See `allow` below for details. """ return pulumi.get(self, "allow") @property @pulumi.getter - def block(self) -> Optional['outputs.WebAclRuleActionBlock']: + def block(self) -> Optional['outputs.WebAclDefaultActionBlock']: """ - Instructs AWS WAF to block the web request. See `block` below for details. + Specifies that AWS WAF should block requests by default. See `block` below for details. """ return pulumi.get(self, "block") - @property - @pulumi.getter - def captcha(self) -> Optional['outputs.WebAclRuleActionCaptcha']: - """ - Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - """ - return pulumi.get(self, "captcha") - - @property - @pulumi.getter - def challenge(self) -> Optional['outputs.WebAclRuleActionChallenge']: - """ - Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - """ - return pulumi.get(self, "challenge") - - @property - @pulumi.getter - def count(self) -> Optional['outputs.WebAclRuleActionCount']: - """ - Instructs AWS WAF to count the web request and allow it. See `count` below for details. - """ - return pulumi.get(self, "count") - @pulumi.output_type -class WebAclRuleActionAllow(dict): +class WebAclDefaultActionAllow(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -12470,27 +12447,27 @@ def __key_warning(key: str): suggest = "custom_request_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionAllow. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionAllow. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionAllow.__key_warning(key) + WebAclDefaultActionAllow.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionAllow.__key_warning(key) + WebAclDefaultActionAllow.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleActionAllowCustomRequestHandling'] = None): + custom_request_handling: Optional['outputs.WebAclDefaultActionAllowCustomRequestHandling'] = None): """ - :param 'WebAclRuleActionAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param 'WebAclDefaultActionAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ if custom_request_handling is not None: pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionAllowCustomRequestHandling']: + def custom_request_handling(self) -> Optional['outputs.WebAclDefaultActionAllowCustomRequestHandling']: """ Defines custom handling for the web request. See `custom_request_handling` below for details. """ @@ -12498,7 +12475,7 @@ def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionAllowCust @pulumi.output_type -class WebAclRuleActionAllowCustomRequestHandling(dict): +class WebAclDefaultActionAllowCustomRequestHandling(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -12506,26 +12483,26 @@ def __key_warning(key: str): suggest = "insert_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionAllowCustomRequestHandling.__key_warning(key) + WebAclDefaultActionAllowCustomRequestHandling.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionAllowCustomRequestHandling.__key_warning(key) + WebAclDefaultActionAllowCustomRequestHandling.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleActionAllowCustomRequestHandlingInsertHeader']): + insert_headers: Sequence['outputs.WebAclDefaultActionAllowCustomRequestHandlingInsertHeader']): """ - :param Sequence['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param Sequence['WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ pulumi.set(__self__, "insert_headers", insert_headers) @property @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleActionAllowCustomRequestHandlingInsertHeader']: + def insert_headers(self) -> Sequence['outputs.WebAclDefaultActionAllowCustomRequestHandlingInsertHeader']: """ The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ @@ -12533,7 +12510,7 @@ def insert_headers(self) -> Sequence['outputs.WebAclRuleActionAllowCustomRequest @pulumi.output_type -class WebAclRuleActionAllowCustomRequestHandlingInsertHeader(dict): +class WebAclDefaultActionAllowCustomRequestHandlingInsertHeader(dict): def __init__(__self__, *, name: str, value: str): @@ -12562,7 +12539,7 @@ def value(self) -> str: @pulumi.output_type -class WebAclRuleActionBlock(dict): +class WebAclDefaultActionBlock(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -12570,27 +12547,27 @@ def __key_warning(key: str): suggest = "custom_response" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionBlock. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionBlock. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionBlock.__key_warning(key) + WebAclDefaultActionBlock.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionBlock.__key_warning(key) + WebAclDefaultActionBlock.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_response: Optional['outputs.WebAclRuleActionBlockCustomResponse'] = None): + custom_response: Optional['outputs.WebAclDefaultActionBlockCustomResponse'] = None): """ - :param 'WebAclRuleActionBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. + :param 'WebAclDefaultActionBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. """ if custom_response is not None: pulumi.set(__self__, "custom_response", custom_response) @property @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional['outputs.WebAclRuleActionBlockCustomResponse']: + def custom_response(self) -> Optional['outputs.WebAclDefaultActionBlockCustomResponse']: """ Defines a custom response for the web request. See `custom_response` below for details. """ @@ -12598,7 +12575,7 @@ def custom_response(self) -> Optional['outputs.WebAclRuleActionBlockCustomRespon @pulumi.output_type -class WebAclRuleActionBlockCustomResponse(dict): +class WebAclDefaultActionBlockCustomResponse(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -12610,24 +12587,24 @@ def __key_warning(key: str): suggest = "response_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclDefaultActionBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionBlockCustomResponse.__key_warning(key) + WebAclDefaultActionBlockCustomResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionBlockCustomResponse.__key_warning(key) + WebAclDefaultActionBlockCustomResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, response_code: int, custom_response_body_key: Optional[str] = None, - response_headers: Optional[Sequence['outputs.WebAclRuleActionBlockCustomResponseResponseHeader']] = None): + response_headers: Optional[Sequence['outputs.WebAclDefaultActionBlockCustomResponseResponseHeader']] = None): """ :param int response_code: The HTTP status code to return to the client. :param str custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param Sequence['WebAclRuleActionBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + :param Sequence['WebAclDefaultActionBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ pulumi.set(__self__, "response_code", response_code) if custom_response_body_key is not None: @@ -12653,7 +12630,7 @@ def custom_response_body_key(self) -> Optional[str]: @property @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[Sequence['outputs.WebAclRuleActionBlockCustomResponseResponseHeader']]: + def response_headers(self) -> Optional[Sequence['outputs.WebAclDefaultActionBlockCustomResponseResponseHeader']]: """ The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ @@ -12661,7 +12638,7 @@ def response_headers(self) -> Optional[Sequence['outputs.WebAclRuleActionBlockCu @pulumi.output_type -class WebAclRuleActionBlockCustomResponseResponseHeader(dict): +class WebAclDefaultActionBlockCustomResponseResponseHeader(dict): def __init__(__self__, *, name: str, value: str): @@ -12690,448 +12667,1166 @@ def value(self) -> str: @pulumi.output_type -class WebAclRuleActionCaptcha(dict): +class WebAclLoggingConfigurationLoggingFilter(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + if key == "defaultBehavior": + suggest = "default_behavior" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCaptcha. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilter. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionCaptcha.__key_warning(key) + WebAclLoggingConfigurationLoggingFilter.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionCaptcha.__key_warning(key) + WebAclLoggingConfigurationLoggingFilter.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleActionCaptchaCustomRequestHandling'] = None): + default_behavior: str, + filters: Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilter']): """ - :param 'WebAclRuleActionCaptchaCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param str default_behavior: Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. + :param Sequence['WebAclLoggingConfigurationLoggingFilterFilterArgs'] filters: Filter(s) that you want to apply to the logs. See Filter below for more details. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + pulumi.set(__self__, "default_behavior", default_behavior) + pulumi.set(__self__, "filters", filters) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionCaptchaCustomRequestHandling']: - """ - Defines custom handling for the web request. See `custom_request_handling` below for details. - """ - return pulumi.get(self, "custom_request_handling") - - -@pulumi.output_type -class WebAclRuleActionCaptchaCustomRequestHandling(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "insertHeaders": - suggest = "insert_headers" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCaptchaCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleActionCaptchaCustomRequestHandling.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleActionCaptchaCustomRequestHandling.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader']): + @pulumi.getter(name="defaultBehavior") + def default_behavior(self) -> str: """ - :param Sequence['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Default handling for logs that don't match any of the specified filtering conditions. Valid values for `default_behavior` are `KEEP` or `DROP`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + return pulumi.get(self, "default_behavior") @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader']: + @pulumi.getter + def filters(self) -> Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilter']: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Filter(s) that you want to apply to the logs. See Filter below for more details. """ - return pulumi.get(self, "insert_headers") + return pulumi.get(self, "filters") @pulumi.output_type -class WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader(dict): +class WebAclLoggingConfigurationLoggingFilterFilter(dict): def __init__(__self__, *, - name: str, - value: str): + behavior: str, + conditions: Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilterCondition'], + requirement: str): """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + :param str behavior: Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. + :param Sequence['WebAclLoggingConfigurationLoggingFilterFilterConditionArgs'] conditions: Match condition(s) for the filter. See Condition below for more details. + :param str requirement: Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + pulumi.set(__self__, "behavior", behavior) + pulumi.set(__self__, "conditions", conditions) + pulumi.set(__self__, "requirement", requirement) @property @pulumi.getter - def name(self) -> str: + def behavior(self) -> str: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Parameter that determines how to handle logs that meet the conditions and requirements of the filter. The valid values for `behavior` are `KEEP` or `DROP`. """ - return pulumi.get(self, "name") + return pulumi.get(self, "behavior") @property @pulumi.getter - def value(self) -> str: - """ - Value of the custom header. - """ - return pulumi.get(self, "value") - - -@pulumi.output_type -class WebAclRuleActionChallenge(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionChallenge. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleActionChallenge.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleActionChallenge.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleActionChallengeCustomRequestHandling'] = None): + def conditions(self) -> Sequence['outputs.WebAclLoggingConfigurationLoggingFilterFilterCondition']: """ - :param 'WebAclRuleActionChallengeCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + Match condition(s) for the filter. See Condition below for more details. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + return pulumi.get(self, "conditions") @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionChallengeCustomRequestHandling']: + @pulumi.getter + def requirement(self) -> str: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Logic to apply to the filtering conditions. You can specify that a log must match all conditions or at least one condition in order to satisfy the filter. Valid values for `requirement` are `MEETS_ALL` or `MEETS_ANY`. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "requirement") @pulumi.output_type -class WebAclRuleActionChallengeCustomRequestHandling(dict): +class WebAclLoggingConfigurationLoggingFilterFilterCondition(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "actionCondition": + suggest = "action_condition" + elif key == "labelNameCondition": + suggest = "label_name_condition" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionChallengeCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilterFilterCondition. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionChallengeCustomRequestHandling.__key_warning(key) + WebAclLoggingConfigurationLoggingFilterFilterCondition.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionChallengeCustomRequestHandling.__key_warning(key) + WebAclLoggingConfigurationLoggingFilterFilterCondition.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleActionChallengeCustomRequestHandlingInsertHeader']): + action_condition: Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition'] = None, + label_name_condition: Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition'] = None): """ - :param Sequence['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param 'WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionArgs' action_condition: Configuration for a single action condition. See Action Condition below for more details. + :param 'WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionArgs' label_name_condition: Condition for a single label name. See Label Name Condition below for more details. """ - pulumi.set(__self__, "insert_headers", insert_headers) + if action_condition is not None: + pulumi.set(__self__, "action_condition", action_condition) + if label_name_condition is not None: + pulumi.set(__self__, "label_name_condition", label_name_condition) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleActionChallengeCustomRequestHandlingInsertHeader']: + @pulumi.getter(name="actionCondition") + def action_condition(self) -> Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition']: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Configuration for a single action condition. See Action Condition below for more details. """ - return pulumi.get(self, "insert_headers") - + return pulumi.get(self, "action_condition") -@pulumi.output_type -class WebAclRuleActionChallengeCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @property + @pulumi.getter(name="labelNameCondition") + def label_name_condition(self) -> Optional['outputs.WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition']: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + Condition for a single label name. See Label Name Condition below for more details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "label_name_condition") - @property - @pulumi.getter - def name(self) -> str: + +@pulumi.output_type +class WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition(dict): + def __init__(__self__, *, + action: str): """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str action: Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. """ - return pulumi.get(self, "name") + pulumi.set(__self__, "action", action) @property @pulumi.getter - def value(self) -> str: + def action(self) -> str: """ - Value of the custom header. + Action setting that a log record must contain in order to meet the condition. Valid values for `action` are `ALLOW`, `BLOCK`, and `COUNT`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "action") @pulumi.output_type -class WebAclRuleActionCount(dict): +class WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + if key == "labelName": + suggest = "label_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCount. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionCount.__key_warning(key) + WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionCount.__key_warning(key) + WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleActionCountCustomRequestHandling'] = None): + label_name: str): """ - :param 'WebAclRuleActionCountCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param str label_name: Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + pulumi.set(__self__, "label_name", label_name) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionCountCustomRequestHandling']: + @pulumi.getter(name="labelName") + def label_name(self) -> str: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Name of the label that a log record must contain in order to meet the condition. It must be a fully qualified label name, which includes a prefix, optional namespaces, and the label name itself. The prefix identifies the rule group or web ACL context of the rule that added the label. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "label_name") @pulumi.output_type -class WebAclRuleActionCountCustomRequestHandling(dict): +class WebAclLoggingConfigurationRedactedField(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCountCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclLoggingConfigurationRedactedField. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleActionCountCustomRequestHandling.__key_warning(key) + WebAclLoggingConfigurationRedactedField.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleActionCountCustomRequestHandling.__key_warning(key) + WebAclLoggingConfigurationRedactedField.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleActionCountCustomRequestHandlingInsertHeader']): + method: Optional['outputs.WebAclLoggingConfigurationRedactedFieldMethod'] = None, + query_string: Optional['outputs.WebAclLoggingConfigurationRedactedFieldQueryString'] = None, + single_header: Optional['outputs.WebAclLoggingConfigurationRedactedFieldSingleHeader'] = None, + uri_path: Optional['outputs.WebAclLoggingConfigurationRedactedFieldUriPath'] = None): """ - :param Sequence['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param 'WebAclLoggingConfigurationRedactedFieldMethodArgs' method: HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclLoggingConfigurationRedactedFieldQueryStringArgs' query_string: Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. + :param 'WebAclLoggingConfigurationRedactedFieldSingleHeaderArgs' single_header: "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. + :param 'WebAclLoggingConfigurationRedactedFieldUriPathArgs' uri_path: Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleActionCountCustomRequestHandlingInsertHeader']: + @pulumi.getter + def method(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldMethod']: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + HTTP method to be redacted. It must be specified as an empty configuration block `{}`. The method indicates the type of operation that the request is asking the origin to perform. """ - return pulumi.get(self, "insert_headers") - + return pulumi.get(self, "method") -@pulumi.output_type -class WebAclRuleActionCountCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldQueryString']: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + Whether to redact the query string. It must be specified as an empty configuration block `{}`. The query string is the part of a URL that appears after a `?` character, if any. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "query_string") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldSingleHeader']: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + "single_header" refers to the redaction of a single header. For more information, please see the details below under Single Header. """ - return pulumi.get(self, "name") + return pulumi.get(self, "single_header") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.WebAclLoggingConfigurationRedactedFieldUriPath']: """ - Value of the custom header. + Configuration block that redacts the request URI path. It should be specified as an empty configuration block `{}`. The URI path is the part of a web request that identifies a resource, such as `/images/daily-ad.jpg`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "uri_path") @pulumi.output_type -class WebAclRuleCaptchaConfig(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "immunityTimeProperty": - suggest = "immunity_time_property" +class WebAclLoggingConfigurationRedactedFieldMethod(dict): + def __init__(__self__): + pass - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleCaptchaConfig. Access the value via the '{suggest}' property getter instead.") - def __getitem__(self, key: str) -> Any: - WebAclRuleCaptchaConfig.__key_warning(key) - return super().__getitem__(key) +@pulumi.output_type +class WebAclLoggingConfigurationRedactedFieldQueryString(dict): + def __init__(__self__): + pass - def get(self, key: str, default = None) -> Any: - WebAclRuleCaptchaConfig.__key_warning(key) - return super().get(key, default) +@pulumi.output_type +class WebAclLoggingConfigurationRedactedFieldSingleHeader(dict): def __init__(__self__, *, - immunity_time_property: Optional['outputs.WebAclRuleCaptchaConfigImmunityTimeProperty'] = None): + name: str): """ - :param 'WebAclRuleCaptchaConfigImmunityTimePropertyArgs' immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. + :param str name: Name of the query header to redact. This setting must be provided in lowercase characters. """ - if immunity_time_property is not None: - pulumi.set(__self__, "immunity_time_property", immunity_time_property) + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="immunityTimeProperty") - def immunity_time_property(self) -> Optional['outputs.WebAclRuleCaptchaConfigImmunityTimeProperty']: + @pulumi.getter + def name(self) -> str: """ - Defines custom immunity time. See `immunity_time_property` below for details. + Name of the query header to redact. This setting must be provided in lowercase characters. """ - return pulumi.get(self, "immunity_time_property") + return pulumi.get(self, "name") @pulumi.output_type -class WebAclRuleCaptchaConfigImmunityTimeProperty(dict): +class WebAclLoggingConfigurationRedactedFieldUriPath(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRule(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "immunityTime": - suggest = "immunity_time" + if key == "visibilityConfig": + suggest = "visibility_config" + elif key == "captchaConfig": + suggest = "captcha_config" + elif key == "overrideAction": + suggest = "override_action" + elif key == "ruleLabels": + suggest = "rule_labels" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleCaptchaConfigImmunityTimeProperty. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRule. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleCaptchaConfigImmunityTimeProperty.__key_warning(key) + WebAclRule.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleCaptchaConfigImmunityTimeProperty.__key_warning(key) + WebAclRule.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - immunity_time: Optional[int] = None): + name: str, + priority: int, + statement: 'outputs.WebAclRuleStatement', + visibility_config: 'outputs.WebAclRuleVisibilityConfig', + action: Optional['outputs.WebAclRuleAction'] = None, + captcha_config: Optional['outputs.WebAclRuleCaptchaConfig'] = None, + override_action: Optional['outputs.WebAclRuleOverrideAction'] = None, + rule_labels: Optional[Sequence['outputs.WebAclRuleRuleLabel']] = None): """ - :param int immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + :param str name: Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. + :param int priority: If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. + :param 'WebAclRuleStatementArgs' statement: The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. + :param 'WebAclRuleVisibilityConfigArgs' visibility_config: Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. + :param 'WebAclRuleActionArgs' action: Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + :param 'WebAclRuleCaptchaConfigArgs' captcha_config: Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. + :param 'WebAclRuleOverrideActionArgs' override_action: Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. + :param Sequence['WebAclRuleRuleLabelArgs'] rule_labels: Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. """ - if immunity_time is not None: - pulumi.set(__self__, "immunity_time", immunity_time) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "statement", statement) + pulumi.set(__self__, "visibility_config", visibility_config) + if action is not None: + pulumi.set(__self__, "action", action) + if captcha_config is not None: + pulumi.set(__self__, "captcha_config", captcha_config) + if override_action is not None: + pulumi.set(__self__, "override_action", override_action) + if rule_labels is not None: + pulumi.set(__self__, "rule_labels", rule_labels) @property - @pulumi.getter(name="immunityTime") - def immunity_time(self) -> Optional[int]: + @pulumi.getter + def name(self) -> str: """ - The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup___.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors. """ - return pulumi.get(self, "immunity_time") - + return pulumi.get(self, "name") -@pulumi.output_type -class WebAclRuleOverrideAction(dict): - def __init__(__self__, *, - count: Optional['outputs.WebAclRuleOverrideActionCount'] = None, - none: Optional['outputs.WebAclRuleOverrideActionNone'] = None): + @property + @pulumi.getter + def priority(self) -> int: """ - :param 'WebAclRuleOverrideActionCountArgs' count: Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. - :param 'WebAclRuleOverrideActionNoneArgs' none: Don't override the rule action setting. Configured as an empty block `{}`. + If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. """ - if count is not None: - pulumi.set(__self__, "count", count) - if none is not None: - pulumi.set(__self__, "none", none) + return pulumi.get(self, "priority") @property @pulumi.getter - def count(self) -> Optional['outputs.WebAclRuleOverrideActionCount']: + def statement(self) -> 'outputs.WebAclRuleStatement': """ - Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details. """ - return pulumi.get(self, "count") + return pulumi.get(self, "statement") @property - @pulumi.getter - def none(self) -> Optional['outputs.WebAclRuleOverrideActionNone']: + @pulumi.getter(name="visibilityConfig") + def visibility_config(self) -> 'outputs.WebAclRuleVisibilityConfig': """ - Don't override the rule action setting. Configured as an empty block `{}`. + Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details. """ - return pulumi.get(self, "none") - - -@pulumi.output_type -class WebAclRuleOverrideActionCount(dict): - def __init__(__self__): - pass - + return pulumi.get(self, "visibility_config") -@pulumi.output_type -class WebAclRuleOverrideActionNone(dict): - def __init__(__self__): - pass + @property + @pulumi.getter + def action(self) -> Optional['outputs.WebAclRuleAction']: + """ + Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details. + """ + return pulumi.get(self, "action") + @property + @pulumi.getter(name="captchaConfig") + def captcha_config(self) -> Optional['outputs.WebAclRuleCaptchaConfig']: + """ + Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details. + """ + return pulumi.get(self, "captcha_config") -@pulumi.output_type -class WebAclRuleRuleLabel(dict): - def __init__(__self__, *, - name: str): + @property + @pulumi.getter(name="overrideAction") + def override_action(self) -> Optional['outputs.WebAclRuleOverrideAction']: """ - :param str name: Label string. + Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details. """ - pulumi.set(__self__, "name", name) + return pulumi.get(self, "override_action") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="ruleLabels") + def rule_labels(self) -> Optional[Sequence['outputs.WebAclRuleRuleLabel']]: """ - Label string. + Labels to apply to web requests that match the rule match statement. See `rule_label` below for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "rule_labels") @pulumi.output_type -class WebAclRuleStatement(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "andStatement": - suggest = "and_statement" - elif key == "byteMatchStatement": - suggest = "byte_match_statement" - elif key == "geoMatchStatement": +class WebAclRuleAction(dict): + def __init__(__self__, *, + allow: Optional['outputs.WebAclRuleActionAllow'] = None, + block: Optional['outputs.WebAclRuleActionBlock'] = None, + captcha: Optional['outputs.WebAclRuleActionCaptcha'] = None, + challenge: Optional['outputs.WebAclRuleActionChallenge'] = None, + count: Optional['outputs.WebAclRuleActionCount'] = None): + """ + :param 'WebAclRuleActionAllowArgs' allow: Instructs AWS WAF to allow the web request. See `allow` below for details. + :param 'WebAclRuleActionBlockArgs' block: Instructs AWS WAF to block the web request. See `block` below for details. + :param 'WebAclRuleActionCaptchaArgs' captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + :param 'WebAclRuleActionChallengeArgs' challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + :param 'WebAclRuleActionCountArgs' count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + """ + if allow is not None: + pulumi.set(__self__, "allow", allow) + if block is not None: + pulumi.set(__self__, "block", block) + if captcha is not None: + pulumi.set(__self__, "captcha", captcha) + if challenge is not None: + pulumi.set(__self__, "challenge", challenge) + if count is not None: + pulumi.set(__self__, "count", count) + + @property + @pulumi.getter + def allow(self) -> Optional['outputs.WebAclRuleActionAllow']: + """ + Instructs AWS WAF to allow the web request. See `allow` below for details. + """ + return pulumi.get(self, "allow") + + @property + @pulumi.getter + def block(self) -> Optional['outputs.WebAclRuleActionBlock']: + """ + Instructs AWS WAF to block the web request. See `block` below for details. + """ + return pulumi.get(self, "block") + + @property + @pulumi.getter + def captcha(self) -> Optional['outputs.WebAclRuleActionCaptcha']: + """ + Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + """ + return pulumi.get(self, "captcha") + + @property + @pulumi.getter + def challenge(self) -> Optional['outputs.WebAclRuleActionChallenge']: + """ + Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + """ + return pulumi.get(self, "challenge") + + @property + @pulumi.getter + def count(self) -> Optional['outputs.WebAclRuleActionCount']: + """ + Instructs AWS WAF to count the web request and allow it. See `count` below for details. + """ + return pulumi.get(self, "count") + + +@pulumi.output_type +class WebAclRuleActionAllow(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customRequestHandling": + suggest = "custom_request_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionAllow. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionAllow.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionAllow.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + custom_request_handling: Optional['outputs.WebAclRuleActionAllowCustomRequestHandling'] = None): + """ + :param 'WebAclRuleActionAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) + + @property + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionAllowCustomRequestHandling']: + """ + Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + return pulumi.get(self, "custom_request_handling") + + +@pulumi.output_type +class WebAclRuleActionAllowCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionAllowCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionAllowCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleActionAllowCustomRequestHandlingInsertHeader']): + """ + :param Sequence['WebAclRuleActionAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) + + @property + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleActionAllowCustomRequestHandlingInsertHeader']: + """ + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleActionAllowCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class WebAclRuleActionBlock(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customResponse": + suggest = "custom_response" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionBlock. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionBlock.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionBlock.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + custom_response: Optional['outputs.WebAclRuleActionBlockCustomResponse'] = None): + """ + :param 'WebAclRuleActionBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. + """ + if custom_response is not None: + pulumi.set(__self__, "custom_response", custom_response) + + @property + @pulumi.getter(name="customResponse") + def custom_response(self) -> Optional['outputs.WebAclRuleActionBlockCustomResponse']: + """ + Defines a custom response for the web request. See `custom_response` below for details. + """ + return pulumi.get(self, "custom_response") + + +@pulumi.output_type +class WebAclRuleActionBlockCustomResponse(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "responseCode": + suggest = "response_code" + elif key == "customResponseBodyKey": + suggest = "custom_response_body_key" + elif key == "responseHeaders": + suggest = "response_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionBlockCustomResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionBlockCustomResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + response_code: int, + custom_response_body_key: Optional[str] = None, + response_headers: Optional[Sequence['outputs.WebAclRuleActionBlockCustomResponseResponseHeader']] = None): + """ + :param int response_code: The HTTP status code to return to the client. + :param str custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param Sequence['WebAclRuleActionBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + """ + pulumi.set(__self__, "response_code", response_code) + if custom_response_body_key is not None: + pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) + if response_headers is not None: + pulumi.set(__self__, "response_headers", response_headers) + + @property + @pulumi.getter(name="responseCode") + def response_code(self) -> int: + """ + The HTTP status code to return to the client. + """ + return pulumi.get(self, "response_code") + + @property + @pulumi.getter(name="customResponseBodyKey") + def custom_response_body_key(self) -> Optional[str]: + """ + References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + """ + return pulumi.get(self, "custom_response_body_key") + + @property + @pulumi.getter(name="responseHeaders") + def response_headers(self) -> Optional[Sequence['outputs.WebAclRuleActionBlockCustomResponseResponseHeader']]: + """ + The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + """ + return pulumi.get(self, "response_headers") + + +@pulumi.output_type +class WebAclRuleActionBlockCustomResponseResponseHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class WebAclRuleActionCaptcha(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customRequestHandling": + suggest = "custom_request_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCaptcha. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionCaptcha.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionCaptcha.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + custom_request_handling: Optional['outputs.WebAclRuleActionCaptchaCustomRequestHandling'] = None): + """ + :param 'WebAclRuleActionCaptchaCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) + + @property + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionCaptchaCustomRequestHandling']: + """ + Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + return pulumi.get(self, "custom_request_handling") + + +@pulumi.output_type +class WebAclRuleActionCaptchaCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCaptchaCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionCaptchaCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionCaptchaCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader']): + """ + :param Sequence['WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) + + @property + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader']: + """ + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class WebAclRuleActionChallenge(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customRequestHandling": + suggest = "custom_request_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionChallenge. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionChallenge.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionChallenge.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + custom_request_handling: Optional['outputs.WebAclRuleActionChallengeCustomRequestHandling'] = None): + """ + :param 'WebAclRuleActionChallengeCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) + + @property + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionChallengeCustomRequestHandling']: + """ + Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + return pulumi.get(self, "custom_request_handling") + + +@pulumi.output_type +class WebAclRuleActionChallengeCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionChallengeCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionChallengeCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionChallengeCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleActionChallengeCustomRequestHandlingInsertHeader']): + """ + :param Sequence['WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) + + @property + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleActionChallengeCustomRequestHandlingInsertHeader']: + """ + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleActionChallengeCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class WebAclRuleActionCount(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customRequestHandling": + suggest = "custom_request_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCount. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionCount.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionCount.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + custom_request_handling: Optional['outputs.WebAclRuleActionCountCustomRequestHandling'] = None): + """ + :param 'WebAclRuleActionCountCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) + + @property + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleActionCountCustomRequestHandling']: + """ + Defines custom handling for the web request. See `custom_request_handling` below for details. + """ + return pulumi.get(self, "custom_request_handling") + + +@pulumi.output_type +class WebAclRuleActionCountCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleActionCountCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleActionCountCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleActionCountCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleActionCountCustomRequestHandlingInsertHeader']): + """ + :param Sequence['WebAclRuleActionCountCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) + + @property + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleActionCountCustomRequestHandlingInsertHeader']: + """ + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleActionCountCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") + + +@pulumi.output_type +class WebAclRuleCaptchaConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "immunityTimeProperty": + suggest = "immunity_time_property" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleCaptchaConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleCaptchaConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleCaptchaConfig.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + immunity_time_property: Optional['outputs.WebAclRuleCaptchaConfigImmunityTimeProperty'] = None): + """ + :param 'WebAclRuleCaptchaConfigImmunityTimePropertyArgs' immunity_time_property: Defines custom immunity time. See `immunity_time_property` below for details. + """ + if immunity_time_property is not None: + pulumi.set(__self__, "immunity_time_property", immunity_time_property) + + @property + @pulumi.getter(name="immunityTimeProperty") + def immunity_time_property(self) -> Optional['outputs.WebAclRuleCaptchaConfigImmunityTimeProperty']: + """ + Defines custom immunity time. See `immunity_time_property` below for details. + """ + return pulumi.get(self, "immunity_time_property") + + +@pulumi.output_type +class WebAclRuleCaptchaConfigImmunityTimeProperty(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "immunityTime": + suggest = "immunity_time" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleCaptchaConfigImmunityTimeProperty. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleCaptchaConfigImmunityTimeProperty.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleCaptchaConfigImmunityTimeProperty.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + immunity_time: Optional[int] = None): + """ + :param int immunity_time: The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + """ + if immunity_time is not None: + pulumi.set(__self__, "immunity_time", immunity_time) + + @property + @pulumi.getter(name="immunityTime") + def immunity_time(self) -> Optional[int]: + """ + The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF. The default setting is 300. + """ + return pulumi.get(self, "immunity_time") + + +@pulumi.output_type +class WebAclRuleOverrideAction(dict): + def __init__(__self__, *, + count: Optional['outputs.WebAclRuleOverrideActionCount'] = None, + none: Optional['outputs.WebAclRuleOverrideActionNone'] = None): + """ + :param 'WebAclRuleOverrideActionCountArgs' count: Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + :param 'WebAclRuleOverrideActionNoneArgs' none: Don't override the rule action setting. Configured as an empty block `{}`. + """ + if count is not None: + pulumi.set(__self__, "count", count) + if none is not None: + pulumi.set(__self__, "none", none) + + @property + @pulumi.getter + def count(self) -> Optional['outputs.WebAclRuleOverrideActionCount']: + """ + Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. + """ + return pulumi.get(self, "count") + + @property + @pulumi.getter + def none(self) -> Optional['outputs.WebAclRuleOverrideActionNone']: + """ + Don't override the rule action setting. Configured as an empty block `{}`. + """ + return pulumi.get(self, "none") + + +@pulumi.output_type +class WebAclRuleOverrideActionCount(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleOverrideActionNone(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleRuleLabel(dict): + def __init__(__self__, *, + name: str): + """ + :param str name: Label string. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> str: + """ + Label string. + """ + return pulumi.get(self, "name") + + +@pulumi.output_type +class WebAclRuleStatement(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "andStatement": + suggest = "and_statement" + elif key == "byteMatchStatement": + suggest = "byte_match_statement" + elif key == "geoMatchStatement": suggest = "geo_match_statement" elif key == "ipSetReferenceStatement": suggest = "ip_set_reference_statement" @@ -13159,3815 +13854,4530 @@ def __key_warning(key: str): suggest = "xss_match_statement" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatement. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatement.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatement.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + and_statement: Optional['outputs.WebAclRuleStatementAndStatement'] = None, + byte_match_statement: Optional['outputs.WebAclRuleStatementByteMatchStatement'] = None, + geo_match_statement: Optional['outputs.WebAclRuleStatementGeoMatchStatement'] = None, + ip_set_reference_statement: Optional['outputs.WebAclRuleStatementIpSetReferenceStatement'] = None, + label_match_statement: Optional['outputs.WebAclRuleStatementLabelMatchStatement'] = None, + managed_rule_group_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement'] = None, + not_statement: Optional['outputs.WebAclRuleStatementNotStatement'] = None, + or_statement: Optional['outputs.WebAclRuleStatementOrStatement'] = None, + rate_based_statement: Optional['outputs.WebAclRuleStatementRateBasedStatement'] = None, + regex_match_statement: Optional['outputs.WebAclRuleStatementRegexMatchStatement'] = None, + regex_pattern_set_reference_statement: Optional['outputs.WebAclRuleStatementRegexPatternSetReferenceStatement'] = None, + rule_group_reference_statement: Optional['outputs.WebAclRuleStatementRuleGroupReferenceStatement'] = None, + size_constraint_statement: Optional['outputs.WebAclRuleStatementSizeConstraintStatement'] = None, + sqli_match_statement: Optional['outputs.WebAclRuleStatementSqliMatchStatement'] = None, + xss_match_statement: Optional['outputs.WebAclRuleStatementXssMatchStatement'] = None): + """ + :param 'WebAclRuleStatementAndStatementArgs' and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + :param 'WebAclRuleStatementByteMatchStatementArgs' byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + :param 'WebAclRuleStatementGeoMatchStatementArgs' geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + :param 'WebAclRuleStatementIpSetReferenceStatementArgs' ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param 'WebAclRuleStatementLabelMatchStatementArgs' label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementArgs' managed_rule_group_statement: Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. + :param 'WebAclRuleStatementNotStatementArgs' not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param 'WebAclRuleStatementOrStatementArgs' or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + :param 'WebAclRuleStatementRateBasedStatementArgs' rate_based_statement: Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. + :param 'WebAclRuleStatementRegexMatchStatementArgs' regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + :param 'WebAclRuleStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + :param 'WebAclRuleStatementRuleGroupReferenceStatementArgs' rule_group_reference_statement: Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. + :param 'WebAclRuleStatementSizeConstraintStatementArgs' size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + :param 'WebAclRuleStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + :param 'WebAclRuleStatementXssMatchStatementArgs' xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + """ + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if managed_rule_group_statement is not None: + pulumi.set(__self__, "managed_rule_group_statement", managed_rule_group_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if rate_based_statement is not None: + pulumi.set(__self__, "rate_based_statement", rate_based_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if rule_group_reference_statement is not None: + pulumi.set(__self__, "rule_group_reference_statement", rule_group_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) + + @property + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional['outputs.WebAclRuleStatementAndStatement']: + """ + Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + """ + return pulumi.get(self, "and_statement") + + @property + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatement']: + """ + Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + """ + return pulumi.get(self, "byte_match_statement") + + @property + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional['outputs.WebAclRuleStatementGeoMatchStatement']: + """ + Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + """ + return pulumi.get(self, "geo_match_statement") + + @property + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementIpSetReferenceStatement']: + """ + Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + """ + return pulumi.get(self, "ip_set_reference_statement") + + @property + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional['outputs.WebAclRuleStatementLabelMatchStatement']: + """ + Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + """ + return pulumi.get(self, "label_match_statement") + + @property + @pulumi.getter(name="managedRuleGroupStatement") + def managed_rule_group_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement']: + """ + Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. + """ + return pulumi.get(self, "managed_rule_group_statement") + + @property + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional['outputs.WebAclRuleStatementNotStatement']: + """ + Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + """ + return pulumi.get(self, "not_statement") + + @property + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional['outputs.WebAclRuleStatementOrStatement']: + """ + Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + """ + return pulumi.get(self, "or_statement") + + @property + @pulumi.getter(name="rateBasedStatement") + def rate_based_statement(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatement']: + """ + Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. + """ + return pulumi.get(self, "rate_based_statement") + + @property + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional['outputs.WebAclRuleStatementRegexMatchStatement']: + """ + Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + """ + return pulumi.get(self, "regex_match_statement") + + @property + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementRegexPatternSetReferenceStatement']: + """ + Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + """ + return pulumi.get(self, "regex_pattern_set_reference_statement") + + @property + @pulumi.getter(name="ruleGroupReferenceStatement") + def rule_group_reference_statement(self) -> Optional['outputs.WebAclRuleStatementRuleGroupReferenceStatement']: + """ + Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. + """ + return pulumi.get(self, "rule_group_reference_statement") + + @property + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional['outputs.WebAclRuleStatementSizeConstraintStatement']: + """ + Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + """ + return pulumi.get(self, "size_constraint_statement") + + @property + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional['outputs.WebAclRuleStatementSqliMatchStatement']: + """ + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + """ + return pulumi.get(self, "sqli_match_statement") + + @property + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional['outputs.WebAclRuleStatementXssMatchStatement']: + """ + Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + """ + return pulumi.get(self, "xss_match_statement") + + +@pulumi.output_type +class WebAclRuleStatementAndStatement(dict): + def __init__(__self__, *, + statements: Sequence['outputs.WebAclRuleStatement']): + """ + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + """ + pulumi.set(__self__, "statements", statements) + + @property + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: + """ + The statements to combine. + """ + return pulumi.get(self, "statements") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatement(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "positionalConstraint": + suggest = "positional_constraint" + elif key == "searchString": + suggest = "search_string" + elif key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatement.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatement.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + positional_constraint: str, + search_string: str, + text_transformations: Sequence['outputs.WebAclRuleStatementByteMatchStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatch'] = None): + """ + :param str positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param str search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param Sequence['WebAclRuleStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + """ + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) + + @property + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> str: + """ + Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + """ + return pulumi.get(self, "positional_constraint") + + @property + @pulumi.getter(name="searchString") + def search_string(self) -> str: + """ + String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + """ + return pulumi.get(self, "search_string") + + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementByteMatchStatementTextTransformation']: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + """ + return pulumi.get(self, "text_transformations") + + @property + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatch']: + """ + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + """ + return pulumi.get(self, "field_to_match") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatch(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatch.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatch.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all_query_arguments: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchUriPath'] = None): + """ + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) + + @property + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments']: + """ + Inspect all query arguments. + """ + return pulumi.get(self, "all_query_arguments") + + @property + @pulumi.getter + def body(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchBody']: + """ + Inspect the request body, which immediately follows the request headers. See `body` below for details. + """ + return pulumi.get(self, "body") + + @property + @pulumi.getter + def cookies(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookies']: + """ + Inspect the cookies in the web request. See `cookies` below for details. + """ + return pulumi.get(self, "cookies") + + @property + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeader']]: + """ + Inspect the request headers. See `headers` below for details. + """ + return pulumi.get(self, "headers") + + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody']: + """ + Inspect the request body as JSON. See `json_body` for details. + """ + return pulumi.get(self, "json_body") + + @property + @pulumi.getter + def method(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchMethod']: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") + + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchQueryString']: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader']: + """ + Inspect a single header. See `single_header` below for details. + """ + return pulumi.get(self, "single_header") + + @property + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument']: + """ + Inspect a single query argument. See `single_query_argument` below for details. + """ + return pulumi.get(self, "single_query_argument") + + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchUriPath']: + """ + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + """ + return pulumi.get(self, "uri_path") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchBody(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + oversize_handling: Optional[str] = None): + """ + :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + """ + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: + """ + What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + """ + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchCookies(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPatterns": + suggest = "match_patterns" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatement.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatement.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - and_statement: Optional['outputs.WebAclRuleStatementAndStatement'] = None, - byte_match_statement: Optional['outputs.WebAclRuleStatementByteMatchStatement'] = None, - geo_match_statement: Optional['outputs.WebAclRuleStatementGeoMatchStatement'] = None, - ip_set_reference_statement: Optional['outputs.WebAclRuleStatementIpSetReferenceStatement'] = None, - label_match_statement: Optional['outputs.WebAclRuleStatementLabelMatchStatement'] = None, - managed_rule_group_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement'] = None, - not_statement: Optional['outputs.WebAclRuleStatementNotStatement'] = None, - or_statement: Optional['outputs.WebAclRuleStatementOrStatement'] = None, - rate_based_statement: Optional['outputs.WebAclRuleStatementRateBasedStatement'] = None, - regex_match_statement: Optional['outputs.WebAclRuleStatementRegexMatchStatement'] = None, - regex_pattern_set_reference_statement: Optional['outputs.WebAclRuleStatementRegexPatternSetReferenceStatement'] = None, - rule_group_reference_statement: Optional['outputs.WebAclRuleStatementRuleGroupReferenceStatement'] = None, - size_constraint_statement: Optional['outputs.WebAclRuleStatementSizeConstraintStatement'] = None, - sqli_match_statement: Optional['outputs.WebAclRuleStatementSqliMatchStatement'] = None, - xss_match_statement: Optional['outputs.WebAclRuleStatementXssMatchStatement'] = None): + match_patterns: Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], + match_scope: str, + oversize_handling: str): """ - :param 'WebAclRuleStatementAndStatementArgs' and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. - :param 'WebAclRuleStatementByteMatchStatementArgs' byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. - :param 'WebAclRuleStatementGeoMatchStatementArgs' geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. - :param 'WebAclRuleStatementIpSetReferenceStatementArgs' ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. - :param 'WebAclRuleStatementLabelMatchStatementArgs' label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementArgs' managed_rule_group_statement: Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. - :param 'WebAclRuleStatementNotStatementArgs' not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. - :param 'WebAclRuleStatementOrStatementArgs' or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. - :param 'WebAclRuleStatementRateBasedStatementArgs' rate_based_statement: Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. - :param 'WebAclRuleStatementRegexMatchStatementArgs' regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. - :param 'WebAclRuleStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. - :param 'WebAclRuleStatementRuleGroupReferenceStatementArgs' rule_group_reference_statement: Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. - :param 'WebAclRuleStatementSizeConstraintStatementArgs' size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. - :param 'WebAclRuleStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. - :param 'WebAclRuleStatementXssMatchStatementArgs' xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + :param Sequence['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if managed_rule_group_statement is not None: - pulumi.set(__self__, "managed_rule_group_statement", managed_rule_group_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if rate_based_statement is not None: - pulumi.set(__self__, "rate_based_statement", rate_based_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if rule_group_reference_statement is not None: - pulumi.set(__self__, "rule_group_reference_statement", rule_group_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional['outputs.WebAclRuleStatementAndStatement']: + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: """ - Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "match_patterns") @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatement']: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ - return pulumi.get(self, "byte_match_statement") + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional['outputs.WebAclRuleStatementGeoMatchStatement']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "geo_match_statement") + return pulumi.get(self, "oversize_handling") - @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementIpSetReferenceStatement']: + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "ip_set_reference_statement") + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional['outputs.WebAclRuleStatementLabelMatchStatement']: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: """ - Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "all") @property - @pulumi.getter(name="managedRuleGroupStatement") - def managed_rule_group_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement']: - """ - Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See `managed_rule_group_statement` below for details. - """ - return pulumi.get(self, "managed_rule_group_statement") + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional['outputs.WebAclRuleStatementNotStatement']: + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchHeader(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + match_pattern: 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern', + match_scope: str, + oversize_handling: str): """ - Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "not_statement") + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional['outputs.WebAclRuleStatementOrStatement']: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern': """ - Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "match_pattern") @property - @pulumi.getter(name="rateBasedStatement") - def rate_based_statement(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatement']: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See `rate_based_statement` below for details. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - return pulumi.get(self, "rate_based_statement") + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional['outputs.WebAclRuleStatementRegexMatchStatement']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "regex_match_statement") + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") - @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementRegexPatternSetReferenceStatement']: - """ - Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. - """ - return pulumi.get(self, "regex_pattern_set_reference_statement") + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + return super().__getitem__(key) - @property - @pulumi.getter(name="ruleGroupReferenceStatement") - def rule_group_reference_statement(self) -> Optional['outputs.WebAclRuleStatementRuleGroupReferenceStatement']: + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + excluded_headers: Optional[Sequence[str]] = None, + included_headers: Optional[Sequence[str]] = None): """ - Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See `rule_group_reference_statement` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "rule_group_reference_statement") + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional['outputs.WebAclRuleStatementSizeConstraintStatement']: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: """ - Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "size_constraint_statement") + return pulumi.get(self, "all") @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional['outputs.WebAclRuleStatementSqliMatchStatement']: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[Sequence[str]]: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "excluded_headers") @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional['outputs.WebAclRuleStatementXssMatchStatement']: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[Sequence[str]]: """ - Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "included_headers") @pulumi.output_type -class WebAclRuleStatementAndStatement(dict): - def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): - """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. - """ - pulumi.set(__self__, "statements", statements) - - @property - @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: - """ - The statements to combine. - """ - return pulumi.get(self, "statements") +class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): + def __init__(__self__): + pass @pulumi.output_type -class WebAclRuleStatementByteMatchStatement(dict): +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "positionalConstraint": - suggest = "positional_constraint" - elif key == "searchString": - suggest = "search_string" - elif key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "invalidFallbackBehavior": + suggest = "invalid_fallback_behavior" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatement.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatement.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - positional_constraint: str, - search_string: str, - text_transformations: Sequence['outputs.WebAclRuleStatementByteMatchStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatch'] = None): + match_pattern: 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', + match_scope: str, + invalid_fallback_behavior: Optional[str] = None, + oversize_handling: Optional[str] = None): """ - :param str positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param str search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param Sequence['WebAclRuleStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> str: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': """ - Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "positional_constraint") + return pulumi.get(self, "match_pattern") @property - @pulumi.getter(name="searchString") - def search_string(self) -> str: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementByteMatchStatementTextTransformation']: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "invalid_fallback_behavior") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatch']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatch(dict): +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "includedPaths": + suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchUriPath'] = None): + all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments']: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - Inspect all query arguments. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "all_query_arguments") + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass - @property - @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchBody']: - """ - Inspect the request body, which immediately follows the request headers. See `body` below for details. - """ - return pulumi.get(self, "body") - @property - @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookies']: +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader(dict): + def __init__(__self__, *, + name: str): """ - Inspect the cookies in the web request. See `cookies` below for details. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "cookies") + pulumi.set(__self__, "name", name) @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeader']]: + def name(self) -> str: """ - Inspect the request headers. See `headers` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "headers") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody']: + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): + def __init__(__self__, *, + name: str): """ - Inspect the request body as JSON. See `json_body` for details. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "json_body") + pulumi.set(__self__, "name", name) @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchMethod']: + def name(self) -> str: """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "method") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchQueryString']: - """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - """ - return pulumi.get(self, "query_string") - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader']: +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementFieldToMatchUriPath(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementByteMatchStatementTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): """ - Inspect a single header. See `single_header` below for details. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "single_header") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument']: + @pulumi.getter + def priority(self) -> int: """ - Inspect a single query argument. See `single_query_argument` below for details. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "single_query_argument") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchUriPath']: + @pulumi.getter + def type(self) -> str: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "uri_path") - - -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): - def __init__(__self__): - pass + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchBody(dict): +class WebAclRuleStatementGeoMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" + if key == "countryCodes": + suggest = "country_codes" + elif key == "forwardedIpConfig": + suggest = "forwarded_ip_config" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementGeoMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementGeoMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - oversize_handling: Optional[str] = None): + country_codes: Sequence[str], + forwarded_ip_config: Optional['outputs.WebAclRuleStatementGeoMatchStatementForwardedIpConfig'] = None): """ - :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param Sequence[str] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param 'WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter(name="countryCodes") + def country_codes(self) -> Sequence[str]: """ - What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "country_codes") + + @property + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementGeoMatchStatementForwardedIpConfig']: + """ + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + """ + return pulumi.get(self, "forwarded_ip_config") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookies(dict): +class WebAclRuleStatementGeoMatchStatementForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): - """ - :param Sequence['WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. - """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) - - @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: + fallback_behavior: str, + header_name: str): """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "match_patterns") + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "header_name") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementIpSetReferenceStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "ipSetForwardedIpConfig": + suggest = "ip_set_forwarded_ip_config" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementIpSetReferenceStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementIpSetReferenceStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + arn: str, + ip_set_forwarded_ip_config: Optional['outputs.WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param 'WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: + def arn(self) -> str: """ - An empty configuration block that is used for inspecting all headers. + The Amazon Resource Name (ARN) of the IP Set that this statement references. """ - return pulumi.get(self, "all") - - @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") + return pulumi.get(self, "arn") @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") - - -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig']: + """ + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + """ + return pulumi.get(self, "ip_set_forwarded_ip_config") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeader(dict): +class WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): + fallback_behavior: str, + header_name: str, + position: str): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: Name of the HTTP header to use for the IP address. + :param str position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern': + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "header_name") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def position(self) -> str: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "position") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementLabelMatchStatement(dict): + def __init__(__self__, *, + key: str, + scope: str): + """ + :param str key: String to match against. + :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) + + @property + @pulumi.getter + def key(self) -> str: + """ + String to match against. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def scope(self) -> str: + """ + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + """ + return pulumi.get(self, "scope") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" + if key == "vendorName": + suggest = "vendor_name" + elif key == "managedRuleGroupConfigs": + suggest = "managed_rule_group_configs" + elif key == "ruleActionOverrides": + suggest = "rule_action_overrides" + elif key == "scopeDownStatement": + suggest = "scope_down_statement" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, - excluded_headers: Optional[Sequence[str]] = None, - included_headers: Optional[Sequence[str]] = None): + name: str, + vendor_name: str, + managed_rule_group_configs: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig']] = None, + rule_action_overrides: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride']] = None, + scope_down_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement'] = None, + version: Optional[str] = None): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + :param str name: Name of the managed rule group. + :param str vendor_name: Name of the managed rule group vendor. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs'] managed_rule_group_configs: Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs'] rule_action_overrides: Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs' scope_down_statement: Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + :param str version: Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "vendor_name", vendor_name) + if managed_rule_group_configs is not None: + pulumi.set(__self__, "managed_rule_group_configs", managed_rule_group_configs) + if rule_action_overrides is not None: + pulumi.set(__self__, "rule_action_overrides", rule_action_overrides) + if scope_down_statement is not None: + pulumi.set(__self__, "scope_down_statement", scope_down_statement) + if version is not None: + pulumi.set(__self__, "version", version) @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: + def name(self) -> str: """ - An empty configuration block that is used for inspecting all headers. + Name of the managed rule group. """ - return pulumi.get(self, "all") + return pulumi.get(self, "name") @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter(name="vendorName") + def vendor_name(self) -> str: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + Name of the managed rule group vendor. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "vendor_name") @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter(name="managedRuleGroupConfigs") + def managed_rule_group_configs(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig']]: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details """ - return pulumi.get(self, "included_headers") + return pulumi.get(self, "managed_rule_group_configs") + + @property + @pulumi.getter(name="ruleActionOverrides") + def rule_action_overrides(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride']]: + """ + Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. + """ + return pulumi.get(self, "rule_action_overrides") + @property + @pulumi.getter(name="scopeDownStatement") + def scope_down_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement']: + """ + Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + """ + return pulumi.get(self, "scope_down_statement") -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter + def version(self) -> Optional[str]: + """ + Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + """ + return pulumi.get(self, "version") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "invalidFallbackBehavior": - suggest = "invalid_fallback_behavior" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "awsManagedRulesAtpRuleSet": + suggest = "aws_managed_rules_atp_rule_set" + elif key == "awsManagedRulesBotControlRuleSet": + suggest = "aws_managed_rules_bot_control_rule_set" + elif key == "loginPath": + suggest = "login_path" + elif key == "passwordField": + suggest = "password_field" + elif key == "payloadType": + suggest = "payload_type" + elif key == "usernameField": + suggest = "username_field" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', - match_scope: str, - invalid_fallback_behavior: Optional[str] = None, - oversize_handling: Optional[str] = None): + aws_managed_rules_atp_rule_set: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet'] = None, + aws_managed_rules_bot_control_rule_set: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet'] = None, + login_path: Optional[str] = None, + password_field: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField'] = None, + payload_type: Optional[str] = None, + username_field: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField'] = None): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs' aws_managed_rules_atp_rule_set: Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs' aws_managed_rules_bot_control_rule_set: Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details + :param str login_path: The path of the login endpoint for your application. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs' password_field: Details about your login page password field. See `password_field` for more details. + :param str payload_type: The payload type for your login endpoint, either JSON or form encoded. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs' username_field: Details about your login page username field. See `username_field` for more details. + """ + if aws_managed_rules_atp_rule_set is not None: + pulumi.set(__self__, "aws_managed_rules_atp_rule_set", aws_managed_rules_atp_rule_set) + if aws_managed_rules_bot_control_rule_set is not None: + pulumi.set(__self__, "aws_managed_rules_bot_control_rule_set", aws_managed_rules_bot_control_rule_set) + if login_path is not None: + pulumi.set(__self__, "login_path", login_path) + if password_field is not None: + pulumi.set(__self__, "password_field", password_field) + if payload_type is not None: + pulumi.set(__self__, "payload_type", payload_type) + if username_field is not None: + pulumi.set(__self__, "username_field", username_field) + + @property + @pulumi.getter(name="awsManagedRulesAtpRuleSet") + def aws_managed_rules_atp_rule_set(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet']: + """ + Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + """ + return pulumi.get(self, "aws_managed_rules_atp_rule_set") + + @property + @pulumi.getter(name="awsManagedRulesBotControlRuleSet") + def aws_managed_rules_bot_control_rule_set(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet']: """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details + """ + return pulumi.get(self, "aws_managed_rules_bot_control_rule_set") @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': + @pulumi.getter(name="loginPath") + def login_path(self) -> Optional[str]: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + The path of the login endpoint for your application. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "login_path") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="passwordField") + def password_field(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField']: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + Details about your login page password field. See `password_field` for more details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "password_field") @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: + @pulumi.getter(name="payloadType") + def payload_type(self) -> Optional[str]: """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + The payload type for your login endpoint, either JSON or form encoded. """ - return pulumi.get(self, "invalid_fallback_behavior") + return pulumi.get(self, "payload_type") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter(name="usernameField") + def username_field(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField']: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + Details about your login page username field. See `username_field` for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "username_field") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "includedPaths": - suggest = "included_paths" + if key == "loginPath": + suggest = "login_path" + elif key == "enableRegexInPath": + suggest = "enable_regex_in_path" + elif key == "requestInspection": + suggest = "request_inspection" + elif key == "responseInspection": + suggest = "response_inspection" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): + login_path: str, + enable_regex_in_path: Optional[bool] = None, + request_inspection: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection'] = None, + response_inspection: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection'] = None): """ - :param 'WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param str login_path: The path of the login endpoint for your application. + :param bool enable_regex_in_path: Whether or not to allow the use of regular expressions in the login page path. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs' request_inspection: The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs' response_inspection: The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + pulumi.set(__self__, "login_path", login_path) + if enable_regex_in_path is not None: + pulumi.set(__self__, "enable_regex_in_path", enable_regex_in_path) + if request_inspection is not None: + pulumi.set(__self__, "request_inspection", request_inspection) + if response_inspection is not None: + pulumi.set(__self__, "response_inspection", response_inspection) @property - @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + @pulumi.getter(name="loginPath") + def login_path(self) -> str: """ - An empty configuration block that is used for inspecting all headers. + The path of the login endpoint for your application. """ - return pulumi.get(self, "all") + return pulumi.get(self, "login_path") @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") + @pulumi.getter(name="enableRegexInPath") + def enable_regex_in_path(self) -> Optional[bool]: + """ + Whether or not to allow the use of regular expressions in the login page path. + """ + return pulumi.get(self, "enable_regex_in_path") + @property + @pulumi.getter(name="requestInspection") + def request_inspection(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection']: + """ + The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. + """ + return pulumi.get(self, "request_inspection") -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="responseInspection") + def response_inspection(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection']: + """ + The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. + """ + return pulumi.get(self, "response_inspection") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchMethod(dict): - def __init__(__self__): - pass +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "passwordField": + suggest = "password_field" + elif key == "payloadType": + suggest = "payload_type" + elif key == "usernameField": + suggest = "username_field" + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection. Access the value via the '{suggest}' property getter instead.") -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchQueryString(dict): - def __init__(__self__): - pass + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection.__key_warning(key) + return super().__getitem__(key) + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection.__key_warning(key) + return super().get(key, default) -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, - name: str): + password_field: 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField', + payload_type: str, + username_field: 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField'): """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs' password_field: Details about your login page password field. See `password_field` for more details. + :param str payload_type: The payload type for your login endpoint, either JSON or form encoded. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs' username_field: Details about your login page username field. See `username_field` for more details. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "password_field", password_field) + pulumi.set(__self__, "payload_type", payload_type) + pulumi.set(__self__, "username_field", username_field) @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="passwordField") + def password_field(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField': """ - Name of the query header to inspect. This setting must be provided as lower case characters. + Details about your login page password field. See `password_field` for more details. """ - return pulumi.get(self, "name") - + return pulumi.get(self, "password_field") -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): - def __init__(__self__, *, - name: str): + @property + @pulumi.getter(name="payloadType") + def payload_type(self) -> str: """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. + The payload type for your login endpoint, either JSON or form encoded. """ - pulumi.set(__self__, "name", name) + return pulumi.get(self, "payload_type") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="usernameField") + def username_field(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField': """ - Name of the query header to inspect. This setting must be provided as lower case characters. + Details about your login page username field. See `username_field` for more details. """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class WebAclRuleStatementByteMatchStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass + return pulumi.get(self, "username_field") @pulumi.output_type -class WebAclRuleStatementByteMatchStatementTextTransformation(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField(dict): def __init__(__self__, *, - priority: int, - type: str): - """ - :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) - - @property - @pulumi.getter - def priority(self) -> int: + identifier: str): """ - Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str identifier: The name of the password field. """ - return pulumi.get(self, "priority") + pulumi.set(__self__, "identifier", identifier) @property @pulumi.getter - def type(self) -> str: + def identifier(self) -> str: """ - Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + The name of the password field. """ - return pulumi.get(self, "type") + return pulumi.get(self, "identifier") @pulumi.output_type -class WebAclRuleStatementGeoMatchStatement(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "countryCodes": - suggest = "country_codes" - elif key == "forwardedIpConfig": - suggest = "forwarded_ip_config" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementGeoMatchStatement.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementGeoMatchStatement.__key_warning(key) - return super().get(key, default) - +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField(dict): def __init__(__self__, *, - country_codes: Sequence[str], - forwarded_ip_config: Optional['outputs.WebAclRuleStatementGeoMatchStatementForwardedIpConfig'] = None): - """ - :param Sequence[str] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param 'WebAclRuleStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. - """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) - - @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> Sequence[str]: + identifier: str): """ - Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param str identifier: The name of the username field. """ - return pulumi.get(self, "country_codes") + pulumi.set(__self__, "identifier", identifier) - @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementGeoMatchStatementForwardedIpConfig']: + @property + @pulumi.getter + def identifier(self) -> str: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + The name of the username field. """ - return pulumi.get(self, "forwarded_ip_config") + return pulumi.get(self, "identifier") @pulumi.output_type -class WebAclRuleStatementGeoMatchStatementForwardedIpConfig(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" + if key == "bodyContains": + suggest = "body_contains" + elif key == "statusCode": + suggest = "status_code" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - fallback_behavior: str, - header_name: str): + body_contains: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains'] = None, + header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader'] = None, + json: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson'] = None, + status_code: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode'] = None): """ - :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: Name of the HTTP header to use for the IP address. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs' body_contains: Configures inspection of the response body. See `body_contains` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs' header: Configures inspection of the response header.See `header` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs' json: Configures inspection of the response JSON. See `json` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs' status_code: Configures inspection of the response status code.See `status_code` for more details. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + if body_contains is not None: + pulumi.set(__self__, "body_contains", body_contains) + if header is not None: + pulumi.set(__self__, "header", header) + if json is not None: + pulumi.set(__self__, "json", json) + if status_code is not None: + pulumi.set(__self__, "status_code", status_code) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: + @pulumi.getter(name="bodyContains") + def body_contains(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains']: """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + Configures inspection of the response body. See `body_contains` for more details. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "body_contains") @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: + @pulumi.getter + def header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader']: """ - Name of the HTTP header to use for the IP address. + Configures inspection of the response header.See `header` for more details. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "header") + + @property + @pulumi.getter + def json(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson']: + """ + Configures inspection of the response JSON. See `json` for more details. + """ + return pulumi.get(self, "json") + + @property + @pulumi.getter(name="statusCode") + def status_code(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode']: + """ + Configures inspection of the response status code.See `status_code` for more details. + """ + return pulumi.get(self, "status_code") @pulumi.output_type -class WebAclRuleStatementIpSetReferenceStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "ipSetForwardedIpConfig": - suggest = "ip_set_forwarded_ip_config" + if key == "failureStrings": + suggest = "failure_strings" + elif key == "successStrings": + suggest = "success_strings" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementIpSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementIpSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - ip_set_forwarded_ip_config: Optional['outputs.WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): + failure_strings: Sequence[str], + success_strings: Sequence[str]): """ - :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param 'WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + :param Sequence[str] failure_strings: Strings in the body of the response that indicate a failed login attempt. + :param Sequence[str] success_strings: Strings in the body of the response that indicate a successful login attempt. """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + pulumi.set(__self__, "failure_strings", failure_strings) + pulumi.set(__self__, "success_strings", success_strings) @property - @pulumi.getter - def arn(self) -> str: + @pulumi.getter(name="failureStrings") + def failure_strings(self) -> Sequence[str]: """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + Strings in the body of the response that indicate a failed login attempt. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "failure_strings") @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig']: + @pulumi.getter(name="successStrings") + def success_strings(self) -> Sequence[str]: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + Strings in the body of the response that indicate a successful login attempt. """ - return pulumi.get(self, "ip_set_forwarded_ip_config") + return pulumi.get(self, "success_strings") @pulumi.output_type -class WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" + if key == "failureValues": + suggest = "failure_values" + elif key == "successValues": + suggest = "success_values" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - fallback_behavior: str, - header_name: str, - position: str): - """ - :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: Name of the HTTP header to use for the IP address. - :param str position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) - - @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: - """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - """ - return pulumi.get(self, "fallback_behavior") - - @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: + failure_values: Sequence[str], + name: str, + success_values: Sequence[str]): """ - Name of the HTTP header to use for the IP address. + :param Sequence[str] failure_values: Values in the response header with the specified name that indicate a failed login attempt. + :param str name: The name of the header to use. + :param Sequence[str] success_values: Values in the response header with the specified name that indicate a successful login attempt. """ - return pulumi.get(self, "header_name") + pulumi.set(__self__, "failure_values", failure_values) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "success_values", success_values) @property - @pulumi.getter - def position(self) -> str: - """ - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - """ - return pulumi.get(self, "position") - - -@pulumi.output_type -class WebAclRuleStatementLabelMatchStatement(dict): - def __init__(__self__, *, - key: str, - scope: str): + @pulumi.getter(name="failureValues") + def failure_values(self) -> Sequence[str]: """ - :param str key: String to match against. - :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Values in the response header with the specified name that indicate a failed login attempt. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + return pulumi.get(self, "failure_values") @property @pulumi.getter - def key(self) -> str: + def name(self) -> str: """ - String to match against. + The name of the header to use. """ - return pulumi.get(self, "key") + return pulumi.get(self, "name") @property - @pulumi.getter - def scope(self) -> str: + @pulumi.getter(name="successValues") + def success_values(self) -> Sequence[str]: """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + Values in the response header with the specified name that indicate a successful login attempt. """ - return pulumi.get(self, "scope") + return pulumi.get(self, "success_values") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "vendorName": - suggest = "vendor_name" - elif key == "managedRuleGroupConfigs": - suggest = "managed_rule_group_configs" - elif key == "ruleActionOverrides": - suggest = "rule_action_overrides" - elif key == "scopeDownStatement": - suggest = "scope_down_statement" + if key == "failureValues": + suggest = "failure_values" + elif key == "successValues": + suggest = "success_values" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - name: str, - vendor_name: str, - managed_rule_group_configs: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig']] = None, - rule_action_overrides: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride']] = None, - scope_down_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement'] = None, - version: Optional[str] = None): + failure_values: Sequence[str], + identifier: str, + success_values: Sequence[str]): """ - :param str name: Name of the managed rule group. - :param str vendor_name: Name of the managed rule group vendor. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigArgs'] managed_rule_group_configs: Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideArgs'] rule_action_overrides: Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementArgs' scope_down_statement: Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. - :param str version: Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + :param Sequence[str] failure_values: Values in the response header with the specified name that indicate a failed login attempt. + :param str identifier: The identifier for the value to match against in the JSON. + :param Sequence[str] success_values: Values in the response header with the specified name that indicate a successful login attempt. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "vendor_name", vendor_name) - if managed_rule_group_configs is not None: - pulumi.set(__self__, "managed_rule_group_configs", managed_rule_group_configs) - if rule_action_overrides is not None: - pulumi.set(__self__, "rule_action_overrides", rule_action_overrides) - if scope_down_statement is not None: - pulumi.set(__self__, "scope_down_statement", scope_down_statement) - if version is not None: - pulumi.set(__self__, "version", version) + pulumi.set(__self__, "failure_values", failure_values) + pulumi.set(__self__, "identifier", identifier) + pulumi.set(__self__, "success_values", success_values) @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="failureValues") + def failure_values(self) -> Sequence[str]: """ - Name of the managed rule group. + Values in the response header with the specified name that indicate a failed login attempt. """ - return pulumi.get(self, "name") + return pulumi.get(self, "failure_values") @property - @pulumi.getter(name="vendorName") - def vendor_name(self) -> str: + @pulumi.getter + def identifier(self) -> str: """ - Name of the managed rule group vendor. + The identifier for the value to match against in the JSON. """ - return pulumi.get(self, "vendor_name") + return pulumi.get(self, "identifier") @property - @pulumi.getter(name="managedRuleGroupConfigs") - def managed_rule_group_configs(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig']]: + @pulumi.getter(name="successValues") + def success_values(self) -> Sequence[str]: """ - Additional information that's used by a managed rule group. Only one rule attribute is allowed in each config. See `managed_rule_group_configs` for more details + Values in the response header with the specified name that indicate a successful login attempt. """ - return pulumi.get(self, "managed_rule_group_configs") + return pulumi.get(self, "success_values") - @property - @pulumi.getter(name="ruleActionOverrides") - def rule_action_overrides(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride']]: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "failureCodes": + suggest = "failure_codes" + elif key == "successCodes": + suggest = "success_codes" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + failure_codes: Sequence[int], + success_codes: Sequence[int]): """ - Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change. See `rule_action_override` below for details. + :param Sequence[int] failure_codes: Status codes in the response that indicate a failed login attempt. + :param Sequence[int] success_codes: Status codes in the response that indicate a successful login attempt. """ - return pulumi.get(self, "rule_action_overrides") + pulumi.set(__self__, "failure_codes", failure_codes) + pulumi.set(__self__, "success_codes", success_codes) @property - @pulumi.getter(name="scopeDownStatement") - def scope_down_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement']: + @pulumi.getter(name="failureCodes") + def failure_codes(self) -> Sequence[int]: """ - Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. + Status codes in the response that indicate a failed login attempt. """ - return pulumi.get(self, "scope_down_statement") + return pulumi.get(self, "failure_codes") @property - @pulumi.getter - def version(self) -> Optional[str]: + @pulumi.getter(name="successCodes") + def success_codes(self) -> Sequence[int]: """ - Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. + Status codes in the response that indicate a successful login attempt. """ - return pulumi.get(self, "version") + return pulumi.get(self, "success_codes") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig(dict): +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "awsManagedRulesAtpRuleSet": - suggest = "aws_managed_rules_atp_rule_set" - elif key == "awsManagedRulesBotControlRuleSet": - suggest = "aws_managed_rules_bot_control_rule_set" - elif key == "loginPath": - suggest = "login_path" - elif key == "passwordField": - suggest = "password_field" - elif key == "payloadType": - suggest = "payload_type" - elif key == "usernameField": - suggest = "username_field" + if key == "inspectionLevel": + suggest = "inspection_level" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - aws_managed_rules_atp_rule_set: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet'] = None, - aws_managed_rules_bot_control_rule_set: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet'] = None, - login_path: Optional[str] = None, - password_field: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField'] = None, - payload_type: Optional[str] = None, - username_field: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField'] = None): + inspection_level: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetArgs' aws_managed_rules_atp_rule_set: Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSetArgs' aws_managed_rules_bot_control_rule_set: Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details - :param str login_path: The path of the login endpoint for your application. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordFieldArgs' password_field: Details about your login page password field. See `password_field` for more details. - :param str payload_type: The payload type for your login endpoint, either JSON or form encoded. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameFieldArgs' username_field: Details about your login page username field. See `username_field` for more details. + :param str inspection_level: The inspection level to use for the Bot Control rule group. """ - if aws_managed_rules_atp_rule_set is not None: - pulumi.set(__self__, "aws_managed_rules_atp_rule_set", aws_managed_rules_atp_rule_set) - if aws_managed_rules_bot_control_rule_set is not None: - pulumi.set(__self__, "aws_managed_rules_bot_control_rule_set", aws_managed_rules_bot_control_rule_set) - if login_path is not None: - pulumi.set(__self__, "login_path", login_path) - if password_field is not None: - pulumi.set(__self__, "password_field", password_field) - if payload_type is not None: - pulumi.set(__self__, "payload_type", payload_type) - if username_field is not None: - pulumi.set(__self__, "username_field", username_field) + pulumi.set(__self__, "inspection_level", inspection_level) @property - @pulumi.getter(name="awsManagedRulesAtpRuleSet") - def aws_managed_rules_atp_rule_set(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet']: + @pulumi.getter(name="inspectionLevel") + def inspection_level(self) -> str: """ - Additional configuration for using the Account Takeover Protection managed rule group. Use this to specify information such as the sign-in page of your application and the type of content to accept or reject from the client. + The inspection level to use for the Bot Control rule group. """ - return pulumi.get(self, "aws_managed_rules_atp_rule_set") + return pulumi.get(self, "inspection_level") - @property - @pulumi.getter(name="awsManagedRulesBotControlRuleSet") - def aws_managed_rules_bot_control_rule_set(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet']: - """ - Additional configuration for using the Bot Control managed rule group. Use this to specify the inspection level that you want to use. See `aws_managed_rules_bot_control_rule_set` for more details - """ - return pulumi.get(self, "aws_managed_rules_bot_control_rule_set") - @property - @pulumi.getter(name="loginPath") - def login_path(self) -> Optional[str]: +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField(dict): + def __init__(__self__, *, + identifier: str): """ - The path of the login endpoint for your application. + :param str identifier: The name of the password field. """ - return pulumi.get(self, "login_path") + pulumi.set(__self__, "identifier", identifier) @property - @pulumi.getter(name="passwordField") - def password_field(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField']: + @pulumi.getter + def identifier(self) -> str: """ - Details about your login page password field. See `password_field` for more details. + The name of the password field. """ - return pulumi.get(self, "password_field") + return pulumi.get(self, "identifier") - @property - @pulumi.getter(name="payloadType") - def payload_type(self) -> Optional[str]: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField(dict): + def __init__(__self__, *, + identifier: str): """ - The payload type for your login endpoint, either JSON or form encoded. + :param str identifier: The name of the username field. """ - return pulumi.get(self, "payload_type") + pulumi.set(__self__, "identifier", identifier) @property - @pulumi.getter(name="usernameField") - def username_field(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField']: + @pulumi.getter + def identifier(self) -> str: """ - Details about your login page username field. See `username_field` for more details. + The name of the username field. """ - return pulumi.get(self, "username_field") + return pulumi.get(self, "identifier") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "loginPath": - suggest = "login_path" - elif key == "enableRegexInPath": - suggest = "enable_regex_in_path" - elif key == "requestInspection": - suggest = "request_inspection" - elif key == "responseInspection": - suggest = "response_inspection" + if key == "actionToUse": + suggest = "action_to_use" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSet.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - login_path: str, - enable_regex_in_path: Optional[bool] = None, - request_inspection: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection'] = None, - response_inspection: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection'] = None): + action_to_use: 'outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse', + name: str): """ - :param str login_path: The path of the login endpoint for your application. - :param bool enable_regex_in_path: Whether or not to allow the use of regular expressions in the login page path. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionArgs' request_inspection: The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionArgs' response_inspection: The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs' action_to_use: Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + :param str name: Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + """ + pulumi.set(__self__, "action_to_use", action_to_use) + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter(name="actionToUse") + def action_to_use(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse': + """ + Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + """ + return pulumi.get(self, "action_to_use") + + @property + @pulumi.getter + def name(self) -> str: + """ + Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + """ + return pulumi.get(self, "name") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse(dict): + def __init__(__self__, *, + allow: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow'] = None, + block: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock'] = None, + captcha: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha'] = None, + challenge: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge'] = None, + count: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount'] = None): + """ + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs' allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs' block: Specifies that AWS WAF should block requests by default. See `block` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs' captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs' challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs' count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + """ + if allow is not None: + pulumi.set(__self__, "allow", allow) + if block is not None: + pulumi.set(__self__, "block", block) + if captcha is not None: + pulumi.set(__self__, "captcha", captcha) + if challenge is not None: + pulumi.set(__self__, "challenge", challenge) + if count is not None: + pulumi.set(__self__, "count", count) + + @property + @pulumi.getter + def allow(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow']: + """ + Specifies that AWS WAF should allow requests by default. See `allow` below for details. """ - pulumi.set(__self__, "login_path", login_path) - if enable_regex_in_path is not None: - pulumi.set(__self__, "enable_regex_in_path", enable_regex_in_path) - if request_inspection is not None: - pulumi.set(__self__, "request_inspection", request_inspection) - if response_inspection is not None: - pulumi.set(__self__, "response_inspection", response_inspection) + return pulumi.get(self, "allow") @property - @pulumi.getter(name="loginPath") - def login_path(self) -> str: + @pulumi.getter + def block(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock']: """ - The path of the login endpoint for your application. + Specifies that AWS WAF should block requests by default. See `block` below for details. """ - return pulumi.get(self, "login_path") + return pulumi.get(self, "block") @property - @pulumi.getter(name="enableRegexInPath") - def enable_regex_in_path(self) -> Optional[bool]: + @pulumi.getter + def captcha(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha']: """ - Whether or not to allow the use of regular expressions in the login page path. + Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. """ - return pulumi.get(self, "enable_regex_in_path") + return pulumi.get(self, "captcha") @property - @pulumi.getter(name="requestInspection") - def request_inspection(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection']: + @pulumi.getter + def challenge(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge']: """ - The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage. See `request_inspection` for more details. + Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. """ - return pulumi.get(self, "request_inspection") + return pulumi.get(self, "challenge") @property - @pulumi.getter(name="responseInspection") - def response_inspection(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection']: + @pulumi.getter + def count(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount']: """ - The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. Note that Response Inspection is available only on web ACLs that protect CloudFront distributions. See `response_inspection` for more details. + Instructs AWS WAF to count the web request and allow it. See `count` below for details. """ - return pulumi.get(self, "response_inspection") + return pulumi.get(self, "count") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "passwordField": - suggest = "password_field" - elif key == "payloadType": - suggest = "payload_type" - elif key == "usernameField": - suggest = "username_field" + if key == "customRequestHandling": + suggest = "custom_request_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspection.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - password_field: 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField', - payload_type: str, - username_field: 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField'): + custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordFieldArgs' password_field: Details about your login page password field. See `password_field` for more details. - :param str payload_type: The payload type for your login endpoint, either JSON or form encoded. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameFieldArgs' username_field: Details about your login page username field. See `username_field` for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - pulumi.set(__self__, "password_field", password_field) - pulumi.set(__self__, "payload_type", payload_type) - pulumi.set(__self__, "username_field", username_field) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="passwordField") - def password_field(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField': + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling']: """ - Details about your login page password field. See `password_field` for more details. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "password_field") + return pulumi.get(self, "custom_request_handling") - @property - @pulumi.getter(name="payloadType") - def payload_type(self) -> str: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader']): """ - The payload type for your login endpoint, either JSON or form encoded. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "payload_type") + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="usernameField") - def username_field(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField': + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader']: """ - Details about your login page username field. See `username_field` for more details. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "username_field") + return pulumi.get(self, "insert_headers") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionPasswordField(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader(dict): def __init__(__self__, *, - identifier: str): + name: str, + value: str): """ - :param str identifier: The name of the password field. + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. """ - pulumi.set(__self__, "identifier", identifier) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def identifier(self) -> str: + def name(self) -> str: """ - The name of the password field. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "name") + + @property + @pulumi.getter + def value(self) -> str: + """ + Value of the custom header. + """ + return pulumi.get(self, "value") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetRequestInspectionUsernameField(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "customResponse": + suggest = "custom_response" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - identifier: str): + custom_response: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse'] = None): """ - :param str identifier: The name of the username field. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. """ - pulumi.set(__self__, "identifier", identifier) + if custom_response is not None: + pulumi.set(__self__, "custom_response", custom_response) @property - @pulumi.getter - def identifier(self) -> str: + @pulumi.getter(name="customResponse") + def custom_response(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse']: """ - The name of the username field. + Defines a custom response for the web request. See `custom_response` below for details. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "custom_response") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "bodyContains": - suggest = "body_contains" - elif key == "statusCode": - suggest = "status_code" + if key == "responseCode": + suggest = "response_code" + elif key == "customResponseBodyKey": + suggest = "custom_response_body_key" + elif key == "responseHeaders": + suggest = "response_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspection.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - body_contains: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains'] = None, - header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader'] = None, - json: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson'] = None, - status_code: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode'] = None): + response_code: int, + custom_response_body_key: Optional[str] = None, + response_headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader']] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContainsArgs' body_contains: Configures inspection of the response body. See `body_contains` for more details. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeaderArgs' header: Configures inspection of the response header.See `header` for more details. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJsonArgs' json: Configures inspection of the response JSON. See `json` for more details. - :param 'WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCodeArgs' status_code: Configures inspection of the response status code.See `status_code` for more details. + :param int response_code: The HTTP status code to return to the client. + :param str custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. """ - if body_contains is not None: - pulumi.set(__self__, "body_contains", body_contains) - if header is not None: - pulumi.set(__self__, "header", header) - if json is not None: - pulumi.set(__self__, "json", json) - if status_code is not None: - pulumi.set(__self__, "status_code", status_code) + pulumi.set(__self__, "response_code", response_code) + if custom_response_body_key is not None: + pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) + if response_headers is not None: + pulumi.set(__self__, "response_headers", response_headers) @property - @pulumi.getter(name="bodyContains") - def body_contains(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains']: + @pulumi.getter(name="responseCode") + def response_code(self) -> int: """ - Configures inspection of the response body. See `body_contains` for more details. + The HTTP status code to return to the client. """ - return pulumi.get(self, "body_contains") + return pulumi.get(self, "response_code") @property - @pulumi.getter - def header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader']: + @pulumi.getter(name="customResponseBodyKey") + def custom_response_body_key(self) -> Optional[str]: """ - Configures inspection of the response header.See `header` for more details. + References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. """ - return pulumi.get(self, "header") + return pulumi.get(self, "custom_response_body_key") + + @property + @pulumi.getter(name="responseHeaders") + def response_headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader']]: + """ + The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + """ + return pulumi.get(self, "response_headers") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def json(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson']: + def name(self) -> str: """ - Configures inspection of the response JSON. See `json` for more details. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "json") + return pulumi.get(self, "name") @property - @pulumi.getter(name="statusCode") - def status_code(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode']: + @pulumi.getter + def value(self) -> str: """ - Configures inspection of the response status code.See `status_code` for more details. + Value of the custom header. """ - return pulumi.get(self, "status_code") + return pulumi.get(self, "value") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "failureStrings": - suggest = "failure_strings" - elif key == "successStrings": - suggest = "success_strings" + if key == "customRequestHandling": + suggest = "custom_request_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionBodyContains.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - failure_strings: Sequence[str], - success_strings: Sequence[str]): - """ - :param Sequence[str] failure_strings: Strings in the body of the response that indicate a failed login attempt. - :param Sequence[str] success_strings: Strings in the body of the response that indicate a successful login attempt. - """ - pulumi.set(__self__, "failure_strings", failure_strings) - pulumi.set(__self__, "success_strings", success_strings) - - @property - @pulumi.getter(name="failureStrings") - def failure_strings(self) -> Sequence[str]: + custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling'] = None): """ - Strings in the body of the response that indicate a failed login attempt. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "failure_strings") + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="successStrings") - def success_strings(self) -> Sequence[str]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling']: """ - Strings in the body of the response that indicate a successful login attempt. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "success_strings") + return pulumi.get(self, "custom_request_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "failureValues": - suggest = "failure_values" - elif key == "successValues": - suggest = "success_values" + if key == "insertHeaders": + suggest = "insert_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - failure_values: Sequence[str], - name: str, - success_values: Sequence[str]): + insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader']): """ - :param Sequence[str] failure_values: Values in the response header with the specified name that indicate a failed login attempt. - :param str name: The name of the header to match against. The name must be an exact match, including case. - :param Sequence[str] success_values: Values in the response header with the specified name that indicate a successful login attempt. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - pulumi.set(__self__, "failure_values", failure_values) - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "success_values", success_values) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="failureValues") - def failure_values(self) -> Sequence[str]: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader']: """ - Values in the response header with the specified name that indicate a failed login attempt. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "failure_values") + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> str: """ - The name of the header to match against. The name must be an exact match, including case. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ return pulumi.get(self, "name") @property - @pulumi.getter(name="successValues") - def success_values(self) -> Sequence[str]: + @pulumi.getter + def value(self) -> str: """ - Values in the response header with the specified name that indicate a successful login attempt. + Value of the custom header. """ - return pulumi.get(self, "success_values") + return pulumi.get(self, "value") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "failureValues": - suggest = "failure_values" - elif key == "successValues": - suggest = "success_values" + if key == "customRequestHandling": + suggest = "custom_request_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionJson.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - failure_values: Sequence[str], - identifier: str, - success_values: Sequence[str]): + custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling'] = None): """ - :param Sequence[str] failure_values: Values in the response header with the specified name that indicate a failed login attempt. - :param str identifier: The identifier for the value to match against in the JSON. - :param Sequence[str] success_values: Values in the response header with the specified name that indicate a successful login attempt. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - pulumi.set(__self__, "failure_values", failure_values) - pulumi.set(__self__, "identifier", identifier) - pulumi.set(__self__, "success_values", success_values) + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="failureValues") - def failure_values(self) -> Sequence[str]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling']: """ - Values in the response header with the specified name that indicate a failed login attempt. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "failure_values") + return pulumi.get(self, "custom_request_handling") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insertHeaders": + suggest = "insert_headers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader']): + """ + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + pulumi.set(__self__, "insert_headers", insert_headers) + + @property + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader']: + """ + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + """ + return pulumi.get(self, "insert_headers") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader(dict): + def __init__(__self__, *, + name: str, + value: str): + """ + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def identifier(self) -> str: + def name(self) -> str: """ - The identifier for the value to match against in the JSON. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "name") @property - @pulumi.getter(name="successValues") - def success_values(self) -> Sequence[str]: + @pulumi.getter + def value(self) -> str: """ - Values in the response header with the specified name that indicate a successful login attempt. + Value of the custom header. """ - return pulumi.get(self, "success_values") + return pulumi.get(self, "value") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "failureCodes": - suggest = "failure_codes" - elif key == "successCodes": - suggest = "success_codes" + if key == "customRequestHandling": + suggest = "custom_request_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - failure_codes: Sequence[int], - success_codes: Sequence[int]): - """ - :param Sequence[int] failure_codes: Status codes in the response that indicate a failed login attempt. - :param Sequence[int] success_codes: Status codes in the response that indicate a successful login attempt. - """ - pulumi.set(__self__, "failure_codes", failure_codes) - pulumi.set(__self__, "success_codes", success_codes) - - @property - @pulumi.getter(name="failureCodes") - def failure_codes(self) -> Sequence[int]: + custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling'] = None): """ - Status codes in the response that indicate a failed login attempt. + :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "failure_codes") + if custom_request_handling is not None: + pulumi.set(__self__, "custom_request_handling", custom_request_handling) @property - @pulumi.getter(name="successCodes") - def success_codes(self) -> Sequence[int]: + @pulumi.getter(name="customRequestHandling") + def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling']: """ - Status codes in the response that indicate a successful login attempt. + Defines custom handling for the web request. See `custom_request_handling` below for details. """ - return pulumi.get(self, "success_codes") + return pulumi.get(self, "custom_request_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "inspectionLevel": - suggest = "inspection_level" + if key == "insertHeaders": + suggest = "insert_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesBotControlRuleSet.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - inspection_level: str): + insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader']): """ - :param str inspection_level: The inspection level to use for the Bot Control rule group. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - pulumi.set(__self__, "inspection_level", inspection_level) + pulumi.set(__self__, "insert_headers", insert_headers) @property - @pulumi.getter(name="inspectionLevel") - def inspection_level(self) -> str: + @pulumi.getter(name="insertHeaders") + def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader']: """ - The inspection level to use for the Bot Control rule group. + The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. """ - return pulumi.get(self, "inspection_level") + return pulumi.get(self, "insert_headers") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigPasswordField(dict): +class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader(dict): def __init__(__self__, *, - identifier: str): + name: str, + value: str): """ - :param str identifier: The name of the password field. + :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + :param str value: Value of the custom header. """ - pulumi.set(__self__, "identifier", identifier) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "value", value) @property @pulumi.getter - def identifier(self) -> str: - """ - The name of the password field. - """ - return pulumi.get(self, "identifier") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigUsernameField(dict): - def __init__(__self__, *, - identifier: str): + def name(self) -> str: """ - :param str identifier: The name of the username field. + Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. """ - pulumi.set(__self__, "identifier", identifier) + return pulumi.get(self, "name") @property @pulumi.getter - def identifier(self) -> str: + def value(self) -> str: """ - The name of the username field. + Value of the custom header. """ - return pulumi.get(self, "identifier") + return pulumi.get(self, "value") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "actionToUse": - suggest = "action_to_use" + if key == "andStatement": + suggest = "and_statement" + elif key == "byteMatchStatement": + suggest = "byte_match_statement" + elif key == "geoMatchStatement": + suggest = "geo_match_statement" + elif key == "ipSetReferenceStatement": + suggest = "ip_set_reference_statement" + elif key == "labelMatchStatement": + suggest = "label_match_statement" + elif key == "notStatement": + suggest = "not_statement" + elif key == "orStatement": + suggest = "or_statement" + elif key == "regexMatchStatement": + suggest = "regex_match_statement" + elif key == "regexPatternSetReferenceStatement": + suggest = "regex_pattern_set_reference_statement" + elif key == "sizeConstraintStatement": + suggest = "size_constraint_statement" + elif key == "sqliMatchStatement": + suggest = "sqli_match_statement" + elif key == "xssMatchStatement": + suggest = "xss_match_statement" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverride.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - action_to_use: 'outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse', - name: str): + and_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement'] = None, + byte_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement'] = None, + geo_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement'] = None, + ip_set_reference_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement'] = None, + label_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement'] = None, + not_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement'] = None, + or_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement'] = None, + regex_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement'] = None, + regex_pattern_set_reference_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement'] = None, + size_constraint_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement'] = None, + sqli_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement'] = None, + xss_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseArgs' action_to_use: Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. - :param str name: Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs' and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs' byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs' geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs' ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs' label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs' not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs' or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs' regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs' size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs' xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. """ - pulumi.set(__self__, "action_to_use", action_to_use) - pulumi.set(__self__, "name", name) + if and_statement is not None: + pulumi.set(__self__, "and_statement", and_statement) + if byte_match_statement is not None: + pulumi.set(__self__, "byte_match_statement", byte_match_statement) + if geo_match_statement is not None: + pulumi.set(__self__, "geo_match_statement", geo_match_statement) + if ip_set_reference_statement is not None: + pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) + if label_match_statement is not None: + pulumi.set(__self__, "label_match_statement", label_match_statement) + if not_statement is not None: + pulumi.set(__self__, "not_statement", not_statement) + if or_statement is not None: + pulumi.set(__self__, "or_statement", or_statement) + if regex_match_statement is not None: + pulumi.set(__self__, "regex_match_statement", regex_match_statement) + if regex_pattern_set_reference_statement is not None: + pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) + if size_constraint_statement is not None: + pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) + if sqli_match_statement is not None: + pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) + if xss_match_statement is not None: + pulumi.set(__self__, "xss_match_statement", xss_match_statement) @property - @pulumi.getter(name="actionToUse") - def action_to_use(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse': + @pulumi.getter(name="andStatement") + def and_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement']: """ - Override action to use, in place of the configured action of the rule in the rule group. See `action` for details. + Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. """ - return pulumi.get(self, "action_to_use") + return pulumi.get(self, "and_statement") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="byteMatchStatement") + def byte_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement']: """ - Name of the rule to override. See the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. + Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. """ - return pulumi.get(self, "name") - + return pulumi.get(self, "byte_match_statement") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUse(dict): - def __init__(__self__, *, - allow: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow'] = None, - block: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock'] = None, - captcha: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha'] = None, - challenge: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge'] = None, - count: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount'] = None): + @property + @pulumi.getter(name="geoMatchStatement") + def geo_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement']: """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowArgs' allow: Specifies that AWS WAF should allow requests by default. See `allow` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockArgs' block: Specifies that AWS WAF should block requests by default. See `block` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaArgs' captcha: Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeArgs' challenge: Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountArgs' count: Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. """ - if allow is not None: - pulumi.set(__self__, "allow", allow) - if block is not None: - pulumi.set(__self__, "block", block) - if captcha is not None: - pulumi.set(__self__, "captcha", captcha) - if challenge is not None: - pulumi.set(__self__, "challenge", challenge) - if count is not None: - pulumi.set(__self__, "count", count) + return pulumi.get(self, "geo_match_statement") @property - @pulumi.getter - def allow(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow']: + @pulumi.getter(name="ipSetReferenceStatement") + def ip_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement']: """ - Specifies that AWS WAF should allow requests by default. See `allow` below for details. + Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. """ - return pulumi.get(self, "allow") + return pulumi.get(self, "ip_set_reference_statement") @property - @pulumi.getter - def block(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock']: + @pulumi.getter(name="labelMatchStatement") + def label_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement']: """ - Specifies that AWS WAF should block requests by default. See `block` below for details. + Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. """ - return pulumi.get(self, "block") + return pulumi.get(self, "label_match_statement") @property - @pulumi.getter - def captcha(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha']: + @pulumi.getter(name="notStatement") + def not_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement']: """ - Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details. + Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. """ - return pulumi.get(self, "captcha") + return pulumi.get(self, "not_statement") @property - @pulumi.getter - def challenge(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge']: + @pulumi.getter(name="orStatement") + def or_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement']: """ - Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details. + Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. """ - return pulumi.get(self, "challenge") + return pulumi.get(self, "or_statement") @property - @pulumi.getter - def count(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount']: + @pulumi.getter(name="regexMatchStatement") + def regex_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement']: """ - Instructs AWS WAF to count the web request and allow it. See `count` below for details. + Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. """ - return pulumi.get(self, "count") + return pulumi.get(self, "regex_match_statement") + @property + @pulumi.getter(name="regexPatternSetReferenceStatement") + def regex_pattern_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement']: + """ + Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + """ + return pulumi.get(self, "regex_pattern_set_reference_statement") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + @property + @pulumi.getter(name="sizeConstraintStatement") + def size_constraint_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement']: + """ + Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + """ + return pulumi.get(self, "size_constraint_statement") - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow. Access the value via the '{suggest}' property getter instead.") + @property + @pulumi.getter(name="sqliMatchStatement") + def sqli_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement']: + """ + An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + """ + return pulumi.get(self, "sqli_match_statement") - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow.__key_warning(key) - return super().__getitem__(key) + @property + @pulumi.getter(name="xssMatchStatement") + def xss_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement']: + """ + Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + """ + return pulumi.get(self, "xss_match_statement") - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllow.__key_warning(key) - return super().get(key, default) +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement(dict): def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling'] = None): + statements: Sequence['outputs.WebAclRuleStatement']): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling']: + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + The statements to combine. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "statements") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "positionalConstraint": + suggest = "positional_constraint" + elif key == "searchString": + suggest = "search_string" + elif key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader']): + positional_constraint: str, + search_string: str, + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch'] = None): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param str positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + :param str search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "insert_headers", insert_headers) + pulumi.set(__self__, "positional_constraint", positional_constraint) + pulumi.set(__self__, "search_string", search_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader']: + @pulumi.getter(name="positionalConstraint") + def positional_constraint(self) -> str: """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. """ - return pulumi.get(self, "insert_headers") - + return pulumi.get(self, "positional_constraint") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseAllowCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @property + @pulumi.getter(name="searchString") + def search_string(self) -> str: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "search_string") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation']: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch']: """ - Value of the custom header. + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "value") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customResponse": - suggest = "custom_response" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlock.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_response: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse'] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs' custom_response: Defines a custom response for the web request. See `custom_response` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - if custom_response is not None: - pulumi.set(__self__, "custom_response", custom_response) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="customResponse") - def custom_response(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse']: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments']: """ - Defines a custom response for the web request. See `custom_response` below for details. + Inspect all query arguments. """ - return pulumi.get(self, "custom_response") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "responseCode": - suggest = "response_code" - elif key == "customResponseBodyKey": - suggest = "custom_response_body_key" - elif key == "responseHeaders": - suggest = "response_headers" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponse.__key_warning(key) - return super().get(key, default) + return pulumi.get(self, "all_query_arguments") - def __init__(__self__, *, - response_code: int, - custom_response_body_key: Optional[str] = None, - response_headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader']] = None): + @property + @pulumi.getter + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody']: """ - :param int response_code: The HTTP status code to return to the client. - :param str custom_response_body_key: References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeaderArgs'] response_headers: The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + Inspect the request body, which immediately follows the request headers. See `body` below for details. """ - pulumi.set(__self__, "response_code", response_code) - if custom_response_body_key is not None: - pulumi.set(__self__, "custom_response_body_key", custom_response_body_key) - if response_headers is not None: - pulumi.set(__self__, "response_headers", response_headers) + return pulumi.get(self, "body") @property - @pulumi.getter(name="responseCode") - def response_code(self) -> int: + @pulumi.getter + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies']: """ - The HTTP status code to return to the client. + Inspect the cookies in the web request. See `cookies` below for details. """ - return pulumi.get(self, "response_code") + return pulumi.get(self, "cookies") @property - @pulumi.getter(name="customResponseBodyKey") - def custom_response_body_key(self) -> Optional[str]: + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']]: """ - References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. + Inspect the request headers. See `headers` below for details. """ - return pulumi.get(self, "custom_response_body_key") + return pulumi.get(self, "headers") @property - @pulumi.getter(name="responseHeaders") - def response_headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader']]: + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody']: """ - The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details. + Inspect the request body as JSON. See `json_body` for details. """ - return pulumi.get(self, "response_headers") + return pulumi.get(self, "json_body") + @property + @pulumi.getter + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod']: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseResponseHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString']: + """ + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + """ + return pulumi.get(self, "query_string") + + @property + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader']: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + Inspect a single header. See `single_header` below for details. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "single_header") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument']: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + Inspect a single query argument. See `single_query_argument` below for details. """ - return pulumi.get(self, "name") + return pulumi.get(self, "single_query_argument") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath']: """ - Value of the custom header. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "uri_path") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + if key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptcha.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling'] = None): + oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "matchPatterns": + suggest = "match_patterns" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader']): + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], + match_scope: str, + oversize_handling: str): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - pulumi.set(__self__, "insert_headers", insert_headers) + pulumi.set(__self__, "match_patterns", match_patterns) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader']: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCaptchaCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "match_patterns") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ - return pulumi.get(self, "name") + return pulumi.get(self, "match_scope") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Value of the custom header. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "value") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallenge.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling'] = None): + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling']: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") + + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader']): - """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - pulumi.set(__self__, "insert_headers", insert_headers) - - @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader']: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseChallengeCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): - """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. - """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) - - @property - @pulumi.getter - def name(self) -> str: - """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def value(self) -> str: + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern', + match_scope: str, + oversize_handling: str): """ - Value of the custom header. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "value") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "customRequestHandling": - suggest = "custom_request_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount.__key_warning(key) - return super().__getitem__(key) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCount.__key_warning(key) - return super().get(key, default) + @property + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern': + """ + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + """ + return pulumi.get(self, "match_pattern") - def __init__(__self__, *, - custom_request_handling: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling'] = None): + @property + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - :param 'WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingArgs' custom_request_handling: Defines custom handling for the web request. See `custom_request_handling` below for details. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - if custom_request_handling is not None: - pulumi.set(__self__, "custom_request_handling", custom_request_handling) + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="customRequestHandling") - def custom_request_handling(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Defines custom handling for the web request. See `custom_request_handling` below for details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "custom_request_handling") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insertHeaders": - suggest = "insert_headers" + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandling.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - insert_headers: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader']): + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + excluded_headers: Optional[Sequence[str]] = None, + included_headers: Optional[Sequence[str]] = None): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeaderArgs'] insert_headers: The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - pulumi.set(__self__, "insert_headers", insert_headers) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property - @pulumi.getter(name="insertHeaders") - def insert_headers(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader']: - """ - The `insert_header` blocks used to define HTTP headers added to the request. See `insert_header` below for details. - """ - return pulumi.get(self, "insert_headers") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseCountCustomRequestHandlingInsertHeader(dict): - def __init__(__self__, *, - name: str, - value: str): + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: """ - :param str name: Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. - :param str value: Value of the custom header. + An empty configuration block that is used for inspecting all headers. """ - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "value", value) + return pulumi.get(self, "all") @property - @pulumi.getter - def name(self) -> str: + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[Sequence[str]]: """ - Name of the custom header. For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-`, to avoid confusion with the headers that are already in the request. For example, for the header name `sample`, AWS WAF inserts the header `x-amzn-waf-sample`. + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "name") + return pulumi.get(self, "excluded_headers") @property - @pulumi.getter - def value(self) -> str: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[Sequence[str]]: """ - Value of the custom header. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "value") + return pulumi.get(self, "included_headers") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "andStatement": - suggest = "and_statement" - elif key == "byteMatchStatement": - suggest = "byte_match_statement" - elif key == "geoMatchStatement": - suggest = "geo_match_statement" - elif key == "ipSetReferenceStatement": - suggest = "ip_set_reference_statement" - elif key == "labelMatchStatement": - suggest = "label_match_statement" - elif key == "notStatement": - suggest = "not_statement" - elif key == "orStatement": - suggest = "or_statement" - elif key == "regexMatchStatement": - suggest = "regex_match_statement" - elif key == "regexPatternSetReferenceStatement": - suggest = "regex_pattern_set_reference_statement" - elif key == "sizeConstraintStatement": - suggest = "size_constraint_statement" - elif key == "sqliMatchStatement": - suggest = "sqli_match_statement" - elif key == "xssMatchStatement": - suggest = "xss_match_statement" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "invalidFallbackBehavior": + suggest = "invalid_fallback_behavior" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - and_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement'] = None, - byte_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement'] = None, - geo_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement'] = None, - ip_set_reference_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement'] = None, - label_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement'] = None, - not_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement'] = None, - or_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement'] = None, - regex_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement'] = None, - regex_pattern_set_reference_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement'] = None, - size_constraint_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement'] = None, - sqli_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement'] = None, - xss_match_statement: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement'] = None): + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', + match_scope: str, + invalid_fallback_behavior: Optional[str] = None, + oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementArgs' and_statement: Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementArgs' byte_match_statement: Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementArgs' geo_match_statement: Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementArgs' ip_set_reference_statement: Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatementArgs' label_match_statement: Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementArgs' not_statement: Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementArgs' or_statement: Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementArgs' regex_match_statement: Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementArgs' regex_pattern_set_reference_statement: Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementArgs' size_constraint_statement: Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementArgs' sqli_match_statement: An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementArgs' xss_match_statement: Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - if and_statement is not None: - pulumi.set(__self__, "and_statement", and_statement) - if byte_match_statement is not None: - pulumi.set(__self__, "byte_match_statement", byte_match_statement) - if geo_match_statement is not None: - pulumi.set(__self__, "geo_match_statement", geo_match_statement) - if ip_set_reference_statement is not None: - pulumi.set(__self__, "ip_set_reference_statement", ip_set_reference_statement) - if label_match_statement is not None: - pulumi.set(__self__, "label_match_statement", label_match_statement) - if not_statement is not None: - pulumi.set(__self__, "not_statement", not_statement) - if or_statement is not None: - pulumi.set(__self__, "or_statement", or_statement) - if regex_match_statement is not None: - pulumi.set(__self__, "regex_match_statement", regex_match_statement) - if regex_pattern_set_reference_statement is not None: - pulumi.set(__self__, "regex_pattern_set_reference_statement", regex_pattern_set_reference_statement) - if size_constraint_statement is not None: - pulumi.set(__self__, "size_constraint_statement", size_constraint_statement) - if sqli_match_statement is not None: - pulumi.set(__self__, "sqli_match_statement", sqli_match_statement) - if xss_match_statement is not None: - pulumi.set(__self__, "xss_match_statement", xss_match_statement) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="andStatement") - def and_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement']: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': """ - Logical rule statement used to combine other rule statements with AND logic. See `and_statement` below for details. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "and_statement") + return pulumi.get(self, "match_pattern") @property - @pulumi.getter(name="byteMatchStatement") - def byte_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement']: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Rule statement that defines a string match search for AWS WAF to apply to web requests. See `byte_match_statement` below for details. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "byte_match_statement") + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="geoMatchStatement") - def geo_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement']: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: """ - Rule statement used to identify web requests based on country of origin. See `geo_match_statement` below for details. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "geo_match_statement") + return pulumi.get(self, "invalid_fallback_behavior") @property - @pulumi.getter(name="ipSetReferenceStatement") - def ip_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: + """ + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + """ + return pulumi.get(self, "oversize_handling") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "includedPaths": + suggest = "included_paths" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - Rule statement used to detect web requests coming from particular IP addresses or address ranges. See `ip_set_reference_statement` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "ip_set_reference_statement") + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property - @pulumi.getter(name="labelMatchStatement") - def label_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement']: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See `label_match_statement` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "label_match_statement") + return pulumi.get(self, "all") @property - @pulumi.getter(name="notStatement") - def not_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement']: + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(dict): + def __init__(__self__, *, + name: str): """ - Logical rule statement used to negate the results of another rule statement. See `not_statement` below for details. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "not_statement") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="orStatement") - def or_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement']: + @pulumi.getter + def name(self) -> str: """ - Logical rule statement used to combine other rule statements with OR logic. See `or_statement` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "or_statement") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="regexMatchStatement") - def regex_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement']: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): + def __init__(__self__, *, + name: str): """ - Rule statement used to search web request components for a match against a single regular expression. See `regex_match_statement` below for details. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "regex_match_statement") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="regexPatternSetReferenceStatement") - def regex_pattern_set_reference_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement']: + @pulumi.getter + def name(self) -> str: """ - Rule statement used to search web request components for matches with regular expressions. See `regex_pattern_set_reference_statement` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "regex_pattern_set_reference_statement") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="sizeConstraintStatement") - def size_constraint_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement']: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): """ - Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See `size_constraint_statement` below for more details. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "size_constraint_statement") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="sqliMatchStatement") - def sqli_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement']: + @pulumi.getter + def priority(self) -> int: """ - An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See `sqli_match_statement` below for details. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "sqli_match_statement") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="xssMatchStatement") - def xss_match_statement(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement']: + @pulumi.getter + def type(self) -> str: """ - Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See `xss_match_statement` below for details. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "xss_match_statement") + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "countryCodes": + suggest = "country_codes" + elif key == "forwardedIpConfig": + suggest = "forwarded_ip_config" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): + country_codes: Sequence[str], + forwarded_ip_config: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig'] = None): """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + :param Sequence[str] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "country_codes", country_codes) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) @property - @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: + @pulumi.getter(name="countryCodes") + def country_codes(self) -> Sequence[str]: """ - The statements to combine. + Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "country_codes") + + @property + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig']: + """ + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + """ + return pulumi.get(self, "forwarded_ip_config") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "positionalConstraint": - suggest = "positional_constraint" - elif key == "searchString": - suggest = "search_string" - elif key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - positional_constraint: str, - search_string: str, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch'] = None): + fallback_behavior: str, + header_name: str): """ - :param str positional_constraint: Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. - :param str search_string: String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: Name of the HTTP header to use for the IP address. """ - pulumi.set(__self__, "positional_constraint", positional_constraint) - pulumi.set(__self__, "search_string", search_string) - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) @property - @pulumi.getter(name="positionalConstraint") - def positional_constraint(self) -> str: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "positional_constraint") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter(name="searchString") - def search_string(self) -> str: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "search_string") + return pulumi.get(self, "header_name") + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "ipSetForwardedIpConfig": + suggest = "ip_set_forwarded_ip_config" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + arn: str, + ip_set_forwarded_ip_config: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): + """ + :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + """ + pulumi.set(__self__, "arn", arn) + if ip_set_forwarded_ip_config is not None: + pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation']: + @pulumi.getter + def arn(self) -> str: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + The Amazon Resource Name (ARN) of the IP Set that this statement references. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "arn") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch']: + @pulumi.getter(name="ipSetForwardedIpConfig") + def ip_set_forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig']: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "ip_set_forwarded_ip_config") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "fallbackBehavior": + suggest = "fallback_behavior" + elif key == "headerName": + suggest = "header_name" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath'] = None): + fallback_behavior: str, + header_name: str, + position: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + :param str header_name: Name of the HTTP header to use for the IP address. + :param str position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) + pulumi.set(__self__, "fallback_behavior", fallback_behavior) + pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "position", position) @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments']: + @pulumi.getter(name="fallbackBehavior") + def fallback_behavior(self) -> str: """ - Inspect all query arguments. + Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. """ - return pulumi.get(self, "all_query_arguments") + return pulumi.get(self, "fallback_behavior") @property - @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody']: + @pulumi.getter(name="headerName") + def header_name(self) -> str: """ - Inspect the request body, which immediately follows the request headers. See `body` below for details. + Name of the HTTP header to use for the IP address. """ - return pulumi.get(self, "body") + return pulumi.get(self, "header_name") @property @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies']: + def position(self) -> str: """ - Inspect the cookies in the web request. See `cookies` below for details. + Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. """ - return pulumi.get(self, "cookies") + return pulumi.get(self, "position") - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See `headers` below for details. - """ - return pulumi.get(self, "headers") - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody']: +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement(dict): + def __init__(__self__, *, + key: str, + scope: str): """ - Inspect the request body as JSON. See `json_body` for details. + :param str key: String to match against. + :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "json_body") + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "scope", scope) @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod']: + def key(self) -> str: """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + String to match against. """ - return pulumi.get(self, "method") + return pulumi.get(self, "key") @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString']: + @pulumi.getter + def scope(self) -> str: """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. """ - return pulumi.get(self, "query_string") + return pulumi.get(self, "scope") - @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader']: - """ - Inspect a single header. See `single_header` below for details. - """ - return pulumi.get(self, "single_header") - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument']: +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement(dict): + def __init__(__self__, *, + statements: Sequence['outputs.WebAclRuleStatement']): """ - Inspect a single query argument. See `single_query_argument` below for details. + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. """ - return pulumi.get(self, "single_query_argument") + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath']: + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + The statements to combine. """ - return pulumi.get(self, "uri_path") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(dict): - def __init__(__self__): - pass + return pulumi.get(self, "statements") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.__key_warning(key) - return super().get(key, default) - +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement(dict): def __init__(__self__, *, - oversize_handling: Optional[str] = None): + statements: Sequence['outputs.WebAclRuleStatement']): """ - :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: """ - What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + The statements to combine. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "statements") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "regexString": + suggest = "regex_string" + elif key == "textTransformations": + suggest = "text_transformations" + elif key == "fieldToMatch": + suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): + regex_string: str, + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch'] = None): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param str regex_string: String representing the regular expression. Minimum of `1` and maximum of `512` characters. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "text_transformations", text_transformations) + if field_to_match is not None: + pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern']: + @pulumi.getter(name="regexString") + def regex_string(self) -> str: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + String representing the regular expression. Minimum of `1` and maximum of `512` characters. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "regex_string") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation']: """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "text_transformations") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter(name="fieldToMatch") + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch']: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "field_to_match") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "allQueryArguments": + suggest = "all_query_arguments" + elif key == "jsonBody": + suggest = "json_body" + elif key == "queryString": + suggest = "query_string" + elif key == "singleHeader": + suggest = "single_header" + elif key == "singleQueryArgument": + suggest = "single_query_argument" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + if all_query_arguments is not None: + pulumi.set(__self__, "all_query_arguments", all_query_arguments) + if body is not None: + pulumi.set(__self__, "body", body) + if cookies is not None: + pulumi.set(__self__, "cookies", cookies) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if json_body is not None: + pulumi.set(__self__, "json_body", json_body) + if method is not None: + pulumi.set(__self__, "method", method) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if single_header is not None: + pulumi.set(__self__, "single_header", single_header) + if single_query_argument is not None: + pulumi.set(__self__, "single_query_argument", single_query_argument) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll']: + @pulumi.getter(name="allQueryArguments") + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments']: """ - An empty configuration block that is used for inspecting all headers. + Inspect all query arguments. """ - return pulumi.get(self, "all") + return pulumi.get(self, "all_query_arguments") @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") + @pulumi.getter + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody']: + """ + Inspect the request body, which immediately follows the request headers. See `body` below for details. + """ + return pulumi.get(self, "body") @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + @pulumi.getter + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies']: + """ + Inspect the cookies in the web request. See `cookies` below for details. + """ + return pulumi.get(self, "cookies") - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + @property + @pulumi.getter + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']]: + """ + Inspect the request headers. See `headers` below for details. + """ + return pulumi.get(self, "headers") - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) - return super().__getitem__(key) + @property + @pulumi.getter(name="jsonBody") + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody']: + """ + Inspect the request body as JSON. See `json_body` for details. + """ + return pulumi.get(self, "json_body") - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeader.__key_warning(key) - return super().get(key, default) + @property + @pulumi.getter + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod']: + """ + Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + """ + return pulumi.get(self, "method") - def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString']: """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + return pulumi.get(self, "query_string") @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern': + @pulumi.getter(name="singleHeader") + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader']: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + Inspect a single header. See `single_header` below for details. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "single_header") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="singleQueryArgument") + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Inspect a single query argument. See `single_query_argument` below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "single_query_argument") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath']: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "uri_path") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" + if key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, - excluded_headers: Optional[Sequence[str]] = None, - included_headers: Optional[Sequence[str]] = None): - """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. - """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) - - @property - @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll']: - """ - An empty configuration block that is used for inspecting all headers. - """ - return pulumi.get(self, "all") - - @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[Sequence[str]]: + oversize_handling: Optional[str] = None): """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "excluded_headers") + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) - @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[Sequence[str]]: + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - return pulumi.get(self, "included_headers") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchHeaderMatchPatternAll(dict): - def __init__(__self__): - pass + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" + if key == "matchPatterns": + suggest = "match_patterns" elif key == "matchScope": suggest = "match_scope" - elif key == "invalidFallbackBehavior": - suggest = "invalid_fallback_behavior" elif key == "oversizeHandling": suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern', + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, - invalid_fallback_behavior: Optional[str] = None, - oversize_handling: Optional[str] = None): + oversize_handling: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ - pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_patterns", match_patterns) pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern': + @pulumi.getter(name="matchPatterns") + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "match_patterns") @property @pulumi.getter(name="matchScope") def match_scope(self) -> str: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` """ return pulumi.get(self, "match_scope") - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: - """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "invalid_fallback_behavior") - @property @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + def oversize_handling(self) -> str: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "includedPaths": - suggest = "included_paths" + if key == "excludedCookies": + suggest = "excluded_cookies" + elif key == "includedCookies": + suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + excluded_cookies: Optional[Sequence[str]] = None, + included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + if excluded_cookies is not None: + pulumi.set(__self__, "excluded_cookies", excluded_cookies) + if included_cookies is not None: + pulumi.set(__self__, "included_cookies", included_cookies) @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ return pulumi.get(self, "all") @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") - + @pulumi.getter(name="excludedCookies") + def excluded_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "excluded_cookies") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="includedCookies") + def included_cookies(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_cookies") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(dict): - def __init__(__self__): - pass - +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "oversizeHandling": + suggest = "oversize_handling" -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(dict): - def __init__(__self__, *, - name: str): - """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") - @property - @pulumi.getter - def name(self) -> str: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + return super().__getitem__(key) + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + return super().get(key, default) -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, - name: str): + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', + match_scope: str, + oversize_handling: str): """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter - def name(self) -> str: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation(dict): - def __init__(__self__, *, - priority: int, - type: str): + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': """ - :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) + return pulumi.get(self, "match_pattern") @property - @pulumi.getter - def priority(self) -> int: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. """ - return pulumi.get(self, "priority") + return pulumi.get(self, "match_scope") @property - @pulumi.getter - def type(self) -> str: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> str: """ - Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ - return pulumi.get(self, "type") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "countryCodes": - suggest = "country_codes" - elif key == "forwardedIpConfig": - suggest = "forwarded_ip_config" + if key == "excludedHeaders": + suggest = "excluded_headers" + elif key == "includedHeaders": + suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - country_codes: Sequence[str], - forwarded_ip_config: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig'] = None): + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + excluded_headers: Optional[Sequence[str]] = None, + included_headers: Optional[Sequence[str]] = None): """ - :param Sequence[str] country_codes: Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - pulumi.set(__self__, "country_codes", country_codes) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + if all is not None: + pulumi.set(__self__, "all", all) + if excluded_headers is not None: + pulumi.set(__self__, "excluded_headers", excluded_headers) + if included_headers is not None: + pulumi.set(__self__, "included_headers", included_headers) @property - @pulumi.getter(name="countryCodes") - def country_codes(self) -> Sequence[str]: + @pulumi.getter + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: """ - Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. + An empty configuration block that is used for inspecting all headers. + """ + return pulumi.get(self, "all") + + @property + @pulumi.getter(name="excludedHeaders") + def excluded_headers(self) -> Optional[Sequence[str]]: + """ + An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. """ - return pulumi.get(self, "country_codes") + return pulumi.get(self, "excluded_headers") @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig']: + @pulumi.getter(name="includedHeaders") + def included_headers(self) -> Optional[Sequence[str]]: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `forwarded_ip_config` below for details. + An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ - return pulumi.get(self, "forwarded_ip_config") + return pulumi.get(self, "included_headers") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" + if key == "matchPattern": + suggest = "match_pattern" + elif key == "matchScope": + suggest = "match_scope" + elif key == "invalidFallbackBehavior": + suggest = "invalid_fallback_behavior" + elif key == "oversizeHandling": + suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - fallback_behavior: str, - header_name: str): + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', + match_scope: str, + invalid_fallback_behavior: Optional[str] = None, + oversize_handling: Optional[str] = None): """ - :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: Name of the HTTP header to use for the IP address. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) + pulumi.set(__self__, "match_pattern", match_pattern) + pulumi.set(__self__, "match_scope", match_scope) + if invalid_fallback_behavior is not None: + pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) + if oversize_handling is not None: + pulumi.set(__self__, "oversize_handling", oversize_handling) @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: + @pulumi.getter(name="matchPattern") + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. + The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ - return pulumi.get(self, "fallback_behavior") + return pulumi.get(self, "match_pattern") @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: + @pulumi.getter(name="matchScope") + def match_scope(self) -> str: """ - Name of the HTTP header to use for the IP address. + The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "header_name") + return pulumi.get(self, "match_scope") + + @property + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: + """ + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + """ + return pulumi.get(self, "invalid_fallback_behavior") + + @property + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: + """ + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + """ + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "ipSetForwardedIpConfig": - suggest = "ip_set_forwarded_ip_config" + if key == "includedPaths": + suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - ip_set_forwarded_ip_config: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig'] = None): + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - :param str arn: The Amazon Resource Name (ARN) of the IP Set that this statement references. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs' ip_set_forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - pulumi.set(__self__, "arn", arn) - if ip_set_forwarded_ip_config is not None: - pulumi.set(__self__, "ip_set_forwarded_ip_config", ip_set_forwarded_ip_config) + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def arn(self) -> str: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - The Amazon Resource Name (ARN) of the IP Set that this statement references. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "all") @property - @pulumi.getter(name="ipSetForwardedIpConfig") - def ip_set_forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig']: - """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See `ip_set_forwarded_ip_config` below for more details. - """ - return pulumi.get(self, "ip_set_forwarded_ip_config") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "fallbackBehavior": - suggest = "fallback_behavior" - elif key == "headerName": - suggest = "header_name" +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig. Access the value via the '{suggest}' property getter instead.") - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) - return super().__getitem__(key) +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.__key_warning(key) - return super().get(key, default) - def __init__(__self__, *, - fallback_behavior: str, - header_name: str, - position: str): - """ - :param str fallback_behavior: Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - :param str header_name: Name of the HTTP header to use for the IP address. - :param str position: Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. - """ - pulumi.set(__self__, "fallback_behavior", fallback_behavior) - pulumi.set(__self__, "header_name", header_name) - pulumi.set(__self__, "position", position) +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass - @property - @pulumi.getter(name="fallbackBehavior") - def fallback_behavior(self) -> str: - """ - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. - """ - return pulumi.get(self, "fallback_behavior") - @property - @pulumi.getter(name="headerName") - def header_name(self) -> str: +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader(dict): + def __init__(__self__, *, + name: str): """ - Name of the HTTP header to use for the IP address. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "header_name") + pulumi.set(__self__, "name", name) @property @pulumi.getter - def position(self) -> str: + def name(self) -> str: """ - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "position") + return pulumi.get(self, "name") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, - key: str, - scope: str): + name: str): """ - :param str key: String to match against. - :param str scope: Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - pulumi.set(__self__, "key", key) - pulumi.set(__self__, "scope", scope) + pulumi.set(__self__, "name", name) @property @pulumi.getter - def key(self) -> str: + def name(self) -> str: """ - String to match against. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "key") + return pulumi.get(self, "name") - @property - @pulumi.getter - def scope(self) -> str: - """ - Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. - """ - return pulumi.get(self, "scope") + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath(dict): + def __init__(__self__): + pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation(dict): def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): + priority: int, + type: str): """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: - """ - The statements to combine. - """ - return pulumi.get(self, "statements") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement(dict): - def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): + def priority(self) -> int: """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - pulumi.set(__self__, "statements", statements) + return pulumi.get(self, "priority") @property @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: + def type(self) -> str: """ - The statements to combine. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "regexString": - suggest = "regex_string" - elif key == "textTransformations": + if key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - regex_string: str, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch'] = None): + arn: str, + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): """ - :param str regex_string: String representing the regular expression. Minimum of `1` and maximum of `512` characters. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchArgs' field_to_match: The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "regex_string", regex_string) + pulumi.set(__self__, "arn", arn) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) @property - @pulumi.getter(name="regexString") - def regex_string(self) -> str: + @pulumi.getter + def arn(self) -> str: """ - String representing the regular expression. Minimum of `1` and maximum of `512` characters. + The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. """ - return pulumi.get(self, "regex_string") + return pulumi.get(self, "arn") @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ @@ -16975,15 +18385,15 @@ def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRu @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch']: """ - The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ return pulumi.get(self, "field_to_match") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17001,38 +18411,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -17057,7 +18467,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -17065,7 +18475,7 @@ def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRul @property @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ @@ -17073,7 +18483,7 @@ def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement @property @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See `cookies` below for details. """ @@ -17081,7 +18491,7 @@ def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatem @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: """ Inspect the request headers. See `headers` below for details. """ @@ -17089,7 +18499,7 @@ def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGr @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See `json_body` for details. """ @@ -17097,7 +18507,7 @@ def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStat @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -17105,7 +18515,7 @@ def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStateme @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -17113,7 +18523,7 @@ def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupS @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: """ Inspect a single header. See `single_header` below for details. """ @@ -17121,7 +18531,7 @@ def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroup @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See `single_query_argument` below for details. """ @@ -17129,7 +18539,7 @@ def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedR @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -17137,13 +18547,13 @@ def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupState @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchAllQueryArguments(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17151,14 +18561,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -17179,7 +18589,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17191,22 +18601,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -17216,7 +18626,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -17240,7 +18650,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17250,22 +18660,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17276,7 +18686,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -17294,13 +18704,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17312,22 +18722,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -17337,7 +18747,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -17361,7 +18771,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17371,22 +18781,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -17399,7 +18809,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -17423,13 +18833,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17443,23 +18853,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -17473,7 +18883,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -17505,7 +18915,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17513,21 +18923,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17536,7 +18946,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -17549,25 +18959,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchMethod(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchQueryString(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -17585,7 +18995,7 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchSingleQueryArgument(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -17603,13 +19013,13 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatchUriPath(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -17638,51 +19048,64 @@ def type(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "textTransformations": + if key == "comparisonOperator": + suggest = "comparison_operator" + elif key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - arn: str, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch'] = None): + comparison_operator: str, + size: int, + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch'] = None): """ - :param str arn: The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param str comparison_operator: Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + :param int size: Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "arn", arn) + pulumi.set(__self__, "comparison_operator", comparison_operator) + pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) + @property + @pulumi.getter(name="comparisonOperator") + def comparison_operator(self) -> str: + """ + Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. + """ + return pulumi.get(self, "comparison_operator") + @property @pulumi.getter - def arn(self) -> str: + def size(self) -> int: """ - The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. + Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. """ - return pulumi.get(self, "arn") + return pulumi.get(self, "size") @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ @@ -17690,7 +19113,7 @@ def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRu @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch']: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ @@ -17698,7 +19121,7 @@ def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGrou @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17716,38 +19139,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -17772,7 +19195,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -17780,7 +19203,7 @@ def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRul @property @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ @@ -17788,7 +19211,7 @@ def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement @property @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See `cookies` below for details. """ @@ -17796,7 +19219,7 @@ def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatem @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']]: """ Inspect the request headers. See `headers` below for details. """ @@ -17804,7 +19227,7 @@ def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGr @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See `json_body` for details. """ @@ -17812,7 +19235,7 @@ def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStat @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -17820,7 +19243,7 @@ def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStateme @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -17828,7 +19251,7 @@ def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupS @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader']: """ Inspect a single header. See `single_header` below for details. """ @@ -17836,7 +19259,7 @@ def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroup @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See `single_query_argument` below for details. """ @@ -17844,7 +19267,7 @@ def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedR @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -17852,13 +19275,13 @@ def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupState @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17866,14 +19289,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -17894,7 +19317,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17906,22 +19329,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -17931,7 +19354,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -17955,7 +19378,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -17965,22 +19388,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -17991,7 +19414,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18009,13 +19432,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchCookiesMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18027,22 +19450,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -18052,7 +19475,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -18076,7 +19499,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18086,22 +19509,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -18114,7 +19537,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18138,13 +19561,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchHeaderMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18158,23 +19581,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -18188,7 +19611,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -18220,7 +19643,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18228,21 +19651,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -18251,7 +19674,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18264,25 +19687,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -18300,7 +19723,7 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -18318,13 +19741,13 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -18353,64 +19776,40 @@ def type(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "comparisonOperator": - suggest = "comparison_operator" - elif key == "textTransformations": + if key == "textTransformations": suggest = "text_transformations" elif key == "fieldToMatch": suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - comparison_operator: str, - size: int, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch'] = None): + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch'] = None): """ - :param str comparison_operator: Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - :param int size: Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ - pulumi.set(__self__, "comparison_operator", comparison_operator) - pulumi.set(__self__, "size", size) pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: pulumi.set(__self__, "field_to_match", field_to_match) - @property - @pulumi.getter(name="comparisonOperator") - def comparison_operator(self) -> str: - """ - Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. - """ - return pulumi.get(self, "comparison_operator") - - @property - @pulumi.getter - def size(self) -> int: - """ - Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. - """ - return pulumi.get(self, "size") - @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ @@ -18418,7 +19817,7 @@ def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRu @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch']: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ @@ -18426,7 +19825,7 @@ def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGrou @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18444,38 +19843,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -18500,7 +19899,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -18508,7 +19907,7 @@ def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRul @property @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ @@ -18516,7 +19915,7 @@ def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement @property @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See `cookies` below for details. """ @@ -18524,7 +19923,7 @@ def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatem @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See `headers` below for details. """ @@ -18532,7 +19931,7 @@ def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGr @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See `json_body` for details. """ @@ -18540,7 +19939,7 @@ def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStat @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -18548,7 +19947,7 @@ def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStateme @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -18556,7 +19955,7 @@ def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupS @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See `single_header` below for details. """ @@ -18564,7 +19963,7 @@ def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroup @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See `single_query_argument` below for details. """ @@ -18572,7 +19971,7 @@ def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedR @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -18580,13 +19979,13 @@ def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupState @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18594,14 +19993,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -18622,7 +20021,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18634,22 +20033,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -18659,7 +20058,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -18683,7 +20082,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18693,22 +20092,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -18719,7 +20118,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18737,13 +20136,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchCookiesMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18755,22 +20154,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -18780,7 +20179,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -18804,7 +20203,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18814,22 +20213,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -18842,7 +20241,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18866,13 +20265,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchHeaderMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18886,23 +20285,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -18916,7 +20315,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -18948,7 +20347,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -18956,21 +20355,21 @@ def __key_warning(key: str): suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, included_paths: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -18979,7 +20378,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -18992,25 +20391,25 @@ def included_paths(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchJsonBodyMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(dict): def __init__(__self__, *, name: str): """ @@ -19028,7 +20427,7 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): def __init__(__self__, *, name: str): """ @@ -19046,13 +20445,13 @@ def name(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -19081,7 +20480,7 @@ def type(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19091,22 +20490,22 @@ def __key_warning(key: str): suggest = "field_to_match" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch'] = None): + text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation'], + field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch'] = None): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ pulumi.set(__self__, "text_transformations", text_transformations) if field_to_match is not None: @@ -19114,7 +20513,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation']: + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation']: """ Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. """ @@ -19122,7 +20521,7 @@ def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRu @property @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch']: + def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch']: """ Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. """ @@ -19130,7 +20529,7 @@ def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGrou @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19148,38 +20547,38 @@ def __key_warning(key: str): suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath'] = None): + all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, + body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody'] = None, + cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies'] = None, + headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']] = None, + json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody'] = None, + method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod'] = None, + query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString'] = None, + single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader'] = None, + single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, + uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ if all_query_arguments is not None: pulumi.set(__self__, "all_query_arguments", all_query_arguments) @@ -19204,7 +20603,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments']: + def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments']: """ Inspect all query arguments. """ @@ -19212,7 +20611,7 @@ def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRul @property @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody']: + def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody']: """ Inspect the request body, which immediately follows the request headers. See `body` below for details. """ @@ -19220,7 +20619,7 @@ def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatement @property @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies']: + def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies']: """ Inspect the cookies in the web request. See `cookies` below for details. """ @@ -19228,7 +20627,7 @@ def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatem @property @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader']]: + def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']]: """ Inspect the request headers. See `headers` below for details. """ @@ -19236,7 +20635,7 @@ def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGr @property @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody']: + def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody']: """ Inspect the request body as JSON. See `json_body` for details. """ @@ -19244,7 +20643,7 @@ def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStat @property @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod']: + def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod']: """ Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. """ @@ -19252,7 +20651,7 @@ def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStateme @property @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString']: + def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString']: """ Inspect the query string. This is the part of a URL that appears after a `?` character, if any. """ @@ -19260,7 +20659,7 @@ def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupS @property @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader']: + def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader']: """ Inspect a single header. See `single_header` below for details. """ @@ -19268,7 +20667,7 @@ def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroup @property @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument']: + def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument']: """ Inspect a single query argument. See `single_query_argument` below for details. """ @@ -19276,7 +20675,7 @@ def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedR @property @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath']: + def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath']: """ Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. """ @@ -19284,13 +20683,13 @@ def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupState @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19298,14 +20697,14 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -19326,7 +20725,7 @@ def oversize_handling(self) -> Optional[str]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19338,22 +20737,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookies.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern'], + match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], match_scope: str, oversize_handling: str): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. """ @@ -19363,7 +20762,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern']: + def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: """ The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) """ @@ -19387,7 +20786,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19397,22 +20796,22 @@ def __key_warning(key: str): suggest = "included_cookies" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, excluded_cookies: Optional[Sequence[str]] = None, included_cookies: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ if all is not None: pulumi.set(__self__, "all", all) @@ -19423,7 +20822,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -19441,13 +20840,13 @@ def included_cookies(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchCookiesMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19459,22 +20858,22 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern', match_scope: str, oversize_handling: str): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. """ @@ -19484,7 +20883,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern': """ The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: """ @@ -19508,7 +20907,7 @@ def oversize_handling(self) -> str: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19518,22 +20917,22 @@ def __key_warning(key: str): suggest = "included_headers" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, excluded_headers: Optional[Sequence[str]] = None, included_headers: Optional[Sequence[str]] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. """ @@ -19546,7 +20945,7 @@ def __init__(__self__, *, @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: """ An empty configuration block that is used for inspecting all headers. """ @@ -19570,13 +20969,13 @@ def included_headers(self) -> Optional[Sequence[str]]: @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchHeaderMatchPatternAll(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -19590,23 +20989,23 @@ def __key_warning(key: str): suggest = "oversize_handling" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern', + match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', match_scope: str, invalid_fallback_behavior: Optional[str] = None, oversize_handling: Optional[str] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. @@ -19620,7 +21019,7 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern': + def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': """ The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. """ @@ -19632,835 +21031,659 @@ def match_scope(self) -> str: """ The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. """ - return pulumi.get(self, "match_scope") - - @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: - """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "invalid_fallback_behavior") - - @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: - """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. - """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "includedPaths": - suggest = "included_paths" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): - """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) - - @property - @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll']: - """ - An empty configuration block that is used for inspecting all headers. - """ - return pulumi.get(self, "all") - - @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(dict): - def __init__(__self__, *, - name: str): - """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def name(self) -> str: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(dict): - def __init__(__self__, *, - name: str): - """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. - """ - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def name(self) -> str: - """ - Name of the query header to inspect. This setting must be provided as lower case characters. - """ - return pulumi.get(self, "name") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation(dict): - def __init__(__self__, *, - priority: int, - type: str): - """ - :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - pulumi.set(__self__, "priority", priority) - pulumi.set(__self__, "type", type) - - @property - @pulumi.getter - def priority(self) -> int: - """ - Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. - """ - return pulumi.get(self, "priority") - - @property - @pulumi.getter - def type(self) -> str: - """ - Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. - """ - return pulumi.get(self, "type") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "textTransformations": - suggest = "text_transformations" - elif key == "fieldToMatch": - suggest = "field_to_match" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - text_transformations: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation'], - field_to_match: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch'] = None): - """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchArgs' field_to_match: Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. - """ - pulumi.set(__self__, "text_transformations", text_transformations) - if field_to_match is not None: - pulumi.set(__self__, "field_to_match", field_to_match) + return pulumi.get(self, "match_scope") @property - @pulumi.getter(name="textTransformations") - def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation']: + @pulumi.getter(name="invalidFallbackBehavior") + def invalid_fallback_behavior(self) -> Optional[str]: """ - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details. + What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "text_transformations") + return pulumi.get(self, "invalid_fallback_behavior") @property - @pulumi.getter(name="fieldToMatch") - def field_to_match(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch']: + @pulumi.getter(name="oversizeHandling") + def oversize_handling(self) -> Optional[str]: """ - Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details. + What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. """ - return pulumi.get(self, "field_to_match") + return pulumi.get(self, "oversize_handling") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "allQueryArguments": - suggest = "all_query_arguments" - elif key == "jsonBody": - suggest = "json_body" - elif key == "queryString": - suggest = "query_string" - elif key == "singleHeader": - suggest = "single_header" - elif key == "singleQueryArgument": - suggest = "single_query_argument" - elif key == "uriPath": - suggest = "uri_path" + if key == "includedPaths": + suggest = "included_paths" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.__key_warning(key) + WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all_query_arguments: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments'] = None, - body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody'] = None, - cookies: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies'] = None, - headers: Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']] = None, - json_body: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody'] = None, - method: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod'] = None, - query_string: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString'] = None, - single_header: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader'] = None, - single_query_argument: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument'] = None, - uri_path: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath'] = None): - """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArgumentsArgs' all_query_arguments: Inspect all query arguments. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBodyArgs' body: Inspect the request body, which immediately follows the request headers. See `body` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesArgs' cookies: Inspect the cookies in the web request. See `cookies` below for details. - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderArgs'] headers: Inspect the request headers. See `headers` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyArgs' json_body: Inspect the request body as JSON. See `json_body` for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethodArgs' method: Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryStringArgs' query_string: Inspect the query string. This is the part of a URL that appears after a `?` character, if any. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeaderArgs' single_header: Inspect a single header. See `single_header` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgumentArgs' single_query_argument: Inspect a single query argument. See `single_query_argument` below for details. - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPathArgs' uri_path: Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. - """ - if all_query_arguments is not None: - pulumi.set(__self__, "all_query_arguments", all_query_arguments) - if body is not None: - pulumi.set(__self__, "body", body) - if cookies is not None: - pulumi.set(__self__, "cookies", cookies) - if headers is not None: - pulumi.set(__self__, "headers", headers) - if json_body is not None: - pulumi.set(__self__, "json_body", json_body) - if method is not None: - pulumi.set(__self__, "method", method) - if query_string is not None: - pulumi.set(__self__, "query_string", query_string) - if single_header is not None: - pulumi.set(__self__, "single_header", single_header) - if single_query_argument is not None: - pulumi.set(__self__, "single_query_argument", single_query_argument) - if uri_path is not None: - pulumi.set(__self__, "uri_path", uri_path) - - @property - @pulumi.getter(name="allQueryArguments") - def all_query_arguments(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments']: + all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, + included_paths: Optional[Sequence[str]] = None): """ - Inspect all query arguments. + :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "all_query_arguments") + if all is not None: + pulumi.set(__self__, "all", all) + if included_paths is not None: + pulumi.set(__self__, "included_paths", included_paths) @property @pulumi.getter - def body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody']: + def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: """ - Inspect the request body, which immediately follows the request headers. See `body` below for details. + An empty configuration block that is used for inspecting all headers. """ - return pulumi.get(self, "body") + return pulumi.get(self, "all") @property - @pulumi.getter - def cookies(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies']: - """ - Inspect the cookies in the web request. See `cookies` below for details. - """ - return pulumi.get(self, "cookies") + @pulumi.getter(name="includedPaths") + def included_paths(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "included_paths") - @property - @pulumi.getter - def headers(self) -> Optional[Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader']]: - """ - Inspect the request headers. See `headers` below for details. - """ - return pulumi.get(self, "headers") - @property - @pulumi.getter(name="jsonBody") - def json_body(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody']: - """ - Inspect the request body as JSON. See `json_body` for details. - """ - return pulumi.get(self, "json_body") +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): + def __init__(__self__): + pass - @property - @pulumi.getter - def method(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod']: - """ - Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. - """ - return pulumi.get(self, "method") - @property - @pulumi.getter(name="queryString") - def query_string(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString']: +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(dict): + def __init__(__self__, *, + name: str): """ - Inspect the query string. This is the part of a URL that appears after a `?` character, if any. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "query_string") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="singleHeader") - def single_header(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader']: + @pulumi.getter + def name(self) -> str: """ - Inspect a single header. See `single_header` below for details. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "single_header") + return pulumi.get(self, "name") - @property - @pulumi.getter(name="singleQueryArgument") - def single_query_argument(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument']: + +@pulumi.output_type +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): + def __init__(__self__, *, + name: str): """ - Inspect a single query argument. See `single_query_argument` below for details. + :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "single_query_argument") + pulumi.set(__self__, "name", name) @property - @pulumi.getter(name="uriPath") - def uri_path(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath']: + @pulumi.getter + def name(self) -> str: """ - Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. + Name of the query header to inspect. This setting must be provided as lower case characters. """ - return pulumi.get(self, "uri_path") + return pulumi.get(self, "name") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(dict): +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.__key_warning(key) - return super().get(key, default) - +class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation(dict): def __init__(__self__, *, - oversize_handling: Optional[str] = None): + priority: int, + type: str): """ - :param str oversize_handling: What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def priority(self) -> int: """ - What WAF should do if the body is larger than WAF can inspect. WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to WAF by the underlying host service. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "matchPatterns": - suggest = "match_patterns" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies. Access the value via the '{suggest}' property getter instead.") + return pulumi.get(self, "priority") - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) - return super().__getitem__(key) + @property + @pulumi.getter + def type(self) -> str: + """ + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookies.__key_warning(key) - return super().get(key, default) +@pulumi.output_type +class WebAclRuleStatementNotStatement(dict): def __init__(__self__, *, - match_patterns: Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern'], - match_scope: str, - oversize_handling: str): + statements: Sequence['outputs.WebAclRuleStatement']): """ - :param Sequence['WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternArgs'] match_patterns: The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) - :param str match_scope: The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` - :param str oversize_handling: What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. """ - pulumi.set(__self__, "match_patterns", match_patterns) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="matchPatterns") - def match_patterns(self) -> Sequence['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern']: + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: """ - The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html) + The statements to combine. """ - return pulumi.get(self, "match_patterns") + return pulumi.get(self, "statements") - @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + +@pulumi.output_type +class WebAclRuleStatementOrStatement(dict): + def __init__(__self__, *, + statements: Sequence['outputs.WebAclRuleStatement']): """ - The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE` + :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. """ - return pulumi.get(self, "match_scope") + pulumi.set(__self__, "statements", statements) @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def statements(self) -> Sequence['outputs.WebAclRuleStatement']: """ - What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`. + The statements to combine. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "statements") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern(dict): +class WebAclRuleStatementRateBasedStatement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludedCookies": - suggest = "excluded_cookies" - elif key == "includedCookies": - suggest = "included_cookies" + if key == "aggregateKeyType": + suggest = "aggregate_key_type" + elif key == "customKeys": + suggest = "custom_keys" + elif key == "forwardedIpConfig": + suggest = "forwarded_ip_config" + elif key == "scopeDownStatement": + suggest = "scope_down_statement" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatement. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementRateBasedStatement.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPattern.__key_warning(key) + WebAclRuleStatementRateBasedStatement.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll'] = None, - excluded_cookies: Optional[Sequence[str]] = None, - included_cookies: Optional[Sequence[str]] = None): + limit: int, + aggregate_key_type: Optional[str] = None, + custom_keys: Optional[Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKey']] = None, + forwarded_ip_config: Optional['outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig'] = None, + scope_down_statement: Optional['outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param int limit: Limit on requests per 5-minute period for a single originating IP address. + :param str aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyArgs'] custom_keys: Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + :param 'WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. + :param 'WebAclRuleStatementRateBasedStatementScopeDownStatementArgs' scope_down_statement: Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_cookies is not None: - pulumi.set(__self__, "excluded_cookies", excluded_cookies) - if included_cookies is not None: - pulumi.set(__self__, "included_cookies", included_cookies) + pulumi.set(__self__, "limit", limit) + if aggregate_key_type is not None: + pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) + if custom_keys is not None: + pulumi.set(__self__, "custom_keys", custom_keys) + if forwarded_ip_config is not None: + pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) + if scope_down_statement is not None: + pulumi.set(__self__, "scope_down_statement", scope_down_statement) @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll']: + def limit(self) -> int: """ - An empty configuration block that is used for inspecting all headers. + Limit on requests per 5-minute period for a single originating IP address. """ - return pulumi.get(self, "all") + return pulumi.get(self, "limit") @property - @pulumi.getter(name="excludedCookies") - def excluded_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "excluded_cookies") + @pulumi.getter(name="aggregateKeyType") + def aggregate_key_type(self) -> Optional[str]: + """ + Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `CUSTOM_KEYS`, `FORWARDED_IP`, or `IP`. Default: `IP`. + """ + return pulumi.get(self, "aggregate_key_type") @property - @pulumi.getter(name="includedCookies") - def included_cookies(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_cookies") + @pulumi.getter(name="customKeys") + def custom_keys(self) -> Optional[Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKey']]: + """ + Aggregate the request counts using one or more web request components as the aggregate keys. See `custom_key` below for details. + """ + return pulumi.get(self, "custom_keys") + @property + @pulumi.getter(name="forwardedIpConfig") + def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig']: + """ + Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. + """ + return pulumi.get(self, "forwarded_ip_config") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchCookiesMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="scopeDownStatement") + def scope_down_statement(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement']: + """ + Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. + """ + return pulumi.get(self, "scope_down_statement") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader(dict): +class WebAclRuleStatementRateBasedStatementCustomKey(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "forwardedIp": + suggest = "forwarded_ip" + elif key == "httpMethod": + suggest = "http_method" + elif key == "labelNamespace": + suggest = "label_namespace" + elif key == "queryArgument": + suggest = "query_argument" + elif key == "queryString": + suggest = "query_string" + elif key == "uriPath": + suggest = "uri_path" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKey. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKey.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeader.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKey.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern', - match_scope: str, - oversize_handling: str): + cookie: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie'] = None, + forwarded_ip: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp'] = None, + header: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeader'] = None, + http_method: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod'] = None, + ip: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyIp'] = None, + label_namespace: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace'] = None, + query_argument: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument'] = None, + query_string: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryString'] = None, + uri_path: Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPath'] = None): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternArgs' match_pattern: The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: - :param str match_scope: The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. - :param str oversize_handling: Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyCookieArgs' cookie: Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyForwardedIpArgs' forwarded_ip: Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyHeaderArgs' header: Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyHttpMethodArgs' http_method: Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyIpArgs' ip: Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespaceArgs' label_namespace: Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentArgs' query_argument: Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyQueryStringArgs' query_string: Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + :param 'WebAclRuleStatementRateBasedStatementCustomKeyUriPathArgs' uri_path: Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - pulumi.set(__self__, "oversize_handling", oversize_handling) + if cookie is not None: + pulumi.set(__self__, "cookie", cookie) + if forwarded_ip is not None: + pulumi.set(__self__, "forwarded_ip", forwarded_ip) + if header is not None: + pulumi.set(__self__, "header", header) + if http_method is not None: + pulumi.set(__self__, "http_method", http_method) + if ip is not None: + pulumi.set(__self__, "ip", ip) + if label_namespace is not None: + pulumi.set(__self__, "label_namespace", label_namespace) + if query_argument is not None: + pulumi.set(__self__, "query_argument", query_argument) + if query_string is not None: + pulumi.set(__self__, "query_string", query_string) + if uri_path is not None: + pulumi.set(__self__, "uri_path", uri_path) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern': + @pulumi.getter + def cookie(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie']: """ - The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments: + Use the value of a cookie in the request as an aggregate key. See RateLimit `cookie` below for details. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "cookie") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="forwardedIp") + def forwarded_ip(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp']: """ - The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`. + Use the first IP address in an HTTP header as an aggregate key. See `forwarded_ip` below for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "forwarded_ip") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> str: + @pulumi.getter + def header(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeader']: """ - Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information. + Use the value of a header in the request as an aggregate key. See RateLimit `header` below for details. """ - return pulumi.get(self, "oversize_handling") - - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "excludedHeaders": - suggest = "excluded_headers" - elif key == "includedHeaders": - suggest = "included_headers" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPattern.__key_warning(key) - return super().get(key, default) + return pulumi.get(self, "header") - def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll'] = None, - excluded_headers: Optional[Sequence[str]] = None, - included_headers: Optional[Sequence[str]] = None): + @property + @pulumi.getter(name="httpMethod") + def http_method(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod']: """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. - :param Sequence[str] excluded_headers: An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. - :param Sequence[str] included_headers: An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Use the request's HTTP method as an aggregate key. See RateLimit `http_method` below for details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if excluded_headers is not None: - pulumi.set(__self__, "excluded_headers", excluded_headers) - if included_headers is not None: - pulumi.set(__self__, "included_headers", included_headers) + return pulumi.get(self, "http_method") @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll']: + def ip(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyIp']: """ - An empty configuration block that is used for inspecting all headers. + Use the request's originating IP address as an aggregate key. See `RateLimit ip` below for details. """ - return pulumi.get(self, "all") + return pulumi.get(self, "ip") @property - @pulumi.getter(name="excludedHeaders") - def excluded_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter(name="labelNamespace") + def label_namespace(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace']: """ - An array of strings that will be used for inspecting headers that do not have a key that matches one of the provided values. + Use the specified label namespace as an aggregate key. See RateLimit `label_namespace` below for details. """ - return pulumi.get(self, "excluded_headers") + return pulumi.get(self, "label_namespace") @property - @pulumi.getter(name="includedHeaders") - def included_headers(self) -> Optional[Sequence[str]]: + @pulumi.getter(name="queryArgument") + def query_argument(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument']: """ - An array of strings that will be used for inspecting headers that have a key that matches one of the provided values. + Use the specified query argument as an aggregate key. See RateLimit `query_argument` below for details. """ - return pulumi.get(self, "included_headers") + return pulumi.get(self, "query_argument") + @property + @pulumi.getter(name="queryString") + def query_string(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryString']: + """ + Use the request's query string as an aggregate key. See RateLimit `query_string` below for details. + """ + return pulumi.get(self, "query_string") -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchHeaderMatchPatternAll(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="uriPath") + def uri_path(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPath']: + """ + Use the request's URI path as an aggregate key. See RateLimit `uri_path` below for details. + """ + return pulumi.get(self, "uri_path") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyCookie(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "matchPattern": - suggest = "match_pattern" - elif key == "matchScope": - suggest = "match_scope" - elif key == "invalidFallbackBehavior": - suggest = "invalid_fallback_behavior" - elif key == "oversizeHandling": - suggest = "oversize_handling" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKeyCookie. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyCookie.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBody.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyCookie.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - match_pattern: 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern', - match_scope: str, - invalid_fallback_behavior: Optional[str] = None, - oversize_handling: Optional[str] = None): + name: str, + text_transformations: Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation']): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternArgs' match_pattern: The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. - :param str match_scope: The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. - :param str invalid_fallback_behavior: What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. - :param str oversize_handling: What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + :param str name: The name of the cookie to use. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - pulumi.set(__self__, "match_pattern", match_pattern) - pulumi.set(__self__, "match_scope", match_scope) - if invalid_fallback_behavior is not None: - pulumi.set(__self__, "invalid_fallback_behavior", invalid_fallback_behavior) - if oversize_handling is not None: - pulumi.set(__self__, "oversize_handling", oversize_handling) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter(name="matchPattern") - def match_pattern(self) -> 'outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern': + @pulumi.getter + def name(self) -> str: """ - The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details. + The name of the cookie to use. """ - return pulumi.get(self, "match_pattern") + return pulumi.get(self, "name") @property - @pulumi.getter(name="matchScope") - def match_scope(self) -> str: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation']: """ - The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "match_scope") + return pulumi.get(self, "text_transformations") + + +@pulumi.output_type +class WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): + """ + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="invalidFallbackBehavior") - def invalid_fallback_behavior(self) -> Optional[str]: + @pulumi.getter + def priority(self) -> int: """ - What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "invalid_fallback_behavior") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="oversizeHandling") - def oversize_handling(self) -> Optional[str]: + @pulumi.getter + def type(self) -> str: """ - What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "oversize_handling") + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyForwardedIp(dict): + def __init__(__self__): + pass + + +@pulumi.output_type +class WebAclRuleStatementRateBasedStatementCustomKeyHeader(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "includedPaths": - suggest = "included_paths" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKeyHeader. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyHeader.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPattern.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyHeader.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - all: Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll'] = None, - included_paths: Optional[Sequence[str]] = None): + name: str, + text_transformations: Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation']): """ - :param 'WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAllArgs' all: An empty configuration block that is used for inspecting all headers. + :param str name: The name of the header to use. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - if all is not None: - pulumi.set(__self__, "all", all) - if included_paths is not None: - pulumi.set(__self__, "included_paths", included_paths) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property @pulumi.getter - def all(self) -> Optional['outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll']: + def name(self) -> str: """ - An empty configuration block that is used for inspecting all headers. + The name of the header to use. """ - return pulumi.get(self, "all") + return pulumi.get(self, "name") @property - @pulumi.getter(name="includedPaths") - def included_paths(self) -> Optional[Sequence[str]]: - return pulumi.get(self, "included_paths") + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation']: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + """ + return pulumi.get(self, "text_transformations") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchJsonBodyMatchPatternAll(dict): - def __init__(__self__): - pass +class WebAclRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): + """ + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def priority(self) -> int: + """ + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + """ + return pulumi.get(self, "priority") + + @property + @pulumi.getter + def type(self) -> str: + """ + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyHttpMethod(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyIp(dict): def __init__(__self__): pass @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace(dict): def __init__(__self__, *, - name: str): + namespace: str): """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param str namespace: The namespace to use for aggregation """ - pulumi.set(__self__, "name", name) + pulumi.set(__self__, "namespace", namespace) @property @pulumi.getter - def name(self) -> str: + def namespace(self) -> str: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + The namespace to use for aggregation """ - return pulumi.get(self, "name") + return pulumi.get(self, "namespace") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "textTransformations": + suggest = "text_transformations" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - name: str): + name: str, + text_transformations: Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation']): """ - :param str name: Name of the query header to inspect. This setting must be provided as lower case characters. + :param str name: The name of the query argument to use. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ pulumi.set(__self__, "name", name) + pulumi.set(__self__, "text_transformations", text_transformations) @property @pulumi.getter def name(self) -> str: """ - Name of the query header to inspect. This setting must be provided as lower case characters. + The name of the query argument to use. """ return pulumi.get(self, "name") - -@pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(dict): - def __init__(__self__): - pass + @property + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation']: + """ + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. + """ + return pulumi.get(self, "text_transformations") @pulumi.output_type -class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyQueryArgumentTextTransformation(dict): def __init__(__self__, *, priority: int, type: str): @@ -20489,114 +21712,131 @@ def type(self) -> str: @pulumi.output_type -class WebAclRuleStatementNotStatement(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyQueryString(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "textTransformations": + suggest = "text_transformations" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKeyQueryString. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + WebAclRuleStatementRateBasedStatementCustomKeyQueryString.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + WebAclRuleStatementRateBasedStatementCustomKeyQueryString.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): + text_transformations: Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation']): """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation']: """ - The statements to combine. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "text_transformations") @pulumi.output_type -class WebAclRuleStatementOrStatement(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyQueryStringTextTransformation(dict): def __init__(__self__, *, - statements: Sequence['outputs.WebAclRuleStatement']): + priority: int, + type: str): """ - :param Sequence['WebAclRuleStatementArgs'] statements: The statements to combine. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - pulumi.set(__self__, "statements", statements) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property @pulumi.getter - def statements(self) -> Sequence['outputs.WebAclRuleStatement']: + def priority(self) -> int: """ - The statements to combine. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "statements") + return pulumi.get(self, "priority") + + @property + @pulumi.getter + def type(self) -> str: + """ + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. + """ + return pulumi.get(self, "type") @pulumi.output_type -class WebAclRuleStatementRateBasedStatement(dict): +class WebAclRuleStatementRateBasedStatementCustomKeyUriPath(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "aggregateKeyType": - suggest = "aggregate_key_type" - elif key == "forwardedIpConfig": - suggest = "forwarded_ip_config" - elif key == "scopeDownStatement": - suggest = "scope_down_statement" + if key == "textTransformations": + suggest = "text_transformations" if suggest: - pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatement. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in WebAclRuleStatementRateBasedStatementCustomKeyUriPath. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - WebAclRuleStatementRateBasedStatement.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyUriPath.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - WebAclRuleStatementRateBasedStatement.__key_warning(key) + WebAclRuleStatementRateBasedStatementCustomKeyUriPath.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - limit: int, - aggregate_key_type: Optional[str] = None, - forwarded_ip_config: Optional['outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig'] = None, - scope_down_statement: Optional['outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement'] = None): + text_transformations: Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation']): """ - :param int limit: Limit on requests per 5-minute period for a single originating IP address. - :param str aggregate_key_type: Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. - :param 'WebAclRuleStatementRateBasedStatementForwardedIpConfigArgs' forwarded_ip_config: Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. - :param 'WebAclRuleStatementRateBasedStatementScopeDownStatementArgs' scope_down_statement: Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. + :param Sequence['WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformationArgs'] text_transformations: Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - pulumi.set(__self__, "limit", limit) - if aggregate_key_type is not None: - pulumi.set(__self__, "aggregate_key_type", aggregate_key_type) - if forwarded_ip_config is not None: - pulumi.set(__self__, "forwarded_ip_config", forwarded_ip_config) - if scope_down_statement is not None: - pulumi.set(__self__, "scope_down_statement", scope_down_statement) + pulumi.set(__self__, "text_transformations", text_transformations) @property - @pulumi.getter - def limit(self) -> int: + @pulumi.getter(name="textTransformations") + def text_transformations(self) -> Sequence['outputs.WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation']: """ - Limit on requests per 5-minute period for a single originating IP address. + Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details. """ - return pulumi.get(self, "limit") + return pulumi.get(self, "text_transformations") - @property - @pulumi.getter(name="aggregateKeyType") - def aggregate_key_type(self) -> Optional[str]: + +@pulumi.output_type +class WebAclRuleStatementRateBasedStatementCustomKeyUriPathTextTransformation(dict): + def __init__(__self__, *, + priority: int, + type: str): """ - Setting that indicates how to aggregate the request counts. Valid values include: `CONSTANT`, `FORWARDED_IP` or `IP`. Default: `IP`. + :param int priority: Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. + :param str type: Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "aggregate_key_type") + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="forwardedIpConfig") - def forwarded_ip_config(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementForwardedIpConfig']: + @pulumi.getter + def priority(self) -> int: """ - Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See `forwarded_ip_config` below for details. + Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. """ - return pulumi.get(self, "forwarded_ip_config") + return pulumi.get(self, "priority") @property - @pulumi.getter(name="scopeDownStatement") - def scope_down_statement(self) -> Optional['outputs.WebAclRuleStatementRateBasedStatementScopeDownStatement']: + @pulumi.getter + def type(self) -> str: """ - Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See `statement` above for details. If `aggregate_key_type` is set to `CONSTANT`, this block is required. + Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. """ - return pulumi.get(self, "scope_down_statement") + return pulumi.get(self, "type") @pulumi.output_type diff --git a/upstream b/upstream index 522a58443aa..dbf42d7e261 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 522a58443aa503714444e5333641300a6af34621 +Subproject commit dbf42d7e261ffdc553982b11c3f765c6469f9d70 diff --git a/upstream-tools/replacements.json b/upstream-tools/replacements.json index fca6bacde37..0e63221ec2d 100644 --- a/upstream-tools/replacements.json +++ b/upstream-tools/replacements.json @@ -3469,6 +3469,32 @@ "new": "Using `pulumi import`, import `aws:cleanrooms/collaboration:Collaboration` using the `id`. For example:" } ], + "website/docs/r/cleanrooms_configured_table.html.markdown": [ + { + "old": " Project = \"Terraform\"", + "new": " Project = \"TODO\"" + }, + { + "old": " description = \"I made this table with terraform!\"", + "new": " description = \"I made this table with TODO!\"" + }, + { + "old": " name = \"terraform-example-table\"", + "new": " name = \"TODO-example-table\"" + }, + { + "old": "% terraform import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab", + "new": "% TODO import aws_cleanrooms_configured_table.table 1234abcd-12ab-34cd-56ef-1234567890ab" + }, + { + "old": "In Terraform v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For example:", + "new": "In TODO v1.5.0 and later, use an `import` block to import `aws_cleanrooms_configured_table` using the `id`. For example:" + }, + { + "old": "Using `terraform import`, import `aws_cleanrooms_configured_table` using the `id`. For example:", + "new": "Using `TODO import`, import `aws_cleanrooms_configured_table` using the `id`. For example:" + } + ], "website/docs/r/cloud9_environment_membership.html.markdown": [ { "old": "% terraform import aws_cloud9_environment_membership.test environment-id#user-arn", @@ -6392,6 +6418,20 @@ "new": "Using `pulumi import`, import event subscriptions using the `name`. For example:" } ], + "website/docs/r/dms_replication_config.html.markdown": [ + { + "old": "% terraform import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI", + "new": "% TODO import aws_dms_replication_config.example arn:aws:dms:us-east-1:123456789012:replication-config:UX6OL6MHMMJKFFOXE3H7LLJCMEKBDUG4ZV7DRSI" + }, + { + "old": "In Terraform v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For example:", + "new": "In TODO v1.5.0 and later, use an `import` block to import replication configs using the `arn`. For example:" + }, + { + "old": "Using `terraform import`, import a replication config using the `arn`. For example:", + "new": "Using `TODO import`, import a replication config using the `arn`. For example:" + } + ], "website/docs/r/dms_replication_instance.html.markdown": [ { "old": "% terraform import aws_dms_replication_instance.test test-dms-replication-instance-tf", @@ -11425,6 +11465,20 @@ "new": "Using `pulumi import`, import slot types using their name. For example:" } ], + "website/docs/r/lexv2models_bot.html.markdown": [ + { + "old": "% terraform import aws_lexv2models_bot.example bot-id-12345678", + "new": "% TODO import aws_lexv2models_bot.example bot-id-12345678" + }, + { + "old": "In Terraform v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For example:", + "new": "In TODO v1.5.0 and later, use an `import` block to import Lex V2 Models Bot using the `example_id_arg`. For example:" + }, + { + "old": "Using `terraform import`, import Lex V2 Models Bot using the `example_id_arg`. For example:", + "new": "Using `TODO import`, import Lex V2 Models Bot using the `example_id_arg`. For example:" + } + ], "website/docs/r/licensemanager_association.html.markdown": [ { "old": "% terraform import aws_licensemanager_association.example arn:aws:ec2:eu-west-1:123456789012:image/ami-123456789abcdef01,arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef", @@ -11518,6 +11572,10 @@ "old": "% terraform import aws_lightsail_bucket.test example-bucket", "new": "% pulumi import aws_lightsail_bucket.test example-bucket" }, + { + "old": "* `force_delete` - (Optional) - Force Delete non-empty buckets using `terraform destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty.", + "new": "* `force_delete` - (Optional) - Force Delete non-empty buckets using `TODO destroy`. AWS by default will not delete an s3 bucket which is not empty, to prevent losing bucket data and affecting other resources in lightsail. If `force_delete` is set to `true` the bucket will be deleted even when not empty." + }, { "old": "In Terraform v1.5.0 and later, use an `import` block to import `aws_lightsail_bucket` using the `name` attribute. For example:", "new": "" @@ -14340,6 +14398,20 @@ "new": "Using `pulumi import`, import `aws_rds_cluster_role_association` using the DB Cluster Identifier and IAM Role ARN separated by a comma (`,`). For example:" } ], + "website/docs/r/rds_custom_db_engine_version.markdown": [ + { + "old": "% terraform import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1", + "new": "% TODO import aws_rds_custom_db_engine_version.example custom-oracle-ee-cdb:19.cdb_cev1" + }, + { + "old": "In Terraform v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For example:", + "new": "In TODO v1.5.0 and later, use an `import` block to import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For example:" + }, + { + "old": "Using `terraform import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For example:", + "new": "Using `TODO import`, import custom engine versions for Amazon RDS custom using the `engine` and `engine_version` separated by a colon (`:`). For example:" + } + ], "website/docs/r/rds_export_task.html.markdown": [ { "old": "% terraform import aws_rds_export_task.example example",